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

Is there a ROS package that can generate analog and digital output?

asked 2012-12-19 02:37:20 -0500

AdrianPeng gravatar image

updated 2014-01-28 17:14:37 -0500

ngrennan gravatar image

I want to use ROS to control a motor controller. But the motor controller can only be controlled by analog and digital input. Is there a ROS package that can do that?

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ┬╗ oldest newest most voted

answered 2012-12-19 02:51:29 -0500

davinci gravatar image

To my knowledge there are no I/O or gpio packages available. You could buy an arduino, this a microcontroller with a serial (over usb) interface on which you can perform analog and digital input and output. You can control it with the ros serial package I suggested before. Example of how to blink a led ( the led could also be the motor controller, with some extra components off course).

edit flag offensive delete link more


I currently use Gumstix Overo® FE COM computer-on-module and Gumstix RoboVero micro controller. Gumstix RoboVero micro controller is used to communicate with motor controllers. So there is no ROS package for Gumstix RoboVero and there is only package for Arduino, right?

AdrianPeng gravatar image AdrianPeng  ( 2012-12-19 07:55:02 -0500 )edit

Is it hard to write a ROS package for RboVero micro controller?

AdrianPeng gravatar image AdrianPeng  ( 2012-12-19 08:03:36 -0500 )edit

If the robovero is running an embedded linux system, you may want the embeddedlinux version of rosserial instead

JonW gravatar image JonW  ( 2012-12-19 17:46:58 -0500 )edit

Hi JonW, I think Overo and its daughter board RoboVero can run Ubuntu and full ROS stacks. So it might not need to use embeddedlinux version of rosserial. The problem right now is that whether or not the rosserial package can be used on Gumstix RoboVero.

AdrianPeng gravatar image AdrianPeng  ( 2012-12-22 20:02:35 -0500 )edit

And can rosserial package generate digital and analog signal on RoboVero daughter board.

AdrianPeng gravatar image AdrianPeng  ( 2012-12-22 20:03:26 -0500 )edit

From a quick search on Google I found this information stating that it is possible: (second post, not sure which ros package is used..)

davinci gravatar image davinci  ( 2012-12-23 03:46:40 -0500 )edit

With the python code posted here, it would also be possible to create your own node

davinci gravatar image davinci  ( 2012-12-23 03:49:01 -0500 )edit

Question Tools


Asked: 2012-12-19 02:37:20 -0500

Seen: 1,120 times

Last updated: Dec 19 '12