You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide will provide a walkthrough on how to get a Docker container with MoveIt 2 dependencies set up quickly.
4
-
It includes a script that will get you up and running in MoveIt quickly!
4
+
It includes a docker-compose config file that will get you up and running in MoveIt quickly!
5
5
This guide is intended for people who would like to have a separate environment for working with MoveIt up and running quickly \
6
6
without having to do much configuring. In this guide, we will be setting up a ROS2 Humble environment.
7
7
8
8
Learning Objectives
9
9
-------------------
10
10
11
-
- How to setup a Docker environment using the provided script
11
+
- How to setup a Docker environment using the provided docker compose config
12
12
13
13
Requirements
14
14
------------
15
15
16
16
- Ubuntu 20.04 or 22.04
17
17
- `Docker Installation for Ubuntu <https://docs.docker.com/engine/install/ubuntu/>`_
18
18
- `Nvidia drivers for Docker <https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit>`_
19
+
- `docker compose (if not already installed via Docker Desktop) <https://docs.docker.com/compose/install/>`_
19
20
20
21
Steps
21
22
-----
22
-
1. Install Docker (a link is available in the Requirements section) and be sure to follow the `Linux Post Install <https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user>`_ instructions. If you do not complete these additional steps you will need to preface all ``docker`` commands with ``sudo``.
23
+
1. Install Docker and docker compose (links are available in the Requirements section) and be sure to follow the `Linux Post Install <https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user>`_ instructions. If you do not complete these additional steps you will need to preface all ``docker`` commands with ``sudo``.
23
24
24
-
2. Open a terminal session, download the Docker script, and make it executable.
25
+
2. Open a terminal session, download the config, and make it executable.
3. Launch the container (you may need to hyphenate ``docker-compose`` if using compose V1)
32
32
33
+
<<<<<<< HEAD
33
34
There are 3 parameters for the script:
34
35
- ``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``.
35
36
- ``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.
36
37
- ``using_gpu`` : if ``true``, the Docker will be run using Nvidia GPU drivers. By default, this value is true.
38
+
=======
39
+
.. code-block:: bash
40
+
>>>>>>> 352061d (Replace start-docker.sh with docker-compose.yml (#422))
37
41
38
-
To run the script and use Nvidia GPU drivers
42
+
DOCKER_IMAGE=rolling-source docker compose run gpu
You can replace ``rolling-source`` with other tagged images, e.g. ``humble-source``. Similarly, you can replace ``gpu`` with ``cpu`` if you do not wish to run using Nvidia GPU drivers.
73
+
74
+
4. You should now be inside of your Docker container, in the workspace directory. You should now be able to start working with MoveIt!
75
+
76
+
Whenever you wish to reenter your container, run the same command as in #3.
77
+
>>>>>>> 352061d (Replace start-docker.sh with docker-compose.yml (#422))
66
78
67
79
Further Reading
68
80
---------------
@@ -73,5 +85,10 @@ Further Reading
73
85
- You can find a list of tagged images for the MoveIt 2 Docker container `here <https://hub.docker.com/r/moveit/moveit2/tags>`_.
74
86
The tagged images coincide with ROS2 version releases. The ``release`` version of the container provides an environment in which MoveIt 2 is installed via the binaries.
75
87
The ``source`` version of the Docker image will build MoveIt 2 from source.
88
+
<<<<<<< HEAD
76
89
You can use any of the images in that link by substituting the second parameter in the script, ``name_of_the_image``, with moveit/moveit2:<tag_name>, where ``<tag_name>`` is from the above link.
77
90
For example, this guide instructs you to use the image with the tag ``humble-source``.
91
+
=======
92
+
You can use any of the images in that link by substituting the DOCKER_IMAGE environment variable with ``moveit/moveit2:<tag_name>``, where ``<tag_name>`` is from the above link.
93
+
For example, this guide instructs you to use the image with the tag ``rolling-source``.
94
+
>>>>>>> 352061d (Replace start-docker.sh with docker-compose.yml (#422))
0 commit comments