ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi chopin1998@gmail.
I created together with a colleague a package for having the launch files and config files regarding the navigation stack, please have a look (https://github.com/fontysrobotics/turtlecrab)
Now, if you want to just navigate I highly recommend you to use the navigation core and not slam_toolbox. But, if you want to continue mapping with slam_toolbox (yeah, it is cool and convenient to be able to map and navigate at the same time), then do the following:
For saving the map: ros2 service call /serialize_map slam_toolbox/srv/SerializePoseGraph "{filename : 'give_any_name'}"
For opening the map to continue mapping: ros2 launch turtlecrab slam_toolbox.launch.py use_map_file:='True' map_file:='<path_to_the_map_location>' map_pose:="[<x, y, z>]"
Now, if you saved your map as a .yaml file, then use the core navigation (slam) instead:
ros2 launch turtlecrab nav_core.launch.py map:='<map_location.yaml>'
2 | No.2 Revision |
Hi chopin1998@gmail.
I created together with a colleague a package for having the launch files and config files regarding the navigation stack, please have a look (https://github.com/fontysrobotics/turtlecrab)
Now, if you want to just navigate I highly recommend you to use the navigation core and not slam_toolbox. But, if you want to continue mapping with slam_toolbox (yeah, it is cool and convenient to be able to map and navigate at the same time), then do the following:
For saving the map: ros2 service call /serialize_map slam_toolbox/srv/SerializePoseGraph "{filename : 'give_any_name'}"
For opening the map to continue mapping: ros2 launch turtlecrab slam_toolbox.launch.py use_map_file:='True' map_file:='<path_to_the_map_location>' map_pose:="[<x, y, z>]"
/odom
is Now, if you saved your map as a .yaml file, then use the core navigation (slam) instead:
ros2 launch turtlecrab nav_core.launch.py map:='<map_location.yaml>'