Contribution about odometry and "follow_path" #1843
michelvancan
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Very nice! Do you have some kind of video demonstrating how this works? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the "Technic hub" with the Audi e-tron 42160 kit.
I'm surprised at the power found in Lego hubs.
Associated with the wonderful Pybricks software, this allows you to consider programming advanced robotics.
Here are 2 examples that can serve as a basis for your applications.
We can certainly improve these programs, all your comments are welcome.
Odometry
This makes it possible to know the position of a vehicle based on the rotation of the wheels and
the heading of the vehicle. The gyroscope works very well (as does the Pybricks processing) and
the positioning error is reasonable. Here is my program (Of course it must be adapted according
to the configuration of the motors and the size of the wheels):
Follow path
Then the path tracking (defined by a succession of points).
Please note, the sequence of segments must be reasonable depending on the radius of curvature of the vehicle
(50cm for Audi-Etron). Here is the program:
Finally here is the complete program:
Beta Was this translation helpful? Give feedback.
All reactions