ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rosserial and motor controllers

asked 2014-03-17 08:02:24 -0500

Pototo gravatar image

Hi, I am a little bit confused about the usage of rosserial. Is rosserial supposed to be used only for running it only inside embedded systems such as microcontrollers?

What if I have a motor controller on my robot, and I want to write ROS code to interface with it (the motor controller uses serial commands for communication)? Can I just have rosserial running on the robot's laptop in order to communicate with the motor controller?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-17 08:11:49 -0500

ICodeRaven gravatar image

updated 2014-03-17 08:12:19 -0500

You can always use standard serial I/O for communicating with serial devices from a ROS node; ROS serial is a mechanism through which you can program any two systems that can communicate via serial to use ROS' API instead of bothering to deal with low level serial port I/O.

Specifically, in your case your motor controller will most probably come with a SDK of sorts that deals with sending motor commands over a serial port. You would simply use that API within your ROS node on your laptop to communicate with the motor controller.

ROS Serial would be useful if you were to write your motor controller from scratch on say an Arduino, and wanted to easily communicate with ROS devices over the serial port using the ROS Serial API.

edit flag offensive delete link more


I see. Thank you

Pototo gravatar image Pototo  ( 2014-03-17 12:27:26 -0500 )edit

Question Tools


Asked: 2014-03-17 08:02:24 -0500

Seen: 879 times

Last updated: Mar 17 '14