Gazebo | Ignition | Community
Ask Your Question
0

how to add constant force to a link

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

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
0

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

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

Comments

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

gq38071112 gravatar imagegq38071112 ( 2017-12-26 11:48:47 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 1,519 times

Last updated: Dec 26 '17