Difference in simxGetVisionSensorDepthBuffer results between 2 computers
Posted: 24 Nov 2020, 15:11
Hi,
I've written this small program :
and for the same scene.ttt file, I get 2 slightly different results for the
minimum values (but it's exactly the same for the maximum) if I change the
computer. Both computers run Ubuntu 18.04 and Coppelia Sim EDU V4.1.0
(built Jul 20 2020)
Machine 1 :
MIN 1 = 0.05005599558353424
MAX 1 = 0.11464300006628036
Machine 2 :
MIN 1 = 0.050055839121341705
MAX 1 = 0.11464300006628036
Do you have an explanation for this ?
Best regards,
Philippe
I've written this small program :
Code: Select all
from simulation import vrep
import numpy as np
vrep.simxFinish(-1) # Just in case, close all opened connections
sim_client = vrep.simxStart('127.0.0.1', 19997, True, True, 5000, 5) #
Connect to V-REP on port 19997
sim_ret, cam_handle = vrep.simxGetObjectHandle(sim_client,
'Vision_sensor_persp', vrep.simx_opmode_blocking)
sim_ret, resolution, depth_buffer =
vrep.simxGetVisionSensorDepthBuffer(sim_client, cam_handle,
vrep.simx_opmode_blocking)
depth_img = np.asarray(depth_buffer)
print("MIN 1 = {}".format(np.min(depth_img)))
print("MAX 1 = {}".format(np.max(depth_img)))
minimum values (but it's exactly the same for the maximum) if I change the
computer. Both computers run Ubuntu 18.04 and Coppelia Sim EDU V4.1.0
(built Jul 20 2020)
Machine 1 :
MIN 1 = 0.05005599558353424
MAX 1 = 0.11464300006628036
Machine 2 :
MIN 1 = 0.050055839121341705
MAX 1 = 0.11464300006628036
Do you have an explanation for this ?
Best regards,
Philippe