ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rViz does not reflect my initial pose

asked 2016-05-10 18:02:53 -0600

mitch gravatar image

updated 2016-05-11 09:25:16 -0600

I am using a blank map and setting the initialpose by publishing to the initialpose topic. I expected that rViz would subscribe to this and that the initial pose in rViz would reflect it. But publishing different initial pose's does not change the initial location of my robot in rViz. Why is that?

I guess I don't understand how rViz should respond to initialpose messages. I run the rbx1 fake_nav_test and either manually in rViz or use rqt_publisher to send an initialpose message. I expect the robot to jump to the initial pose on the rViz screen, but nothing happens. This is all in the map reference frame.

I am using an example from ROS By Example Volume 1. The files are here: https://github.com/pirobot/rbx1 and I am using rbx1/rbx1_nav/launch/fake_nav_test.launch. I run roslaunch rbx1_nav fake_nav_test.launch.

edit retag flag offensive close merge delete

Comments

1

This could be due to various reasons:

  1. rviz does never subscribe to initialpose. You can add a Pose Display to doso
  2. do you have a localization running? If not, the topic goes nowhere.
  3. what is the fixed_frame in rviz? If it is notmap, the transform could look unchanged on a blank map
mgruhler gravatar image mgruhler  ( 2016-05-11 00:56:08 -0600 )edit

can you please provide a minimal example of the files that you actually start? best put it on github and link above...

mgruhler gravatar image mgruhler  ( 2016-05-11 08:54:49 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-05-11 19:59:05 -0600

mitch gravatar image

This is resolved. It was a bug in the indigo branch of the fake_localization node of the example I was trying. Now it works as I expected it should.

edit flag offensive delete link more

Comments

great, glad you found it...

mgruhler gravatar image mgruhler  ( 2016-05-12 02:08:06 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-05-10 18:02:53 -0600

Seen: 944 times

Last updated: May 11 '16