Skip to content

Commit d7f8428

Browse files
committed
feat: Update joint synchronization process by adding prior goal position write for OMY sync table
1 parent e4e8544 commit d7f8428

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/dynamixel_hardware_interface.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,11 @@ hardware_interface::CallbackReturn DynamixelHardware::start()
497497

498498
CalcTransmissionToJoint();
499499

500-
// sync commands = states joint
501500
SyncJointCommandWithStates();
502-
std::this_thread::sleep_for(std::chrono::milliseconds(500));
501+
502+
CalcJointToTransmission();
503+
504+
dxl_comm_->WriteMultiDxlData();
503505

504506
// Enable torque only for Dynamixels that have torque enabled in their parameters
505507
std::vector<uint8_t> torque_enabled_ids;

0 commit comments

Comments
 (0)