1
- FROM osrf/ros: humble-desktop-jammy
1
+ FROM moveit/moveit2:main- humble-tutorial-source
2
2
3
3
SHELL ["/bin/bash" , "-c" , "-o" , "pipefail" ]
4
4
5
5
ARG CUDA_MAJOR_VERSION=11
6
6
ARG CUDA_MINOR_VERSION=7
7
7
8
- RUN echo "deb [trusted=yes] https://raw.githubusercontent.com/moveit/moveit2_packages/jammy-humble/ ./" \
9
- | sudo tee /etc/apt/sources.list.d/moveit_moveit2_packages.list
10
- RUN echo "yaml https://raw.githubusercontent.com/moveit/moveit2_packages/jammy-humble/local.yaml humble" \
11
- | sudo tee /etc/ros/rosdep/sources.list.d/1-moveit_moveit2_packages.list
12
-
13
- # Bring the container up to date to get the latest ROS2 humble sync on 01/27/23
8
+ # Bring the container up to date to get the latest ROS sync
14
9
# hadolint ignore=DL3008, DL3013
15
10
RUN apt-get update && apt-get upgrade -y && rosdep update
16
11
17
12
# Install packages required to run the demo
18
13
RUN apt-get update && apt-get install -y --no-install-recommends \
19
- ros-humble-moveit \
20
- ros-humble-moveit-resources \
14
+ ros-humble-topic-based-ros2-control \
21
15
wget \
22
16
python3-pip
23
17
@@ -33,18 +27,6 @@ ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:$LD_LIBRARY_PA
33
27
# Install pytorch
34
28
RUN pip3 install torch torchvision
35
29
36
- # Create Colcon workspace and clone the needed source code to run the demo
37
- RUN mkdir -p /root/isaac_moveit_tutorial_ws/src
38
- WORKDIR /root/isaac_moveit_tutorial_ws/src
39
- RUN git clone https://github.com/PickNikRobotics/topic_based_ros2_control.git
40
- COPY ./ moveit2_tutorials
41
- WORKDIR /root/isaac_moveit_tutorial_ws
42
- # hadolint ignore=SC1091
43
- RUN source /opt/ros/humble/setup.bash \
44
- && apt-get update -y \
45
- && rosdep install --from-paths src --ignore-src --rosdistro "$ROS_DISTRO" -y \
46
- && rm -rf /var/lib/apt/lists/*
47
-
48
30
# Use Fast DDS as middleware and load the required config for NVIDIA Isaac Sim.
49
31
ENV RMW_IMPLEMENTATION=rmw_fastrtps_cpp
50
32
RUN mkdir -p /opt/.ros
@@ -55,9 +37,6 @@ ENV NVIDIA_VISIBLE_DEVICES all
55
37
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
56
38
ENV NVIDIA_REQUIRE_CUDA "cuda>=${CUDA_MAJOR_VERSION}.${CUDA_MINOR_VERSION}"
57
39
58
- # Build the Colcon workspace for the user
59
- RUN source /opt/ros/humble/setup.bash && colcon build
60
-
61
40
# Set up the entrypoint for both container start and interactive terminals.
62
41
COPY ./doc/how_to_guides/isaac_panda/.docker/ros_entrypoint.sh /opt/.ros/
63
42
RUN echo "source /opt/.ros/ros_entrypoint.sh" >> ~/.bashrc
0 commit comments