-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Motor Controllers #36
Comments
To download RoboRun software, go to https://www.roboteq.com/support/files-download The software requires a Windows computer to test. |
Wrote the following code in RoboRun+ setcommand(_GO, 1, 1000) Sends power to the motor with a value of 1000. Motor ran successfully in bursts upon each "Run" command. We will next put the command in a loop and alter code. Follow manual attached above for wiring configuration. |
[ 7332.949165] tegradc 15210000.nvdisplay: blank - powerdown |
Our motor controllers will control our motors. We need to control our motors to drive our robot.
Flashing anything to our motor controller(s)
Before we can use our motor controllers for anything, we have to actually be able to flash programs to them. This probably requires using these roboteq ROS packages to communicate with them.
Completion Criteria: we can flash a program to the motor controllers.
Writing a useful program for motor controller(s)
Now that we can flash our motor controllers, we need to write a program that can usefully control them. This will probably just require adapting the old code from the Bowser repo, and adjusting it for driving a single motor.
Completion Criteria: the motor controllers should be ready to accept data in a format we specify, and turn that data into motor commands.
ROS script to talk to motor controllers
With our motor controllers programmed, now we just need to tell them what to do. A ROS script will open a serial connection to the motor controller(s) (pyserial). Then, it will listen for ROS messages on a specific topic and convert them to commands for the motor controller in whatever format we specified.
Completion Criteria: ROS script should receive ROS messages, and convert them into the correct format for motor controller.
Actually controlling motors
All the pieces are in place, now we just need to make sure we can actually control the motors using the stuff from above. Testing this will require that the motor controller be hooked up to a battery and the motor(s). Talk to Dwight first. Make sure the motors aren't actually touching the ground when you do this.
Completion Criteria: motors actually move in the expected direction at expected speed. Test through the whole range of speeds, if possible.
The text was updated successfully, but these errors were encountered: