Package for auto exploring frontiers and generating a map with ROS 2 Humble / Iron
- ROS 2 Humble / Iron on your Ubuntu 22.04
- slam_toolbox
- nav2
- rviz2
- Clone the repo
git clone https://github.com/Omar-Salem/auto_mapper- Build the ROS 2 workspace
cd {workspace_dir}colcon build --packages-select auto_mapper- Source the ROS Workspace
. install/setup.bash- Launch the mapper
ros2 launch auto_mapper auto_mapper.launch.py map_path:=~/map- Launch turtlebot3
export TURTLEBOT3_MODEL=burger
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py- If you receive
Failed to write file: Exception output stream error, change the map file path to a dir where write access is granted. - To use with a custom robot, or if the Twist messages aren't published to
/cmd_vel, uncommentSetRemap(src='/cmd_vel', dst='{/your/custom_cmd_vel}}')inauto_mapper.launch.py
Omar Salem - LinkedIn