I'm trying to simulate an accurate wheel odometry sensor in gazebo, or at least with some noise, in order to perform some localization tests and see the localization error for different methods. From what I understand, the standard differential_drive_controller plugin doesn't simulate noise in the wheel odometry, so I wanted to ask if there is any way to simulate noise and drift in the odometry that comes from the wheels or if I have to create my own code to do that, and if so, what would I need to do?


1 Answer 1


Try setting the odom source parameter within the plugin tag for diff drive controller to 1 to use encoders for odometry, which will introduce some noise.

    <plugin name="diff_drive" filename="libgazebo_ros_diff_drive.so">


        #This line here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.