Skip to content

Conversation

@carlosdp
Copy link

This PR introduces a few changes that make the library easier to install and more compatible with different developer machines (without performance trade-off).

  • Use fastcrc python library for native, fast CRC implementation support on more platforms (including Mac/darwin), so falling back to pure python implementation is no longer necessary. Also makes the CRC implementation more transparent/auditable, since the source code for the crc library used currently is not available.
  • Make the python modules proper python modules, with __init__.py in their roots, so they are compatible with all python dependency tooling.
  • Use a prebuild of cyclonedds @ 0.10.5 I have made and published in https://github.com/carlosdp/cyclonedds-python , so developers never have to build cyclone on their own! That part of the README can be removed after this change.

The net effect of this PR is that this SDK can be installed with just pip install git+https://github.com/unitreerobotics/unitree_sdk2_python 🎉🥳

@Kaweees
Copy link

Kaweees commented Sep 21, 2025

This is awesome, what changes need to be made to make your changes compatible with uv? I really want to be able to integrate the python Unitree sdk with uv

@carlosdp
Copy link
Author

This is awesome, what changes need to be made to make your changes compatible with uv? I really want to be able to integrate the python Unitree sdk with uv

No changes! We use uv also. If you want to use it now, you can do uv add git+https://github.com/carlosdp/unitree_sdk2_python@proper-python-modules and it should just work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants