sim.getVisionSensorDepthBuffer
Posted: 05 Apr 2022, 12:32
Hello,
I have some problem with using sim.getVisionSensorDepthBuffer
I would like to get the depth info from the camera
I am able to get the RGB image, but once it gets into sim.getVisionSensorDepthBuffer. It gets stuck there, I mean the execution prints lastly before
And, Coppeliasim gives this message in a pop-up window ZMQ remote API server@addOnScript: abort execution
Thanks for assist,
Kamal
I have some problem with using sim.getVisionSensorDepthBuffer
I would like to get the depth info from the camera
- Using CoppeliaSim V4.3.0., (rev. 3)
- Using ZMQ remote API (Python)
Code: Select all
self.cam_handle = self.sim.getObject('/Vision_sensor_persp')
raw_image, resX, resY= self.sim.getVisionSensorCharImage(self.cam_handle)
print("before")
depth_buffer = self.sim.getVisionSensorDepthBuffer(self.cam_handle)
print("after")
And, Coppeliasim gives this message in a pop-up window ZMQ remote API server@addOnScript: abort execution
Thanks for assist,
Kamal