How to change the position of objects randomly at every simulation step
Posted: 02 Jul 2018, 12:08
I have a Kinect sensor in a home environment inside V-REP. I want to change the position of objects such as dining chair and sofa kept inside the room.
After changing the position of objects, I plan to capture the view using the Kinect sensor. So I want to change the positions before every simulation step.
Should I add non-thread child script with each object such as dining chair, sofa, etc. and then inside the (sim_call_type==sim_childscriptcall_actuation) block, change the positions?
I am afraid as I am not sure the execution order of these non-thread child scripts and I don't want to change the position while Kinect is capturing the view.
Please download the scene from shared DropBox link-
https://www.dropbox.com/s/cx0pdhmdsregen9/home.ttt?dl=0
After changing the position of objects, I plan to capture the view using the Kinect sensor. So I want to change the positions before every simulation step.
Should I add non-thread child script with each object such as dining chair, sofa, etc. and then inside the (sim_call_type==sim_childscriptcall_actuation) block, change the positions?
I am afraid as I am not sure the execution order of these non-thread child scripts and I don't want to change the position while Kinect is capturing the view.
Please download the scene from shared DropBox link-
https://www.dropbox.com/s/cx0pdhmdsregen9/home.ttt?dl=0