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

How to synchronize the map in Rviz and Stage

asked 2014-06-18 22:13:14 -0600

Cole gravatar image

Hi to All,

I am new to ROS. I am doing the navigation simulation based on the package of "navigation_stage". I replace the default map with mine and generate the .world file. But when I run the simulation, the maps in Rviz and that in Stage are not synchronous (they are not in the same coordinate). I notice the size, orientation can be adjusted in the .world file. But I do not know how to set the values for them.

Is any one know about this? Thanks in advance.

Fangwen

edit retag flag offensive close merge delete

Comments

Hi,

I am having the same problem. Have you solved this yet?

Itay.H gravatar image Itay.H  ( 2015-09-01 02:12:58 -0600 )edit

i also need help in doing the same thing plz can someone help us all

naqi.nick gravatar image naqi.nick  ( 2016-01-17 11:31:51 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-03-13 10:36:02 -0600

gavran gravatar image

updated 2016-03-13 10:36:26 -0600

I recently ran in the same problem and summarized all I found out in this post There are two main points:
1. align coordinate system, taking into account that .yaml origin gives coordinates of lower left point in the image, while .worlds's pose gives coordinates of the centre of the map.
2. add a black border around the image, because otherwise it would be trimmed by Stage

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-18 22:13:14 -0600

Seen: 1,821 times

Last updated: Mar 13 '16