[ODE] Representing external simulation objects in ODE on atrajectory

Delerue Jean-Francois Jean-Francois.Delerue at singlebuoy.com
Wed Aug 8 07:08:35 MST 2007


Would you have some good pointer to the theory on PID controllers or
some examples using it?

Thanks in advance,

Jean Francois

-----Original Message-----
From: ode-bounces at ode.org [mailto:ode-bounces at ode.org] On Behalf Of dan
Sent: Tuesday, July 31, 2007 7:27 AM
To: ode at ode.org
Subject: Re: [ODE] Representing external simulation objects in ODE on

the method that seems to work best is to create a simple proportional
controller to move an in-world object.  It can be as simple as this:

Say your object is presently moving at velocity V0, and you want it to
at velocity V1.  set your force F = (V1-V0) * K, where K is a constant
figure out by trial and error (look up theory on PID controllers if

This approach will work as long as there's friction around to damp
oscillations.  If not, you need to add a damping force, which would
typically be another constant times acceleration (ie difference between
present velocity and velocity at step t-1).

This sort of stuff is often in the game engine layers that are built on
of physics engines.  There might be a game engine that sits on ODE that
would help with this; otherwise, it's roll-your-own.


More information about the ODE mailing list