Skip to content

ROSSerial

Trent edited this page Dec 3, 2016 · 6 revisions

Setting up ROSSerial and Arduino for the first time

Follow the tutorial here.

Initializing ROS Serial Server

First find the Serial port your Arduino is connected to, then:

rosrun rosserial_python serial_node.py _port:=/dev/ttyACM* _baud:=57600

Note: If a baud rate of 57600 doesn't work, try 115200. All of the documentation tells you to use 115200, but we could only get it working at 57600.

ROS and Arduino

ROS_INFO() in Arduino

nh.loginfo('HELLO!'); //needs to be const char