Gazebo | Ignition | Community
Ask Your Question

Stop submarine body from spinning when moving forward

asked 2018-04-15 20:15:37 -0600

kalvik gravatar image

The submarine model's body spins in the opposite direction of the propeller while moving it forward. Is there a way to keep the body leveled while moving it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-16 11:37:56 -0600

updated 2018-04-16 11:44:08 -0600

I assume you mean the submarine in the Hydrodynamics Tutorial.

The submarine model body spins in the opposite direction of the propeller thanks to Newton's 3rd Law.

Two things you can do:

  1. Increase the mass of the submarine model's body to be >> than the mass of the propeller. This will reduce the effects on the submarine model's body.

  2. Write your own Plugin to apply an equal and opposing torque on the submarine model body (simulating the effects of fins and/or rudder compensation).

If you choose to write your own Plugin, I recommend completing the Velodyne Tutorial as well as checking out the source code for the LiftDrag Plugin and the Buoyancy Plugin.

Also, (at least for planes), there are a lot of other effects that come into play, see:

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-04-15 20:15:37 -0600

Seen: 93 times

Last updated: Apr 16 '18