Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to Python package #17

Merged
merged 8 commits into from
Jul 30, 2024
Merged

Convert to Python package #17

merged 8 commits into from
Jul 30, 2024

Conversation

luator
Copy link
Member

@luator luator commented Jul 23, 2024

Description

Convert this package from CMake-based build to pure Python. For this, the xacro files are now build using a custom build command in setup.py

This change will make it possible to publish robot_properties_fingers on PyPI, so that trifinger_simulation can depend on it and thus won't need to mirror the model files anymore.

How I Tested

  • By installing in a venv with pip install ., verifying that all files are installed to the right place
  • Same using colcon and also tested with a trifinger_simulation demo.

@luator luator added the enhancement New feature or request label Jul 23, 2024
@luator luator self-assigned this Jul 23, 2024
luator added 4 commits July 24, 2024 10:19
Convert this package from CMake-based build to pure Python.  For this,
the xacro files are now build using a custom build command in setup.py

This change will make it possible to publish robot_properties_fingers on
PyPI, so that trifinger_simulation can depend on it and thus won't need
to mirror the model files anymore.
Previously mypy was somehow confusing the "xacro" folder with the
"xacro" package...
luator added 3 commits July 30, 2024 09:57
For some reason, this is needed for `colcon test`, see comment.
Add a test workflow that installs the package with pip
and then runs the tests.
This will return the root directory of the URDF files.  Currently it's
the same as "one", but I think it's better to have an explicit name for
it.  It's also more future proof, in case the "one" files are moved at
some point.
@luator luator merged commit a3e97d2 into master Jul 30, 2024
7 checks passed
@luator luator deleted the fkloss/py branch July 30, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant