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:10 true true 100 1 -0.5 0.5 50 -0.5 0.5 0.2 5 0.1 0.005 /sensor/sonar0 sonar1
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!
↧