Gazebo | Ignition | Community
Ask Your Question
0

SetWorldPose() and spinning wheels

asked 2015-03-10 04:06:22 -0500

flabrosse gravatar image

All,

I just created my first sdf robot (a wheeled robot) and first few plugins. I am trying to move my simulated robot in the world to match the position of the real robot as given by an external source of pose (a motion tracking system). Following my reading of documentation and a few posts, I use SetWorldPose() to do that, which works. Except that the robot just slides, the wheels not spinning at all, the result not looking realistic at all.

The "obvious" solution would be to control the wheels to move the robot to the desired position, but (1) this is not so trivial and (2) may well result in the simulated robot never catching up with the real robot.

Any suggestion?

Cheers, Fred

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-11 10:59:16 -0500

flabrosse gravatar image

updated 2015-03-12 06:24:45 -0500

I have done some more tests and for some reason if I use a DEM rather than the default ground plane then the wheels do spin...

EDIT: Actually, the wheel rotation I was observing was due to the dynamics of the model on the DEM, not my SetWorldPose(). So the question still stands, unfortunately.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-03-10 04:06:22 -0500

Seen: 410 times

Last updated: Mar 12 '15