File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ COPY . /ws/src/ocs2
4949# Assets used by many examples/tests.
5050RUN git clone --depth 1 --branch ros2 --single-branch https://github.com/leggedrobotics/ocs2_robotic_assets.git /ws/src/ocs2_robotic_assets
5151
52+ # Plane segmentation packages used by perceptive examples (convex_plane_decomposition*, grid_map_filters_rsl).
53+ RUN git clone --depth 1 --filter=blob:none --sparse --branch ros2 --single-branch https://github.com/leggedrobotics/elevation_mapping_cupy.git /ws/src/elevation_mapping_cupy && \
54+ cd /ws/src/elevation_mapping_cupy && \
55+ git sparse-checkout set plane_segmentation
56+
5257# Install ROS deps from package.xml, then build.
5358RUN source /opt/ros/jazzy/setup.bash && \
5459 rosdep install --from-paths src --ignore-src -r -y --skip-keys pinocchio && \
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ docker run --rm -it --net=host ocs2:jazzy
1313```
1414
1515Note: the Dockerfile clones ` ocs2_robotic_assets ` from its ` ros2 ` branch.
16+ It also sparse-checkouts the ` plane_segmentation/ ` packages from ` elevation_mapping_cupy ` (branch ` ros2 ` ) for the perceptive examples.
Original file line number Diff line number Diff line change @@ -61,11 +61,18 @@ mkdir -p ~/ocs2_ws/src
6161cd ~ /ocs2_ws/src
6262
6363# Clone OCS2 (ROS 2 Jazzy port)
64- git clone --branch ros2 https://github.com/leggedrobotics/ocs2_ros2 .git
64+ git clone --branch ros2 https://github.com/leggedrobotics/ocs2 .git
6565
6666# Robotic assets (required by several examples/tests)
6767git clone --branch ros2 https://github.com/leggedrobotics/ocs2_robotic_assets.git
6868
69+ # Plane segmentation packages used by perceptive examples (convex_plane_decomposition*, grid_map_filters_rsl).
70+ # These packages live in elevation_mapping_cupy but can be fetched without the rest of the repo using sparse-checkout.
71+ git clone --filter=blob:none --sparse --branch ros2 https://github.com/leggedrobotics/elevation_mapping_cupy.git
72+ cd elevation_mapping_cupy
73+ git sparse-checkout set plane_segmentation
74+ cd ..
75+
6976cd ~ /ocs2_ws
7077source /opt/ros/jazzy/setup.bash
7178
You can’t perform that action at this time.
0 commit comments