-
Notifications
You must be signed in to change notification settings - Fork 0
/
pixi.toml
226 lines (175 loc) · 6.03 KB
/
pixi.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# ########### #
# BOILERPLATE #
# ########### #
[project]
name = "obelisk"
authors = [
"Albert Li <[email protected]>",
"Zach Olkin <[email protected]>",
"Gavin Hua <[email protected]>",
]
description = "The AMBER Lab's generic robot control interface."
channels = ["conda-forge"]
platforms = ["linux-64"]
[activation]
scripts = ["obelisk_ws/install/setup.sh"]
env = { RMW_IMPLEMENTATION="rmw_cyclonedds_cpp", PYRIGHT_PYTHON_FORCE_VERSION="latest", RCUTILS_COLORIZED_OUTPUT="1" }
# ############ #
# FEATURE SETS #
# ############ #
# minimal
[dependencies]
python = ">=3.10"
pip = ">=24.0"
setuptools = "<=70.4"
compilers = "*"
[pypi-dependencies]
matplotlib = ">=3.9.0"
numpy = ">=1.26"
obelisk_py = { path="./obelisk/python", editable=true }
# cuda
[feature.cuda121]
system-requirements = {cuda="12.1.1"}
[feature.cuda121.activation]
scripts = ["scripts/add_cuda_cmake_prefix_path.sh"]
[feature.cuda121.dependencies]
cuda = "12.1.1"
# ros2
[feature.ros2base]
channels = ["robostack-staging"]
[feature.ros2base.dependencies]
ros-humble-ros-base = "*"
colcon-common-extensions = "*"
ros-humble-rviz-visual-tools = "*"
ros-humble-foxglove-bridge = "*"
ros-humble-joy = "3.3.0"
# TODO(ahl): this was just a test to see if we could install many
# prune these away to a true minimal set later
# [NOTE] on humble, we should expect python 3.10
# ros-humble-control-msgs = "*"
# ros-humble-xacro = "*"
# ros-humble-angles = "*"
# ros-humble-ros2-control = "*"
# ros-humble-realtime-tools = "*"
# ros-humble-control-toolbox = "*"
# ros-humble-moveit = "*"
# ros-humble-moveit-common = "*"
# ros-humble-moveit-ros-planning = "*"
# ros-humble-moveit-ros-planning-interface = "*"
# ros-humble-moveit-ros-visualization = "*"
# ros-humble-moveit-visual-tools = "*"
# ros-humble-ros2-controllers = "*"
# ros-humble-joint-state-publisher-gui = "*"
# ros-humble-diagnostic-updater = "*"
# ros-humble-geographic-msgs = "*"
# ros-humble-robot-localization = "*"
# ros-humble-rosidl-generator-cpp = "*"
# ros-humble-rosidl-default-generators = "*"
# ros-humble-image-transport = "*"
# ros-humble-ament-lint-auto = "*"
# ros-humble-ament-cmake-copyright = "*"
# ros-humble-ament-cmake-cppcheck = "*"
# ros-humble-ament-cmake-lint-cmake = "*"
# ros-humble-ament-cmake-pep257 = "*"
# ros-humble-ament-cmake-uncrustify = "*"
# ros-humble-ament-cmake-xmllint = "*"
# ros-humble-graph-msgs = "*"
# ros-humble-rqt = "*"
# ros-humble-test-msgs = "*"
# obelisk
[feature.obelisk.pypi-dependencies]
mujoco = ">=3.1.0"
"ruamel.yaml" = ">=0.18.0"
urdf_parser_py = ">=0.0.4"
# docs
[feature.docs.pypi-dependencies]
myst-parser = ">=3.0.1"
sphinx = ">=7.3.7"
sphinx-rtd-theme = ">=2.0.0"
sphinx-tabs = ">=3.0.0"
# test
# TODO(ahl): pytest bounded until issue resolved
# https://github.com/prefix-dev/pixi/issues/1529
[feature.test.dependencies]
pytest = "<=8.0.0"
[feature.test.pypi-dependencies]
pytest-xdist = ">=3.6.1"
typeguard = ">=4.3.0"
# leap hand
[feature.leap.activation]
env = { OBELISK_BUILD_LEAP="true" }
[feature.leap.dependencies]
ros-humble-dynamixel-sdk = ">=3.7"
[feature.leap.pypi-dependencies]
dynamixel-sdk = ">=3.7"
# zed cameras
[feature.zed.activation]
env = { PIXI_ZED="true", OBELISK_BUILD_ZED="true" }
[feature.zed.dependencies]
cython = "*"
opencv = "*"
# dev
[feature.dev.dependencies]
nano = "*"
vim = "*"
[feature.dev.pypi-dependencies]
pre-commit = ">=3.7.1"
ruff = ">=0.4.9"
pyright = "*"
# build
[feature.build.dependencies]
cmake = "3.16.*"
ninja = "1.12.1"
make = ">=4.3,<5"
glfw = "3.4"
mesalib = "*"
# ################ #
# ENVIRONMENT SETS #
# ################ #
[environments]
default = { solve-group="default" }
# obelisk
obelisk = { features=["obelisk"] }
# test
# TODO(ahl): see if we can use the original tests env with github CI, issue is cuda
test = { features=["cuda121", "obelisk", "ros2base", "test"], solve-group="dev" }
# ros2
ros2-install = { features=["ros2base"] }
# dev
dev-no-gpu = { features=["obelisk", "ros2base", "test", "dev", "build", "leap"] }
dev = { features=["cuda121", "obelisk", "ros2base", "test", "dev", "build", "leap"], solve-group="dev" }
dev-zed = { features=["cuda121", "obelisk", "ros2base", "test", "dev", "build", "leap", "zed"], solve-group="dev" }
docs = { features=["docs"] }
build = { features = ["cuda121", "build"] }
# ##### #
# TASKS #
# ##### #
[tasks]
# ros-related tasks
ros-clean = { cmd="rm -r build/ install/ log/", cwd="obelisk_ws" }
# run the core tests
cpp-test-node = { cmd = "obelisk/cpp/build/tests/NodeTest", depends-on = ["cpp-build"] }
cpp-test-node-debug = { cmd = "obelisk/cpp/build/tests/NodeTest", depends-on = ["cpp-build-debug"] }
# run the viz tests
cpp-test-viz = { cmd = "obelisk/cpp/build/tests/VizTest", depends-on = ["cpp-build"] }
# run the util tests
cpp-test-utils = { cmd = "obelisk/cpp/build/tests/UtilsTest", depends-on = ["cpp-build"] }
# run ctest
cpp-ctest = { cmd = "ctest", cwd = "obelisk/cpp/build/tests", depends-on = ["cpp-build"] }
# cmake
cmake = { cmd = [
"cmake",
"-GNinja",
"-Sobelisk/cpp/",
"-Bobelisk/cpp/build"
], inputs = ["obelisk/cpp/CMakeLists.txt", "tests/tests_cpp", "obelisk/cpp/"], outputs = ["obelisk/cpp/build/CMakeFiles/"] }
# build the cpp code
cpp-build = { cmd = ["cmake", "--build", "obelisk/cpp/build"], depends-on = ["cmake"], inputs = ["CMakeLists.txt", "obelisk/cpp/*"], outputs = ["obelisk/cpp/build/"] }
cpp-build-debug = { cmd = ["cmake", "--build", "obelisk/cpp/build", "-DCMAKE_BUILD_TYPE=Debug"], depends-on = ["cmake"], inputs = ["CMakeLists.txt", "obelisk/cpp/*"], outputs = ["obelisk/cpp/build/"] }
# run python and c++ tests
all-tests = { cmd = ["pytest"], depends-on = ["cpp-ctest"] }
# CI
# excluded:
# * zed
messages-build-ci = { cmd="colcon build --symlink-install --packages-select obelisk_control_msgs obelisk_estimator_msgs obelisk_sensor_msgs obelisk_std_msgs --parallel-workers $(nproc)", cwd="obelisk_ws" }
ros-build-ci = { cmd="colcon build --symlink-install --parallel-workers $(nproc) --packages-skip obelisk_control_msgs obelisk_estimator_msgs obelisk_sensor_msgs obelisk_std_msgs obelisk_zed_cpp", cwd="obelisk_ws", depends-on=["messages-build-ci"] }