Page 1 of 1

the body and wheels of model are separated after collision

Posted: 27 Feb 2018, 15:43
by Zhuang
I build a robot model based on pioneer p3dx.ttm, then I program to judge if there is collision between the robot and obstacles(left_wall, right_wall) in the scene and if there is then the robot will be set to the original position.
But when I run the simulation, the wheels of the robot model don't recover to the original position with other part. Why does it and what should I do? Thank you in advance.

the scene can be found in https://github.com/marooncn/RL/blob/mas ... /robot.ttt, you can run it.

Re: the body and wheels of model are separated after collision

Posted: 28 Feb 2018, 09:32
by coppelia
Hello,

have a look at this topic.

Cheers

Re: the body and wheels of model are separated after collision

Posted: 28 Feb 2018, 12:48
by Zhuang
Thank you, the demo works successfully now. Actually what I ultimately want to do is to reset the position of the robot through remote API. But simGetObjectsInTree, simResetDynamicObject and other relative functions seem not to have remote API form. Do you have more suggestion? Thanks.

Re: the body and wheels of model are separated after collision

Posted: 01 Mar 2018, 09:54
by coppelia
Have a look here.

Cheers