Waypoints curvature to IA driver
Hello!,I want calculate in a list of waypoint the waypoints which is in a curve.And I want calcule the curvature grade.
I have a car track,I want know where the curve begin and where the curve end.
So I want know the angle of curve to brake more or less for the IA.I want brake in the start point of curvature and acelerate in the end point.
SomeBody know How I can do this?
Thanks.
My first thought would be to calculate the acceleration required at each node. This can be done by taking the difference of the direction before and after the node. A(n) =[ P(n+1)-P(n) ]- [ P(n)-P(n-1) ] or A(n) = -2*P(n)+P(n+1)+P(n-1) . Assuming the nodes are roughly evenly spaced(if they're not some normalization could probably work around it) this acceleration vector would represent the direction and magnitude of turn necessary, and curves could be detected as nodes with a high magnitude of acceleration.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement