Ask Your Question

Motors and RoS [closed]

asked 2016-06-28 13:21:58 -0500

RoSPlebb gravatar image

updated 2016-06-28 13:27:49 -0500


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!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by RoSPlebb
close date 2016-06-29 14:11:25.641734

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-28 14:58:50 -0500

fabian77 gravatar image

In short words:

Yes you can use an arduino to work as a ROS node, there are good examples here 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

edit flag offensive delete link more


Ah this helps a lot thank you very much i appreciate it.

RoSPlebb gravatar image RoSPlebb  ( 2016-06-29 10:55:37 -0500 )edit

Question Tools

1 follower


Asked: 2016-06-28 13:21:58 -0500

Seen: 302 times

Last updated: Jun 28 '16