Gazebo | Ignition | Community
Ask Your Question
0

Ray Sensor sometimes returns random values.

asked 2020-11-17 09:24:16 -0500

EkinBasar gravatar image

Hello,

I am having trouble with getting consistent and deterministic sensor data.

I have been slowly troubleshooting this issue by trying different scenarios and setups such as changing physics solver type, gazebo seed, sensor noise and resolution settings and even different gazebo versions.

If I manually change robot's coordinates, sometimes sensor data has a slight difference at the same coordinates which leads to bigger difference when robot is controlled by acquired sensor data. I wrote a plugin that steps paused simulation when sensor data reads new value. I also tried to I tried to read sensor data on command by gazebo::sensors::run_once(true); function. Still no luck.

I was wondering if you have any suggestions or insight into why this might be happening. Or if there is a way to fix this, be it from your side, or our side.

Best regards, Ekin

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-18 13:11:28 -0500

JShep1 gravatar image

I believe the phenomenon you're alluding to is sensor noise. The nature of sensor noise is that it is non-deterministic, and Gazebo aims to provide a simulation accurate to the real world which also returns non-deterministic sensor values.

You will likely need to run some sort of filter on your sensor data.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-11-17 09:24:16 -0500

Seen: 108 times

Last updated: Nov 17 '20