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

1) You need to start up your node by running "rosrun your_package your_node" or an equivalent roslaunch command. I assume you're doing that and that the code you quoted is not complete.

2) If your node lives in its own namespace "my_node_ns", then it would try to subscribe to "/my_node_ns/led/start". Make sure to publish to the right topic.

3) Debug by: - adding ROS_INFO("test"); or similar in your functions so you know they are being called. - Using rostopic list /led/start --verbose to check if your node is subscribing correctly to the topic. - Checking your serial ports and USB connection. It seems like a problem with your Arduino connection, not the ROS side.

1) You need to start up your node by running "rosrun your_package your_node" or an equivalent roslaunch command. I assume you're doing that and that the code you quoted is not complete.

2) If your node lives in its own namespace "my_node_ns", then it would try to subscribe to "/my_node_ns/led/start". Make sure to publish to the right topic.

3) Debug by: by:
- adding ROS_INFO("test"); or similar in your functions so you know they are being called.
- Using rostopic list /led/start --verbose to check if your node is subscribing correctly to the topic.
- Checking your serial ports and USB connection. It seems like a problem with your Arduino connection, not the ROS side.