Gazebo | Ignition | Community
Ask Your Question

Realistic implementation of ultrasound sensor in gazebo_range plugging?

asked 2016-02-17 02:03:00 -0600

carlos.tubio gravatar image


I am trying to simulate ultrasound sensor in gazebo. I have found in the gazebo_pkg the gazebo_range plugging. This plugging supplies the radiation_type field where you can choose ultrasound emission type if you want to simulate this sensor behaviour. But I wonder whether the behaviour in the simulation is realistic or not . It is well-known that when the ultrasound sensor cone hits against a surface and this one is not perpendicular some problems appear to get the reflected wave. Usually ultrasound hitting against a plate with 45º-degrees angle doesn't see the surface. So and in summary my question are:

Has the plugging implemented this behaviour?

If the answer is not. How difficult would it be to implement it?

Thanks a lot.

edit retag flag offensive close merge delete


Ideas anyone?

asdfjkl gravatar imageasdfjkl ( 2016-05-26 19:06:29 -0600 )edit

2 Answers

Sort by » oldest newest most voted

answered 2017-09-26 11:02:56 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello @carlos.tubio

I'm having the same issue. It seems that simulating an ultrasound sensor with a <ray> tag, gazebo_range plugging and an ultrasound radiation type, doesn't follow the behavior of a real ultrasound sensor. I tested it putting a box and a cylinder in different orientations relative to the ultrasound rays and always the range value was the closest collision point.

Now @nkoenig, using the <sonar> tag available in the SDF format, I have found two problems. The first one is that the sonar sensor -when the radius is big enough- detects the collision with the ground, this doesn't make sense. And the second one is that there is no plugging to communicate the range value with ROS.

So, what did you do? Does anyone know how to implement a sonar sensor that have the real wave behaviour and a plugin to communicate with ROS?

edit flag offensive delete link more

answered 2016-05-27 10:40:11 -0600

nkoenig gravatar image

The ultrasound sensor in Gazebo is only a rough approximation of sonar. A cone is "collided" with objects in the world. The closest collision point, if any, is used to compute the range returned by the sonar.

We'd love help improving this sonar model. Take a look at the source code .

edit flag offensive delete link more
Login/Signup to Answer

Question Tools



Asked: 2016-02-17 02:03:00 -0600

Seen: 597 times

Last updated: May 27 '16