A ROS 2 Gazebo simulation of a differential drive robot.
- SLAM thanks to slam_toolbox
- Autonmous navigation thanks to nav2
- Autonmous exploration thanks to m_explore
- Multi-robot simulation
- Gazebo Classic 11.10.2
ROS Version | Ubuntu Version | Branch | Multi-Robot Support |
---|---|---|---|
ROS 2 Foxy | 20.04 | main | ☐ No |
ROS 2 Humble | 22.04 | Humble | ☑ Yes |
cd ~/ros2_ws/src
git clone https://github.com/hcdiekmann/pathfinder.git
cd ~/ros2_ws
colcon build
. install/setup.bash
ros2 launch pathfinder single_bot_sim.launch.py world:=~/ros2_ws/src/pathfinder/worlds/test.world
ros2 run teleop_twist_keyboard teleop_twist_keyboard
cd ~/ros2_ws
rviz2 -d src/pathfinder/config/view_lidar_sim.rviz
cd ~/ros2_ws
rviz2 -d src/pathfinder/config/view_nav2_slam.rviz
This has currently only been tested on ROS 2 Humble
ros2 launch pathfinder multi_bot_sim.launch.py
Launching the simulation with multiple robots automatically starts RViz for each robot.
NOTE: Spawning multiple robots with online SLAM and the full navigation stack in each namespace requires a capable dev machine.