the body and wheels of model are separated after collision

Typically: "How do I... ", "How can I... " questions
Post Reply
Zhuang
Posts: 25
Joined: 02 Aug 2017, 14:43

the body and wheels of model are separated after collision

Post by Zhuang » 27 Feb 2018, 15:43

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.

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

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

Post by coppelia » 28 Feb 2018, 09:32

Hello,

have a look at this topic.

Cheers

Zhuang
Posts: 25
Joined: 02 Aug 2017, 14:43

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

Post by Zhuang » 28 Feb 2018, 12:48

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.

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

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

Post by coppelia » 01 Mar 2018, 09:54

Have a look here.

Cheers

Post Reply