unitreerobotics / unitree_legged_sdk

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

catkin_make bug #84

Open RbShine opened 1 year ago

RbShine commented 1 year ago

When i put it in catkin_ws/src and catkin_make, it returns this: /home/liu/catkin_ws/src/unitree_ros_to_real-master/unitree_legged_real/src/exe/twist_sub.cpp:6:10: fatal error: unitree_legged_sdk/unitree_legged_sdk.h: No such file or directory 6 | #include "unitree_legged_sdk/unitree_legged_sdk.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. unitree_ros_to_real-master/unitree_legged_real/CMakeFiles/twist_sub.dir/build.make:62: recipe for target 'unitree_ros_to_real-master/unitree_legged_real/CMakeFiles/twist_sub.dir/src/exe/twist_sub.cpp.o' failed make[2]: *** [unitree_ros_to_real-master/unitree_legged_real/CMakeFiles/twist_sub.dir/src/exe/twist_sub.cpp.o] Error 1 CMakeFiles/Makefile2:3260: recipe for target 'unitree_ros_to_real-master/unitree_legged_real/CMakeFiles/twist_sub.dir/all' failed make[1]: *** [unitree_ros_to_real-master/unitree_legged_real/CMakeFiles/twist_sub.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j8 -l8" failed i checked the REAADME of ros_to_real package, it says that `## Dependencies

Check release v3.3.4 for A1 support.`

so the version of two package is supposed to be right.i don't know why it returns a bug. Please help me.

xyq1223 commented 1 year ago

1.Please pay attention to whether the SDK path is under the src path 2.Also, please note that the SDK name and path in ros_to_real are correct https://github.com/unitreerobotics/unitree_ros_to_real/blob/c54489e721ee88d3b6851a44fc79ae75fc0583bb/unitree_legged_real/CMakeLists.txt#L30