cmd_vel and odom integration for the sensorless jetbot - #22
Open
GavinKane wants to merge 15 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request creates a differential drive controller, with the motor control inside a hardwareinterfface class using Tom Clarks cpp version of the ADAfruitMotorHat. It allows /mobile_base_controller/cmd_vel messages to be recieved by jetbot, and robot will be able to provide odom messages back.
Odom is provided through dead reconing, whích for a robot without any sensors on the motors, is the best we can do. If the robot is moving fast, it works well. If the robot is trying to move slowly, near the dead-zone of the motor, it is not very accurate. But working with AMCL it is good enough to maintain a track of its position in a given map. Best not to run AMCL on the Jetbot itself, but on a separate computer.