Quantcast
Viewing all articles
Browse latest Browse all 7017

Can't get sonar data with rostopic echo

I've added a sonar sensor on my custom robot model, and i also added the plugin for the sonar in my xacro file like this:10truetrue1001-0.50.550-0.50.50.250.10.005/sensor/sonar0sonar1 In Topic Visualization window inside gazebo gui i see the topic > /gazebo/default/robot/link_name/sonar_sensor/scan and i can view the data with the > gz topic -e /gazebo/default/robot/link_name/sonar_sensor/scan but i want to see the sonar data via > rostopic echo /sensor/sonar0 which is the topicName inside the plugin. So i followed [evarobot tutorials](http://wiki.ros.org/evarobot_sonar/Tutorials/indigo/Writing%20a%20Simple%20Subscriber%20for%20Sonar%20Sensor) and subscribed on that topic. The problem is that when i run >rosrun evarobot_sonar_subs sonar_listener and then > rostopic echo /sensor/sonar0 i get the message > WARNING: no messages received and simulated time is active. Is /clock being published? Do i miss something? Thanks in advance!

Viewing all articles
Browse latest Browse all 7017