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

@TW050203 @Huitongtong #597

Open
EvgenRyabch123 opened this issue May 27, 2023 · 1 comment
Open

@TW050203 @Huitongtong #597

EvgenRyabch123 opened this issue May 27, 2023 · 1 comment

Comments

@EvgenRyabch123
Copy link

          @TW050203 @Huitongtong 

The read_write_node.cpp example in the DYNAMIXEL SDK requires 2 DYNAMIXEL with ID 1 and 2.
If you are running with only one DYNAMIXEL (with ID = 1), please modify the source code to run with a single DYNAMIXEL.
For example, comment out the ID 2 torque enable code in line 131 as below

  dxl_comm_result = packetHandler->write1ByteTxRx(
    portHandler, DXL1_ID, ADDR_TORQUE_ENABLE, 1, &dxl_error);
  if (dxl_comm_result != COMM_SUCCESS) {
    ROS_ERROR("Failed to enable torque for Dynamixel ID %d", DXL1_ID);
    return -1;
  }

  // dxl_comm_result = packetHandler->write1ByteTxRx(
  //   portHandler, DXL2_ID, ADDR_TORQUE_ENABLE, 1, &dxl_error);
  // if (dxl_comm_result != COMM_SUCCESS) {
  //   ROS_ERROR("Failed to enable torque for Dynamixel ID %d", DXL2_ID);
  //   return -1;
  // }

If you are running with AX series, you should modify the source code as the example is written for X series that have a different control table, data structure, and Protocol version from AX series.

Thanks.

Originally posted by @ROBOTIS-Will in #558 (comment)

@EvgenRyabch123
Copy link
Author

EvgenRyabch123 commented May 27, 2023

Hello! I have the same problem, I use Dynamixel for work : AX-12A.
Tell me what exactly needs to be changed. I don't understand. and where to find this information

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