ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
First, have you started a master by running "roscore" in a separate terminal? If not, nothing will go.
Second, you need an "nh.spinOnce()" in your loop(), otherwise things like time and topic negotiation will not be handled (the "lost sync with device" is due to the time synchronization not occuring, since you never call spinOnce).