-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pixi.toml to simplify running the generation locally
1 parent
a42368e
commit 4e8ed94
Showing
5 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
build/ | ||
.build/ | ||
# pixi environments | ||
.pixi | ||
|
||
deploy_commit_message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[project] | ||
name = "icub-models-generator" | ||
# pixi forces the use of a version, but then the version is not used anywhere, | ||
# so we actually just set it to 0.0.0 and never update it | ||
version = "0.0.0" | ||
description = "Resources and programs to generate models (URDF, SDF) of the iCub robot." | ||
authors = ["Silvio Traversaro <[email protected]>"] | ||
channels = ["conda-forge"] | ||
platforms = ["linux-64", "linux-aarch64", "win-64", "osx-arm64", "osx-64"] | ||
|
||
[tasks] | ||
# As of pixi 0.13.0, pixi does not support git pip packages, so we install it from source | ||
# Specific commit of urdfdom_py is a workaround for https://github.com/robotology/simmechanics-to-urdf/issues/36 | ||
header_commit = { cmd = "echo Automatic build of models via icub-models-generator. > ./deploy_commit_message" } | ||
header_repos = { cmd = "echo ### Dependencies information of dependencies installed manually: >> ./deploy_commit_message", depends_on = ["header_commit"] } | ||
install_urdfdom_py = { cmd = "export URDF_PARSER_PY_COMMIT=31474b9baaf7c3845b40e5a9aa87d5900a2282c3 && pip install git+https://github.com/ros/urdf_parser_py.git@$URDF_PARSER_PY_COMMIT --no-deps && echo urdf_parser_py commit: ros/urdf_parser_py@$URDF_PARSER_PY_COMMIT >> ./deploy_commit_message", depends_on = ["header_repos"]} | ||
install_simmechanics_to_urdf = { cmd = "export SIMMECHANICS_TO_URDF_COMMIT=22caa23cfe7063299c5746304850b8afd74f4e1f && pip install git+https://github.com/robotology/simmechanics-to-urdf@$SIMMECHANICS_TO_URDF_COMMIT --no-deps && echo icub-model-generator commit: robotology/icub-models-generator@$SIMMECHANICS_TO_URDF_COMMIT >> ./deploy_commit_message", depends_on = ["install_urdfdom_py"] } | ||
header_pixi_list = { cmd = "echo ### Dependencies information via pixi list: >> ./deploy_commit_message", depends_on = ["install_simmechanics_to_urdf"]} | ||
pixi_list = { cmd = "pixi list >> ./deploy_commit_message", depends_on = ["header_pixi_list"]} | ||
configure_cmake_project = { cmd = "cmake -GNinja -S. -B.build -DICUB_MODELS_SOURCE_DIR=$ICUB_MODELS_SOURCE_DIR -DBUILD_TESTING:BOOL=ON", depends_on = ["pixi_list"]} | ||
generate_models = { cmd = "cmake --build .build --target generate-models", depends_on = ["configure_cmake_project"]} | ||
copy_models_to_icub_models = { cmd = "cmake --build .build --target copy-models-to-icub-models", depends_on = ["configure_cmake_project"]} | ||
build_tests = { cmd = "cmake --build .build", depends_on = ["configure_cmake_project"] } | ||
test_generated_models = { cmd = "ctest --test-dir .build", depends_on = ["generate_models", "build_tests"]} | ||
|
||
[dependencies] | ||
idyntree = ">=10.3.0,<10.4" | ||
yarp = ">=3.9.0,<3.10" | ||
lxml = "==4.9.4" | ||
# Not using latest pyyaml as workaround for https://github.com/robotology/simmechanics-to-urdf/issues/57 | ||
pyyaml = ">=5.0.0,<6.0.0" | ||
numpy = ">=1.26.4,<1.27" | ||
catkin_pkg = ">=1.0.0,<1.1" | ||
pip = ">=24.0,<25" | ||
python = ">=3.11.1,<3.12" | ||
ninja = ">=1.11.1,<1.12" | ||
cxx-compiler = ">=1.7.0,<1.8" | ||
c-compiler = ">=1.7.0,<1.8" | ||
# ruby is used by the convertSTL.rb script | ||
ruby = ">=3.2.2,<3.3" |