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

Revision history [back]

It appears the rosserial_python node is looking for data coming over the serial line to be in a specific format. As such you could not send raw debug information on the same serial port. If your Arduino has more than one serial port, as with the Mega, then you could use Serial to send your debug data to the serial monitor and then use Serial1 to publish and subscribe.

Alternatively you could create a debug topic and republish to it any data received. From there you could execute the following command to see the data being published to that topic (assuming the topic is called 'debug'):

rostopic echo debug