Start the simulation of the Ceres robot in AVZ world
ros2 launch ceres_gazebo ceres_gazebo_launch.py
In a new terminal run:
ros2 launch ceres_localization slam_toolbox_launch.py
Open RViz and display the topic /map
. Steer the robot via teleop and record a map.
ros2 launch uos_diffdrive_teleop key.launch
Save the map via
ros2 service call /map_saver_server/save_map nav2_msgs/srv/SaveMap "{map_topic: map, map_url: my_map, image_format: pgm, map_mode: trinary, free_thresh: 0.25, occupied_thresh: 0.65}"
I created an alias for that in my .bashrc
.
First start RViz. Then run
ros2 launch ceres_gazebo amcl_avz_launch.py
I the map is not visible in RViz you need to restart the amcl launch file