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

Change name of port to "port_name" #86

Open
Betacrucis opened this issue May 1, 2024 · 0 comments
Open

Change name of port to "port_name" #86

Betacrucis opened this issue May 1, 2024 · 0 comments

Comments

@Betacrucis
Copy link

Hi,
Thanks for the great software!

I have been stuck with not being able to connect the USB port to the Dynamixel actuators.
I am using ROS2 Humble on a Ubuntu system with a USB2Dynamixel interface.

It kept crashing at line 84 of /dynamixel_hardware/src/dynamixel_hardware.cpp

auto usb_port = info_.hardware_parameters.at("usb_port");

The issue was resolved when the name of the port is changed to "port_name".

The name of the variable for the port is set in the DynamixelSDK
DynamixelSDK/dynamixel_sdk/src/dynamixel_sdk/port_handler.cpp

PortHandler *PortHandler::getPortHandler(const char *port_name)

Line 84 in dynamixel_hardware.cpp needs to be changed to:

auto usb_port = info_.hardware_parameters.at("port_name");

You will also need to change the param name for the port in the examples to "port_name".

open_manipulator_x_description/urdf/open_manipulator_x.ros2_control.xacro

dynamixel_hardware/DynamixelHardware /dev/ttyUSB0 1000000

After this minor change the software works without a problem.
I hope this helps.

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