Ask Your Question
0

how to identity the grid center with saved map center?

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

Redhwan gravatar image

updated 2019-10-28 20:01:50 -0600

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
0

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 imageRedhwan ( 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 imageDelb ( 2019-10-31 03:02:20 -0600 )edit

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

some mistakes before.

Redhwan gravatar imageRedhwan ( 2019-11-05 06:08:07 -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 imageRedhwan ( 2019-10-28 23:22:45 -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: 2019-10-28 19:57:41 -0600

Seen: 47 times

Last updated: Oct 29