Robotics StackExchange | Archived questions

wrong map produced during multi-robot map merging

I am trying to map a Gazebo world (see image below) using two husky bots using the multirobotmappackage.

I have spawned two husky bots (namespaced husky_1 and husky_2) in the Gazebo world.

I using two ekf_localization nodes (husky_1/ekf_localization and husky_2/ekf_localization) to publish the husky_1/odom -> husky_1/base_link and husky_2/odom -> husky_2/base_link transforms.

I am using two move_base nodes (/husky_1/move_base and /husky_2/move_base). I have set static_map to false.

I am also using two slam_gmapping nodes (husky_1/slam_gmapping and husky_2/slam_gmapping) to achieve two things -

Here's the thing though -

image

image

Even though the maps published at /husky_1/map and /husky_2/map (by husky_1/slam_gmapping and husky_2/slam_gmapping respectively) appear to be correct, the map published at /map_merge/map seems to be wrong. (See images for /husky_1/map , /husky_2/map and /map_merge/map below).

image_1

image_2

image_3

Why is this happening?

EDIT ONE -

On setting the known_init_poses paramtere to false for multirobot_map_package, I am able to produce the correct mergedmap. However, the positions of the bots in the mergedmap seem to be wrong. I am attaching the images in the Fixed frame /map of /husky_1/map, /husky_2/map and /map_merge/map respectively.

image_1 image_2 image_3

Asked by skpro19 on 2021-02-16 13:50:23 UTC

Comments

Answers