ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The rostopic and rosnode tools should help you debug this.
First you can check if the Hokuyo node is publishing anything, by using 'rosnode info <nodename>'. You can find the nodename by running 'rosnode list'. This should show you the topics that are published by the Hokuyo node. Check if 'scan' is one of the published topics.
Then see if there is actual data on the 'scan' topic, by running 'rosnode hz scan'. This will show you how many messages are published on the 'scan' topic.
Now see which nodes are using the 'scan' topic by running 'rostopic info scan'. You should see the Hokuyo node as a publisher, and your own node as a subscriber. If your node is not listed as a subscriber, it can't receive any scan messages.