Gazebo | Ignition | Community
Ask Your Question

Wheel enoder in Gazebo

asked 2015-06-18 05:29:43 -0500

TJAN gravatar image

updated 2015-06-25 09:00:29 -0500


What is the correct/best way to simulate wheel encoders in Gazebo and publish the results in a topic. The robot is based on the tutorials. What I want is to fuse the IMU data with the wheel enoder data with the ROS package robot_loalization.


EDIT: Thanks for your reply, I tried it and a few other ways, but can't get it to work.
How do I publish a message on a ROS topic? I tried:

  • [Taking parts from the IMU and Laser from] (
  • [Copy and edit this code](

Currently the plugin can be added to a model and it will be loaded and also updating works.But I can't publish to a topic and I didn't start yet on reading out the model. I use gazebo 2.2.3

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-19 09:57:43 -0500

nkoenig gravatar image

The differential drive plugin is a good example and possible starting point.

You can write a model plugin that reads a joint angle, and then publish that information on a topic.

edit flag offensive delete link more


Thanks for your reply, but can't get it to work. I edited the post with new information.

TJAN gravatar imageTJAN ( 2015-06-25 09:01:51 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2015-06-18 05:29:43 -0500

Seen: 5,673 times

Last updated: Jun 25 '15