Motors and RoS
Greetings!
I am new to ROS and i have been trying to find out how exactly can you set up motors with RoS? I am using hector_slam to create an autonomous robot.
If i use a Pi with ubuntu and ROS, how does ROS communicate with the motors? Is there a way to have ROS communicate with Arduino for motor control?
If anyone can provide links to help me understand ROS i would be very grateful.
Sorry for the ignorance and thank you for your time!
Asked by RoSPlebb on 2016-06-28 13:21:58 UTC
Answers
In short words:
Yes you can use an arduino to work as a ROS node, there are good examples here wiki.ros.org/rosserial_arduino/Tutorials showing you, how you can use an arduino to subsribe and publish to messages f.e.
What you want to do if your motors are driven by an arduino, is to programm the arduino as a, i call it "base_controller". This way the arduino (running as ros-node) could subsribe to the topic "/cmd_vel" and then "translate the subsribed message into commands to steer your drives connected to it.
what i expect you to do first, is to go through the basic tutorials for ROS, so you understand the ROS infrastructure and what f.e. nodes are, what they do (subscribe and publish messages, in generall) and so on.
Hope this helps a bit, Fabian
Asked by fabian77 on 2016-06-28 14:58:50 UTC
Comments
Ah this helps a lot thank you very much i appreciate it.
Asked by RoSPlebb on 2016-06-29 10:55:37 UTC
Comments