Skip to content

Commit b33c584

Browse files
committed
docs: use external plane_segmentation dependency
1 parent 158dfbf commit b33c584

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

docker/Dockerfile.jazzy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ COPY . /ws/src/ocs2
4949
# Assets used by many examples/tests.
5050
RUN 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.
5358
RUN source /opt/ros/jazzy/setup.bash && \
5459
rosdep install --from-paths src --ignore-src -r -y --skip-keys pinocchio && \

docker/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ docker run --rm -it --net=host ocs2:jazzy
1313
```
1414

1515
Note: 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.

installation.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,18 @@ mkdir -p ~/ocs2_ws/src
6161
cd ~/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)
6767
git 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+
6976
cd ~/ocs2_ws
7077
source /opt/ros/jazzy/setup.bash
7178

0 commit comments

Comments
 (0)