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

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

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

AdrianPeng gravatar image

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

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
0

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

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). http://www.ros.org/wiki/rosserial_arduino/Tutorials/Blink

edit flag offensive delete link more

Comments

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 -0600 )edit

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

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

If the robovero is running an embedded linux system, you may want the embeddedlinux version of rosserial instead http://www.ros.org/wiki/rosserial_embeddedlinux.

JonW gravatar image JonW  ( 2012-12-19 17:46:58 -0600 )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 -0600 )edit

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

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

From a quick search on Google I found this information stating that it is possible: http://gumstix.8.n6.nabble.com/Advice-on-Overo-AirSTROM-COM-and-RoboVero-td4964450.html (second post, not sure which ros package is used..)

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

With the python code posted here, it would also be possible to create your own node http://robovero.org/lab/projects/rainy-day-project-panning-webcam/

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

Question Tools

Stats

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

Seen: 1,164 times

Last updated: Dec 19 '12