Repository navigation
Convert maps from multiagent_mapping into the new format
Florian Tschopp edited this page Jun 28, 2019
·
1 revision
Install multiagent_mapping into a separate catkin workspace. In the end, your folder structure should look something like this:
catkin_ws
├── ...
└── src
├── aslam_install
├── ...
├── maplab
└── ...
catkin_ws_muma
├── ...
└── src
├── aslam_install
├── ...
├── multiagent_mapping
└── ...
For the following steps, make sure that your catkin workspace with multiagent_mapping is sourced!
Build the conversion console:
cd catkin_ws_muma
catkin build conversion_console
# And make sure that the correct workspace is sourced!
source ~/catkin_ws_muma/devel/setup.bashNow, you can run the conversion by using the provided script or by using the console.
Launch the script:
rosrun conversion_console convert-single-map.sh <path_to_source_map> <path_to_save_converted_map>If a map under the given path already exists, you can force the converter to overwrite it:
rosrun conversion_console convert-single-map.sh <path_to_source_map> <path_to_save_converted_map> -vi_map_overwriteLaunch the conversion console:
rosrun conversion_console conversion_consoleLoad the map into the console:
load -vi_map_default_folder=<path_to_source_map>
Now, you have access to the basic maplab commands, like v to visualize the map.
To export your map into the new format, run:
export -vi_map_default_folder=<path_to_save_converted_map>If a map under the given path already exists, you can force the converter to overwrite it:
export -vi_map_default_folder=<path_to_save_converted_map> -vi_map_overwriteClose the console by typing q.