Skip to content

Commit 6e7fbbe

Browse files
authored
Update Isaac tutorial to use main-humble-tutorial-source docker image (#794)
1 parent d4082eb commit 6e7fbbe

File tree

3 files changed

+7
-37
lines changed

3 files changed

+7
-37
lines changed

doc/how_to_guides/isaac_panda/.docker/Dockerfile

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
FROM osrf/ros:humble-desktop-jammy
1+
FROM moveit/moveit2:main-humble-tutorial-source
22

33
SHELL ["/bin/bash", "-c", "-o", "pipefail"]
44

55
ARG CUDA_MAJOR_VERSION=11
66
ARG CUDA_MINOR_VERSION=7
77

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
149
# hadolint ignore=DL3008, DL3013
1510
RUN apt-get update && apt-get upgrade -y && rosdep update
1611

1712
# Install packages required to run the demo
1813
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 \
2115
wget \
2216
python3-pip
2317

@@ -33,18 +27,6 @@ ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:$LD_LIBRARY_PA
3327
# Install pytorch
3428
RUN pip3 install torch torchvision
3529

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-
4830
# Use Fast DDS as middleware and load the required config for NVIDIA Isaac Sim.
4931
ENV RMW_IMPLEMENTATION=rmw_fastrtps_cpp
5032
RUN mkdir -p /opt/.ros
@@ -55,9 +37,6 @@ ENV NVIDIA_VISIBLE_DEVICES all
5537
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
5638
ENV NVIDIA_REQUIRE_CUDA "cuda>=${CUDA_MAJOR_VERSION}.${CUDA_MINOR_VERSION}"
5739

58-
# Build the Colcon workspace for the user
59-
RUN source /opt/ros/humble/setup.bash && colcon build
60-
6140
# Set up the entrypoint for both container start and interactive terminals.
6241
COPY ./doc/how_to_guides/isaac_panda/.docker/ros_entrypoint.sh /opt/.ros/
6342
RUN echo "source /opt/.ros/ros_entrypoint.sh" >> ~/.bashrc
Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
#!/bin/bash
22

3-
# Source ROS 2 Humble
3+
# Source ROS and the MoveIt2 workspace
44
source /opt/ros/humble/setup.bash
5-
echo "Sourced ROS 2 Humble"
6-
7-
# Source the base workspace, if built
8-
if [ -f /root/isaac_moveit_tutorial_ws/install/setup.bash ]
9-
then
10-
source /root/isaac_moveit_tutorial_ws/install/setup.bash
11-
echo "Sourced isaac_moveit_tutorial workspace"
12-
else
13-
echo "Please build the isaac_moveit_tutorial workspace with:"
14-
echo "colcon build"
15-
fi
5+
source /root/ws_moveit/install/setup.bash
6+
echo "Sourced ROS & MoveIt Humble"
167

178
# Execute the command passed into this entrypoint
189
exec "$@"

doc/how_to_guides/isaac_panda/isaac_panda_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Computer Setup
7474

7575
.. code-block:: bash
7676
77-
git clone https://github.com/ros-planning/moveit2_tutorials.git -b main --depth 1
77+
git clone https://github.com/ros-planning/moveit2_tutorials.git -b main
7878
7979
3. Go to the folder in which you cloned the tutorials and then switch to the following directory.
8080

0 commit comments

Comments
 (0)