ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Position of a point on expanding map of GMapping

asked 2014-10-10 04:28:29 -0600

Sekocan gravatar image

Hi, I am trying something and I need some help.

I have two robots which are mapping the same environment by using separate GMapping algorithms and building separate maps. During the mapping process, I want to send the maps to a host computer time to time. On this host computer, I want to merge these maps but as you can guess, unless the maps have a large area of intersection, using ICP or a similar algorithm wont work.

So I placed distinct landmarks in the environment (like the soccer playing robots use, cylinders with colored stripes) and I can detect them with the help of Kinect which enables me to know the position of the landmark relative to the robot. And with the help of GMapping, I know the position and orientation of the robot according to the map. The plan is, sending the seperate maps to the host with landmarks tagged on it and the host can easily match the position of the landmarks and merge the maps (with necessary translations, rotations and distortions if necessary).

What my problem is, GMapping expands the map if it needs to. And coordinates of the points on the map change if that happens (I am planning to use the pgm files as maps but any other suggestions would be appreciated). How can I get the coordinates of the points and my robot on the map (with negative coordinates if necessary) relative to an absolute position (like the start position of the robot)?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-10-10 06:16:29 -0600

dornhege gravatar image

The MapMetaData defines an origin. The transformation of the same point relative to this origin should not change.

edit flag offensive delete link more

Comments

Thank you! It was so simple yet hidden :) I did some experiments and saw that the MapMetaData origin values change according to the expansion of the map and always give the real world coordinates of the bottom left corner of the map.

Sekocan gravatar image Sekocan  ( 2014-10-10 10:16:34 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-10 04:28:29 -0600

Seen: 631 times

Last updated: Oct 10 '14