Continuously updating Pose of a link in a plugin
Hi,
I need to continuously update the pose of a link, in the OnUpdate function.
What function from the API can I use for it?
Hi,
I need to continuously update the pose of a link, in the OnUpdate function.
What function from the API can I use for it?
You could use Link::SetWorldPose for example, but note that this will override the physics engine, so things like gravity will be neglected.
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.
Asked: 2016-02-29 21:53:24 -0600
Seen: 539 times
Last updated: Feb 29 '16
~/pose/info topic doesn't provide all the link poses
How to set a direction of an audio sink?
Including models with different pose has no effect
How to set forceon links when some of the links are of mass zero?
Pose for simple gripper and sensor in the tutorials in the wrong position
Gazebo - Parent to child relative pose of a fixed joint keeps changinge