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

Explore usage with Gait / Locomotion projects (pybind? or a UDP proxy?) #4

Open
MAVProxyUser opened this issue Jun 11, 2023 · 1 comment

Comments

@MAVProxyUser
Copy link
Collaborator

We need to see what enables these projects to function:
https://github.com/Improbable-AI/walk-these-ways

Many things rely on ros2_udp.cpp
https://github.com/unitreerobotics/unitree_ros2_to_real/blob/main/src/ros2_udp.cpp
and ros_udp.cpp
https://github.com/unitreerobotics/unitree_ros_to_real/blob/master/unitree_legged_real/src/exe/ros_udp.cpp

twist_sub.cpp is another example that many things build off of.
https://github.com/unitreerobotics/unitree_ros_to_real/blob/master/unitree_legged_real/src/exe/twist_sub.cpp

Katie Hughes examples for example are an extension of the above examples:
https://github.com/katie-hughes/unitree_ros2/blob/main/unitree_legged_real/src/udp_low.cpp

her joint state publisher being another example
https://github.com/katie-hughes/unitree_ros2/blob/main/unitree_legged_real/src/jsp_low.cpp

Is there possibly a way to make a bridge so we don't have to rewrite every bit of code? I've not had a chance to think further on this. Can we make a wrapper with the function interfaces, and use a Python-C API of some sort? CPython? pybind11 maybe?

@Bin4ry
Copy link
Owner

Bin4ry commented Jun 13, 2023

i think it can be done with fairly low effort. I tried to stick as close as possible to the original sdk, so the whole ros projects shall be very easy to adapt

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

No branches or pull requests

2 participants