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

Revision history [back]

click to hide/show revision 1
initial version

Hi, Initialize the ros handle with the same baud rate in your Arduino code nh.getHardware()->setBaud(BAUD) Something like this void setup() { Serial.begin(115200); nh.getHardware()->setBaud(115200); nh.initNode();

Once you are done uploading, start roscore and then type

rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 _baud:=115200

Make sure your port and baud rate are same.

Hi, Initialize the ros handle with the same baud rate in your Arduino code nh.getHardware()->setBaud(BAUD) Something like this this

   void setup() {
      Serial.begin(115200);
      nh.getHardware()->setBaud(115200);
      nh.initNode();

nh.initNode();

Once you are done uploading, start roscore and then type

rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 _baud:=115200

Make sure your port and baud rate are same.