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

Build dynamixel_workbench_toolbox example programs for ROS? #353

Open
pdenes opened this issue Feb 5, 2022 · 0 comments
Open

Build dynamixel_workbench_toolbox example programs for ROS? #353

pdenes opened this issue Feb 5, 2022 · 0 comments

Comments

@pdenes
Copy link

pdenes commented Feb 5, 2022

Hi, I built dynamixel_workbench successfully from the ros2 branch with colcon. I noticed the build instructions for the programs in dynamixel_workbench_toolbox/examples assume you install the SDK first, without ROS, into /usr/local. These test programs seem very useful when using the servos the first time and exploring the whole software stack. Would it be possible to include these in the ROS build too (or provide instructions)?

I couldn't figure out how to do this "properly", but with some local modifications to the existing CMakeLists.txt I could compile them using the instructions (I had the sdk checked out next to this, in the same workspace, and previously built with colcon, together with workbench):

I added this:

include_directories(../../../install/dynamixel_sdk/include/)
link_directories(../../../install/dynamixel_sdk/lib)

...and changed target_link_libraries(dynamixel_workbench LINK_PUBLIC "/usr/local/lib/libdxl_x64_cpp.so") to target_link_libraries(dynamixel_workbench LINK_PUBLIC dynamixel_sdk)

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

1 participant