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

Revision history [back]

Rosserial uses the arduino's serial port for communication. By writing to the same port using Serial.print you're breaking the protocol. This is hinted at in the error messages you're getting.

(device disconnected or multiple access on port?)

There are specific commands for logging inside arduino code using rosserial to solve this exact problem. As shown below:

nh.loginfo("Program info");

Hope this helps.