rViz does not reflect my initial pose
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.
This could be due to various reasons:
rviz
does never subscribe to initialpose. You can add a Pose Display to dosofixed_frame
inrviz
? If it is notmap
, the transform could look unchanged on a blank mapcan you please provide a minimal example of the files that you actually start? best put it on github and link above...