[ODE] External vs. internal joint forces
michael.goldish at gmail.com
Wed Jun 13 10:31:50 MST 2007
My solution to this problem is to use AMotor joints in addition to hinge
joints (or whatever you use).
Use the function dJointSetAMotorParam on the AMotor joints to set
dParamFMax and dParamVel.
Use the function dJointSetHingeParam on the hinge joints to set the stops
(dParamLoStop, dParamHiStop, ...).
Use dJointSetFeedback on the AMotor joints and hinge joints separately,
and hopefully you'll receive the correct information.
If I may, I would like to ask a related question:
Once you have the internal forces, how do you compute how much work has
If the answer is too long or complex I would appreciate it if you provided
a relevant link (if you know of one). I haven't found an answer to this on
On Wed, 13 Jun 2007 20:04:27 +0300, Arndt Twickel <ode at twickel.ws> wrote:
> Basically I'm asking a question that has already been posed on this
> list several times (see e.g. ), but to which I couldn't find
> satisfactory answer:
> I would like to know if it is possible to get information about internal
> external forces/torques in joints. By internal forces I mean forces
> applied by a
> motor of the same joint, by external forces I mean all other forces.
> When you use a motor you specify a desired velocity and a maximum force
> that may
> be applied by the motor to reach the desired velocity but in the end you
> do not
> know how much force was actually applied by the motor.
> With the dJointGetFeedback() function you get the accumulated
> force/torque at a
> joint but you cannot tell who (motor, gravity, other motors,
> environment, ...)
> contributed how much of the force.
> The only possibility I can think of at the moment (and which I would
> like to
> avoid if possible, see e.g. ) is to use functions like e.g.
> dJointAddHingeTorque() (where forces/torques are explicitly added to the
> instead of the joint motors (see also ).
> Why do I need to differentiate between internal and external forces in
> I would like to:
> 1. implement an energy sensor that tells me how much work has been done
> by the
> 2. implement a spring coupling where I need to know the energy taken up
> / put
> back into the system by the spring to determine its state.
> Any help is very much appreciated!
>  http://ode.org/pipermail/ode/2006-September/020180.html
>  http://ode.org/pipermail/ode/2006-August/019935.html
>  http://ode.org/pipermail/ode/2007-April/thread.html#21896
>  http://ode.org/pipermail/ode/2002-October/006096.html
>  http://ode.org/pipermail/ode/2001-December/004757.html
>  http://ode.org/pipermail/ode/2007-May/021917.html
> ODE mailing list
> ODE at ode.org
More information about the ODE