ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
First welcome to ROS and this forum!
If you are using the arduino micro, please add to your Arduino code add:
#define USE_USBCON
just before
#include <ros.h>
Just in case you are using an Arduino Micro.
As far as i know, rosserial uses 57600 as default baud rate, so if you do not changed it, just try it without _baud:=xyz:
rosrun rosserial_python serial_node.py /dev/ttyACM0
If you want to change your baudrate in your Arduino code by using:
nh.getHardware()->setBaud(BAUD)
(where BAUD can be 9600) before you initialize the node. Here don't forget to call rosserial with _baud:=9600
Greetings and happy coding,
krl
2 | No.2 Revision |
First welcome to ROS and this forum!
If you are using the arduino micro, please add to your Arduino code add:code:
#define USE_USBCON
just before
#include <ros.h>
Just in case you are using an Arduino Micro.
As far as i know, rosserial uses 57600 as default baud rate, so if you do not changed it, just try it without _baud:=xyz:
rosrun rosserial_python serial_node.py /dev/ttyACM0
If you want to change your baudrate in your Arduino code by using:
nh.getHardware()->setBaud(BAUD)
(where BAUD can be 9600) before you initialize the node. Here don't forget to call rosserial with _baud:=9600
Greetings and happy coding,
krl