brew install wget
wget https://raw.githubusercontent.com/abake48/moveit2_tutorials/how-to-docker-ubuntu/_scripts/start-docker.sh -O ~/.local/bin/start-docker.sh
chmod +x ~/.local/bin/start-docker.sh
name_of_the_container
: this is the name you wish to give the created container. For this guide, we will be naming the container moveit2-humble
.
name_of_the_image
: if you are creating a fresh Docker container, provide the name of the Docker image here. For this guide, we will be using the image moveit/moveit2:humble-source
. Further explanation of this parameter is provided in the Further Reading section.
using_gpu
: if true
, the Docker will be run using Nvidia GPU drivers. By default, this value is true
.
For example
start-docker.sh moveit2-humble moveit/moveit2:humble-source [true/false]
start-docker.sh moveit2-humble
source: [How to Set Up MoveIt 2 Docker Containers in Ubuntu](https://moveit.picknik.ai/humble/doc/how_to_guides/how_to_setup_docker_containep
Move into your Colcon workspace and pull the MoveIt tutorials source:
cd ~/ws_moveit2/src
git clone https://github.com/ros-planning/moveit2_tutorials -b main
Next we will download the source code for the rest of MoveIt:
vcs import < moveit2_tutorials/moveit2_tutorials.repos
The following will install from Debian any package dependencies not already in your workspace. This is the step that will install MoveIt and all of its dependencies:
sudo apt update && rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
And setup ros humble enviroment
source /opt/ros/<distro>/setup.bash
Increase docker resource size
The next command will configure your Colcon workspace:
cd ~/ws_moveit2
MAKEFLAGS="-j1 -l1" colcon build --parallel-workers 1
# MAKEFLAGS="-j1 -l1" : use raise cmake error even parallel-workers
# --parallel-workers 1 : use RAM size under 32gb