This is a ROS 2 simulation stack for the iRobot® Create® 3 robot. Both Ignition Gazebo and Classic Gazebo are supported.
Have a look at the Create® 3 documentation for more details on the ROS 2 interfaces exposed by the robot.
Required dependencies:
- ROS 2 humble
- ROS 2 dev tools:
- colcon-common-extensions
- rosdep: Used to install dependencies when building from sources
- vcs: Automates cloning of git repositories declared on a YAML file.
Besides the aforementioned dependencies you will also need at least one among Ignition Gazebo and Classic Gazebo
Install Gazebo 11
sudo apt-get update && sudo apt-get install wget
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update && sudo apt-get install ignition-fortress- Create a workspace if you don't already have one:
mkdir -p ~/create3_ws/src-
Clone this repository into the src directory from above.
-
Navigate to the workspace and install ROS 2 dependencies with:
cd ~/create3_ws
sudo apt-get update
rosdep install --from-path src -yi- Build the workspace with:
export IGNITION_VERSION=fortress
colcon build --symlink-install
source install/local_setup.bashCreate® 3 can be spawned in an empty world in Gazebo and monitored through RViz with:
ros2 launch irobot_create_gazebo_bringup create3_gazebo.launch.pyThe spawn point can be changed with the x, y, z and yaw launch arguments:
ros2 launch irobot_create_gazebo_bringup create3_gazebo.launch.py x:=1.0 y:=0.5 yaw:=1.5707A namespace can be applied to the robot using the namespace launch argument:
ros2 launch irobot_create_gazebo_bringup create3_gazebo.launch.py namespace:=my_robotMultiple robots can be spawned with unique namespaces:
ros2 launch irobot_create_gazebo_bringup create3_gazebo.launch.py namespace:=robot1
ros2 launch irobot_create_gazebo_bringup create3_spawn.launch.py namespace:=robot2 x:=1.0
⚠️ create3_gazebo.launch.pyshould only be used once as it launches the Gazebo simulator itself. Additional robots should be spawned withcreate3_spawn.launch.py. Namespaces and spawn points should be unique for each robot.
Create® 3 can be spawned in the AWS small house in Gazebo and monitored through RViz.
This requires that the package aws_robomaker_small_house_world is available.
If you need it, you can build aws_robomaker_small_house_world in your ROS 2 workspace by doing:
vcs import ~/create3_ws/src/ < ~/create3_ws/src/create3_sim/irobot_create_gazebo/demo.repos
cd ~/create3_ws
colcon build --symlink-install
source install/local_setup.bashThen you can run:
ros2 launch irobot_create_gazebo_bringup create3_gazebo_aws_small.launch.pyCreate® 3 can be spawned in a demo world in Ignition and monitored through RViz with
ros2 launch irobot_create_ignition_bringup create3_ignition.launch.pyThe spawn point can be changed with the x, y, z and yaw launch arguments:
ros2 launch irobot_create_ignition_bringup create3_ignition.launch.py x:=1.0 y:=0.5 yaw:=1.5707A namespace can be applied to the robot using the namespace launch argument:
ros2 launch irobot_create_ignition_bringup create3_ignition.launch.py namespace:=my_robotMultiple robots can be spawned with unique namespaces:
ros2 launch irobot_create_ignition_bringup create3_ignition.launch.py namespace:=robot1
ros2 launch irobot_create_ignition_bringup create3_spawn.launch.py namespace:=robot2 x:=1.0
⚠️ create3_ignition.launch.pyshould only be used once as it launches the Ignition simulator itself. Additional robots should be spawned withcreate3_spawn.launch.py. Namespaces and spawn points should be unique for each robot.
This repository contains packages for both the Classic and Ignition Gazebo simulators:
-
irobot_create_commonPackages common to both Classic and Ignitionirobot_create_common_bringupLaunch files and configurationsirobot_create_controlLaunch control nodesirobot_create_descriptionURDF and mesh files describing the robotirobot_create_nodesNodes for simulating robot topics and motion controlirobot_create_toolboxTools and helpers for creating nodes and plugins
-
irobot_create_gazeboPackages used for the Classic Gazebo Simulatorirobot_create_gazebo_bringupLaunch files and configurationsirobot_create_gazebo_pluginsSensor pluginsirobot_create_gazebo_simMetapackage
-
irobot_create_ignitionPackages used for the Ignition Gazebo Simulatorirobot_create_ignition_bringupLaunch files and configurationsirobot_create_ignition_pluginsGUI pluginsirobot_create_ignition_simMetapackageirobot_create_ignition_toolboxSensor and interface nodes