Simulation has long time blocking when first time primitive sensor detects an object.
Posted: 28 May 2018, 17:25
Hello everyone in the Forum,
I am using Vrep Plugin(C++) to run a simulation. My robot has about 10 ultrasonic sensors, which I use primitive sensor to replace their functionality in the simulation. I found an issue, which really bothers me. I found that, the first time when the primitive sensor detecting any object in a totally new loaded scene will let my simulation block(no response) for about 1 min. After 1 min, my simulation will keep running and everything will be fine. And even if I stop the simulation and restart it again will cause no more delay. I guess there should be some internal issue in the Vrep, when the primitive sensor starts working in a virgin scene. But this kind of "warm up" really cost so much time. Also, I found that the decreasing of sensor faces and subdivisions would not help solve this issue at all.
So, I would like to know, does anyone has a similar problem like me? And if yes, do you have some suggestions?
Thank you in advance!
Fitz
I am using Vrep Plugin(C++) to run a simulation. My robot has about 10 ultrasonic sensors, which I use primitive sensor to replace their functionality in the simulation. I found an issue, which really bothers me. I found that, the first time when the primitive sensor detecting any object in a totally new loaded scene will let my simulation block(no response) for about 1 min. After 1 min, my simulation will keep running and everything will be fine. And even if I stop the simulation and restart it again will cause no more delay. I guess there should be some internal issue in the Vrep, when the primitive sensor starts working in a virgin scene. But this kind of "warm up" really cost so much time. Also, I found that the decreasing of sensor faces and subdivisions would not help solve this issue at all.
So, I would like to know, does anyone has a similar problem like me? And if yes, do you have some suggestions?
Thank you in advance!
Fitz