unitreerobotics / unitree_legged_sdk

SDK tools for control robots.
BSD 3-Clause "New" or "Revised" License
283 stars 156 forks source link

Please make unitree_leggded_sdk a catkin package. #68

Open Masa0u0 opened 1 year ago

Masa0u0 commented 1 year ago

It would be much more useful if we can build this package with catkin build.

JonasFovea commented 1 year ago

I don't think, they'll add that soon.

So I would suggest to do that by yourself. Just copy the header files and the library file into your package and configure the linking from there on.

To give you the necessary steps:

link_directories(...)
set(LIB_UNITREE -pthread libunitree_legged_sdk.so)
set(CMAKE_CXX_FLAGS "-O3 -fPIC")

add_executable(...)
target_link_libraries(... ${LIB_UNITREE} ${catkin_LIBRARIES)

You'll have to add your paths and files according to your needs...