[ODE] Get vehicle speed from angular velocity of wheel.

Martin C. Martin martin at metahuman.org
Tue Jul 29 08:12:02 2003


Take a look at the docs.  Angle1 is the steering column, not the wheel
axis.  You need Angle2Rate.

- Martin

Jeff Weber wrote:
> 
> Am I missing something here?  I want to compute the vehicle speed from the
> angular velocity of the wheel.
> 
> In general,
> 
> d=r*theta  (where d=distance, r=radius, theta=angle)
> 
> Therefore,
> 
> speed = r*angularVelocity (from dJointGetHinge2Angle1Rate)
> 
> (assume r is in meters and speed is m/s)
> 
> It seems pretty straight forward, but when I measure the time it takes for
> the vehicle to go a certain distance in my "world" while it drives at a
> constant speed.  The numbers don't seem to jive.  Could be a conversion
> problem (I put everthing into mph) but I wanted to make sure I have the
> basics correct. Is my caculation for speed correct?
> 
> -jeff
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
> 
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode