[ODE] Get vehicle speed from angular velocity of wheel.
Jeff Weber
jeffreyweber at hotmail.com
Tue Jul 29 08:24:02 2003
Sorry, that was a typo in my post. I just double checked my code and I am
calling:
dJointGetHinge2Angle2Rate
So, given that. The speed calc is correct, isn't it? I think my problem is
in converting things to my world units...
----Original Message Follows----
From: "Martin C. Martin" <martin@metahuman.org>
To: Jeff Weber <jeffreyweber@hotmail.com>
CC: ode@q12.org
Subject: Re: [ODE] Get vehicle speed from angular velocity of wheel.
Date: Tue, 29 Jul 2003 11:12:57 -0400
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
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963