Page 1 of 1

add odometer noise

Posted: 18 Mar 2019, 12:05
by lyz
Hi to all,
I have built a scene and a robot model. Then I publish these sensors' data to ROS, and simulate the noise of the sick laser, but I have no idea how to simulate odometer noise, can someone help me?
Any suggestion is welcome
thanks

Re: add odometer noise

Posted: 18 Mar 2019, 15:29
by coppelia
This will depend on your noise model. Simply modify your sensor data before publishing it via ROS. e.g:

Code: Select all

local noiseData=noiselessData*(1+math.random()*noiseAmplitude)+noiseOffset
Cheers

Re: add odometer noise

Posted: 19 Mar 2019, 02:57
by lyz
Yes, thank you for your reply. I used to simulate the laser data like this, and the error increases with the distance. However, the odometer error generally increases with the increase of mileage drift. In this way, I think I will real-time calculate the mileage of two odometer wheels first, and then add two noises to the mileage datas of the two odometer wheels. Finally, publish odom topic.