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

Jeff Weber jeffreyweber at hotmail.com
Tue Jul 29 07:56:01 2003


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