Gazebo | Ignition | Community
Ask Your Question

SDF <noise> model details?

asked 2021-06-16 14:09:51 -0600

shonigmann gravatar image

updated 2021-06-22 13:29:43 -0600

I haven't been able to find much documentation on how the parameters specified in sensor <noise> tags are used. Is there any documentation on how noise is implemented?

In particular, I'm curious what underlying process is used to model time-correlated noise?

Additionally, I was wondering if using quantized noise results in a quantized output measurement or if it is just the noise added that is quantized?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-06-17 18:29:38 -0600

Adam Gronewold gravatar image

I am assuming you have seen this: Sensor Noise Tutorial ? If not I would start there. Here is a brief explanation of the tags: <type> This tag essentially specifies what type of distribution your noise comes from. 95% of the time you should just specify Gaussian, unless you are trying to model a sensor you have for a physical robot and you know its noise profile is different. In that case you will have to make your own noise type. Otherwise, the other tags kind of fall into place, because they basically provide the parameters needed to make such a distribution.

You could also look here: Noise Class Reference if you were planning on getting very detailed with it.

All that said, I haven't personally used this myself. I just figured I could get the obvious stuff out of the way if you hadn't discovered them yet. Based on your last two questions I am guessing you will need to make your own noise type.

edit flag offensive delete link more


Thanks for the answer. I'm familiar with the stock Gaussian noise model in Gazebo, although it falls a bit flat when simulating sensors with time correlated noise (drift) like gyros. The SDF specification for IMU's offer a number of additional parameters to approach more realistic noise representations. But I haven't found any indication of their use in Gazbo; but I suppose not everything in SDF is necessarily in Gazebo. In any case, SetCustomNoiseCallback() seems like a potential workaround

shonigmann gravatar imageshonigmann ( 2021-06-22 13:32:53 -0600 )edit

If you are building your model via URDF, many of the SDF tags will never be parsed by Gazebo when you launch your simulation. If you are having trouble setting those tags, I would recommend you make a very basic plugin to fill the vital parameters. It is a pain, but it seems that is the way to go right now for many things in Gazebo.

Best of luck.

Adam Gronewold gravatar imageAdam Gronewold ( 2021-07-02 18:37:09 -0600 )edit

Question Tools

1 follower


Asked: 2021-06-16 14:09:51 -0600

Seen: 97 times

Last updated: Jun 22 '21