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

how to identity the grid center with saved map center?

asked 2019-10-28 19:57:41 -0600

Redhwan gravatar image

updated 2023-06-18 10:00:37 -0600

lucasw gravatar image

I created the map using a gmapping, then save it, but I saw the center of the map doesn't identify with the center of the grid when I run it this command "roslaunch e100_navigation slam_gmapping.launch". another issue: the coordinates of the map and Odom located outside the map, I found it on the region of the grid. image description

you see the localisation of the robot outside the map

I'd like to see it on the map

what is wrong?

Any help would be appreciated

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2019-10-29 02:40:57 -0600

Delb gravatar image

If you already have created a map then you don't have to use gmapping anymore. gmapping is for SLAM : Simultaneous Localization and Mapping so you just need to localize the robot in your map.

What exactly have you run to get this result ? I assume you've just launched map_serverto get your map and then gmapping ? Instead take a look at the file navigation.launch from your package, they launch the map_server node and then they use the package AMCL for the localization.

edit flag offensive delete link more

Comments

first of all, thank you @Delb, everything is fine, I just need to create the map in the region of the grid not next to the grid. I will use it for going to a specific position and use the map coordinate as reference. it is working with me but I want to get a small error as possible. As shown in figure above the coordinates both the map and Odom outside the map.

Redhwan gravatar image Redhwan  ( 2019-10-29 05:57:59 -0600 )edit

I just need to create the map in the region of the grid not next to the grid.

Can you clarify this ? Are you saying that your screenshot shows the map created with gmapping or that you want to build another map on top of your previous map ? You should provide more info about the nodes you've launched to get this result and detail exactly what you want.

Delb gravatar image Delb  ( 2019-10-31 03:02:20 -0600 )edit

@Delb, thank you so much, it is fine now.

some mistakes before.

Redhwan gravatar image Redhwan  ( 2019-11-05 06:08:07 -0600 )edit

Hi,

I face the same issue with the grid not matching the map created. How exactly did you fix it ? Please update the specifics before marking it as answer

Sid05 gravatar image Sid05  ( 2022-05-13 07:09:15 -0600 )edit

did you try to reboot the robot and launch it again?

Redhwan gravatar image Redhwan  ( 2022-05-13 07:30:10 -0600 )edit

Yes , I did

Sid05 gravatar image Sid05  ( 2022-05-13 07:40:16 -0600 )edit
0

answered 2019-10-28 21:43:03 -0600

fergs gravatar image

With any map, you'll need to localize the robot in the map at each startup -- there is a "set 2d pose" tool in RVIZ that does that. This wiki page has more details: http://wiki.ros.org/navigation/Tutori...

edit flag offensive delete link more

Comments

I have a good experience with the tools of RVIZ, my question of how to create the map on the area of the grid not next to the grid?

Redhwan gravatar image Redhwan  ( 2019-10-28 23:22:45 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2019-10-28 19:57:41 -0600

Seen: 1,853 times

Last updated: Oct 29 '19