Best way to get custom mobile robot velocity? [closed]
I have a custom Mobile Robot (4 wheel differential drive robot) and have a raspberry pi running Ubuntu Mate 16.4 with ROS Kinetic and 2 encoders (right and left) connected to the pi. Also I'm using Adafruit DC motor drive and RPlidar A2 from SLAMTEC.
I'm trying to use the Navigation stack to get it to move from point A to point B, but don't really know how to provide the odometry needed for the Navigation Stack.
Do you have encoders on the wheels so you can measure how far they've turned? These are the sensors you need to generate proprioceptive odometry estimates.
Yes I do. I have 1 encoder on each side of the robot. My problem is I don't understand what is the odometry needed for the Navigation Stack and how to get that distance from the Raspberry Pi (I'm using the GPIO on the Pi to connect the encoders to)