Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kobuki odometry in world frame #410

Open
vyi opened this issue Mar 19, 2020 · 1 comment
Open

Kobuki odometry in world frame #410

vyi opened this issue Mar 19, 2020 · 1 comment

Comments

@vyi
Copy link

vyi commented Mar 19, 2020

If there a way to get kobuki odometry with respect to world frame (Gazebo Frame).

I have seen this : https://answers.ros.org/question/222033/how-do-i-publish-gazebo-position-of-a-robot-model-on-odometry-topic/
The above link suggests that we add odometry ourselves and get world position of the robot.

I think getting the odometry in world frame is just a matter of setting the initial pose of kobuki to (x0, y0, theta0) in the kobuki_controller (i.e. libgazebo_ros_kobuki.so). Is there a way to initialize the internal odometry of kobuki robot during launch.

Kindly let me know.

@corot
Copy link
Collaborator

corot commented Apr 9, 2020

There's a commands/reset_odometrytopic of type std_msgs/Empty. Publishing on it should reset odometry to 0, 0, 0.

That said, your localization system (if any) will keep changing the map --> odom transform, so your odom won't be anymore on world frame. Exception is if you use no localization, e.g. with a static 0, 0, 0 map --> odom tf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants