How can I visualise the ultrasonic sensor in Gazebo?

asked 2018-09-19 03:24:00 -0600

stevemartinov gravatar image

I want to add a gazebo plugin which is called 'sonar'. Here is my code that I took from the source:

<gazebo reference="ultrasonic">
      <sensor type="ray" name="sonar">
          <pose>0.25 0 0 0 0 0</pose>
          <plugin filename="" name="gazebo_ros_range">

I have added visualize to be true but in a gazebo simulation I can't see the cone shaped array from the sonar. What am i doing wrong here? Btw, I have added links and joints in my main xacro file, so the fault isn't there.

edit retag flag offensive close merge delete