ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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.