Gazebo | Ignition | Community
Ask Your Question

how to add constant force to a link

asked 2017-12-26 10:59:31 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I am building a drone in gazebo. Wenn i use this->link->AddRelativeForce (), it seems like only an inpuls force is added to the link, but i need the force to be always applied on the link, how can i achive it

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-26 11:35:16 -0600

chapulina gravatar image

If you want a continuous force, you'll need to re-apply it every iteration. You can do that connecting a callback to the WorldUpdateBegin event as done on this tutorial.

edit flag offensive delete link more


Thanks for your answers. It works good and solves my problem

gq38071112 gravatar imagegq38071112 ( 2017-12-26 11:48:47 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-12-26 10:59:31 -0600

Seen: 1,110 times

Last updated: Dec 26 '17