File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -711,15 +711,21 @@ bool DynamixelHardware::InitDxlWriteItems()
711
711
for (const hardware_interface::ComponentInfo & gpio : info_.gpios ) {
712
712
if (gpio.command_interfaces .size ()) {
713
713
uint8_t id = static_cast <uint8_t >(stoi (gpio.parameters .at (" ID" )));
714
- for (auto it : gpio.command_interfaces ) {
715
714
HandlerVarType temp_write;
716
715
temp_write.id = id;
717
716
temp_write.name = gpio.name ;
718
717
719
- temp_write.interface_name_vec .push_back (it. name );
718
+ temp_write.interface_name_vec .push_back (" Goal Position " );
720
719
temp_write.value_ptr_vec .push_back (std::make_shared<double >(0.0 ));
721
- hdl_trans_commands_.push_back (temp_write);
720
+
721
+ for (auto it : gpio.command_interfaces ) {
722
+ if (it.name == " Goal Current" ) {
723
+ temp_write.interface_name_vec .push_back (" Goal Current" );
724
+ temp_write.value_ptr_vec .push_back (std::make_shared<double >(0.0 ));
725
+ }
722
726
}
727
+
728
+ hdl_trans_commands_.push_back (temp_write);
723
729
}
724
730
}
725
731
is_set_hdl = true ;
You can’t perform that action at this time.
0 commit comments