MATLAB Answers

Merge two or more occupancy maps

8 views (last 30 days)
Akshay Hiregoudar
Akshay Hiregoudar on 4 Jul 2020
Answered: Remo Pillat on 10 May 2021
Hi,
I am trying to build an occupancy map of an environment using MATLAB's Navigation and ROS toolbox along with Gazebo. I have three TurtleBot3 ground robots in three different rooms of the Gazebo environment and I am navigationg them to get the lidar scan data. Now, I would like to build a single map of the environment.
What would be an ideal way to merge all the three occupancy maps into a single map/figure?
  1 Comment
Bram Surewaard
Bram Surewaard on 30 Apr 2021
Hey,
For a project I would like to achieve the same as you mentioned.
Did you manage to figure out how to do this?
Thanks!

Sign in to comment.

Answers (1)

Remo Pillat
Remo Pillat on 10 May 2021
Hi Akshay & Bram,
If you know the exact poses of the 3 different TurtleBots, you can call the insertRay function on a single occupancyMap (call function for each lidar reading and input pose of respective robot).
A simple example of this "mapping with known poses" problem is shown in this example (this is for a single lidar).
How are you currently building the map? I might be able to give additional suggestions based on the functionality you are currently using.
Thanks, Remo

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!