Skip to content

Commit 8e4e5b2

Browse files
committed
Add mocap
1 parent 6750c0e commit 8e4e5b2

4 files changed

Lines changed: 21 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66

77
/build
88
/dist
9+
/ros_ws
910

1011
.pixi

pixi.lock

Lines changed: 2 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,6 @@ rosdep = "*"
164164
colcon-common-extensions = "*"
165165
# Kilted specific tools
166166
ros-kilted-desktop = "*"
167+
168+
[tool.pixi.feature.kilted.activation]
169+
scripts = ["setup_mocap.sh"]

setup_mocap.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
#!/usr/bin/env bash
3+
mkdir -p ros_ws/src
4+
5+
if [ ! -d ros_ws/src/motion_capture_tracking/.git ]; then
6+
echo "[Pixi activation] Cloning motion_capture_tracking..."
7+
git clone --recurse-submodules https://github.com/utiasDSL/motion_capture_tracking ros_ws/src/motion_capture_tracking
8+
fi
9+
10+
if [ ! -f ros_ws/install/setup.sh ]; then
11+
echo "[Pixi activation] Running colcon build..."
12+
(cd ros_ws && colcon build --cmake-args -DCMAKE_POLICY_VERSION_MINIMUM=3.5)
13+
fi
14+
15+
. ./ros_ws/install/setup.sh

0 commit comments

Comments
 (0)