Simulation stops when getting data from a 3D Laser scanner

Typically: "How do I... ", "How can I... " questions
Post Reply
xli4217
Posts: 11
Joined: 13 Oct 2015, 21:08

Simulation stops when getting data from a 3D Laser scanner

Post by xli4217 » 02 May 2019, 23:09

I am using V-rep with Python Remote API. The 3D Laser scanner (provided in Model browser) is based on a vision sensor. I can get the measuredData which contains all the points that are closer than the sensor range. I used the function

sim.setStringSignal("measuredData",data)
to send the data, and I used the function

vrep.simxGetStringSignal(self.clientID, "measuredData",vrep.simx_opmode_streaming)
vrep.simxUnpackFloats()

in the Python script to get the data.

However, every time I run the python code, the simulation in V-rep will slow down a lot or even stop. Any suggestions to solve this problem? Thanks.

coppelia
Site Admin
Posts: 7388
Joined: 14 Dec 2012, 00:25

Re: Simulation stops when getting data from a 3D Laser scanner

Post by coppelia » 07 May 2019, 10:02

Difficult to say what is going on with the little information you are providing...

Cheers

Post Reply