Gazebo | Ignition | Community
Ask Your Question

Continuously updating Pose of a link in a plugin

asked 2016-02-29 21:53:24 -0500

meha gravatar image


I need to continuously update the pose of a link, in the OnUpdate function.

What function from the API can I use for it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-29 22:02:39 -0500

chapulina gravatar image

You could use Link::SetWorldPose for example, but note that this will override the physics engine, so things like gravity will be neglected.

edit flag offensive delete link more


Is there any way, by which gravity cannot be neglected?

meha gravatar imagemeha ( 2016-03-01 07:06:40 -0500 )edit

If you set the pose to be 10m above ground for example, that will move the object regardless of other forces in the world. If you apply force instead, the resulting position will be a combination of all the forces applied. To reach a specific position by applying force, you'll probably need something like a PID controller.

chapulina gravatar imagechapulina ( 2016-03-01 13:07:16 -0500 )edit

Question Tools

1 follower


Asked: 2016-02-29 21:53:24 -0500

Seen: 531 times

Last updated: Feb 29 '16