Closed jeevan-navudu closed 4 years ago
Yes, the wheel positions and orientations you gave are consistent with your physical description. You may want to "tune" the heading by adjusting the distance between the left/right vertical wheels (similar to the built-in track width tuner).
Thank you, I will do that tomorrow and let you know the results. For the heading calculation, is only the track width needs to be tuned? what about the x values of the three wheels? Is third wheel position data used at all in heading calculation?
Yes, only the track width needs to be tuned. The x-positions of the left/right wheels are irrelevant. The x-position of the third wheel is used, while the y-position is not used. You can check this by computing the forward kinematics matrix yourself.
Changing the track width by a small value fixed the error. Closing this ticket. I will see if I could write a test op to tune the trackwidth of the localizer.
I am using the RoadRunner-QuickStart project. Below is my Robot configuration
With the above configuration when I run Localization test, X and Y are reporting good but the heading is showing OK for very little time and soon goes out of sync. After couple of rotations approximately -30 degrees shows as 0 degrees. (I was printing both in radians and degrees on telemetry). Just to summarize my robot is as below
LW - Left tracking wheel RW - Right tracking wheel HW - Horizontal tracking wheel
Does the code work for the above configuration?