Skip to content

Commit 196cd79

Browse files
committed
fix: lint error handling
1 parent 7da0f98 commit 196cd79

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/dynamixel_hardware_interface.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -869,10 +869,11 @@ void DynamixelHardware::CalcJointToTransmission()
869869
}
870870

871871
for (size_t i = 0; i < num_of_transmissions_; i++) {
872-
if(hdl_trans_commands_.at(i).interface_name_vec.size() > GOAL_CURRENT_INDEX &&
873-
hdl_trans_commands_.at(i).interface_name_vec.at(GOAL_CURRENT_INDEX) == "Goal Current") {
874-
for(size_t j = 0; j < hdl_joint_commands_.size(); j++) {
875-
if(hdl_joint_commands_.at(j).interface_name_vec.size() > GOAL_CURRENT_INDEX &&
872+
if (hdl_trans_commands_.at(i).interface_name_vec.size() > GOAL_CURRENT_INDEX &&
873+
hdl_trans_commands_.at(i).interface_name_vec.at(GOAL_CURRENT_INDEX) == "Goal Current")
874+
{
875+
for (size_t j = 0; j < hdl_joint_commands_.size(); j++) {
876+
if (hdl_joint_commands_.at(j).interface_name_vec.size() > GOAL_CURRENT_INDEX &&
876877
hdl_joint_commands_.at(j).interface_name_vec.at(GOAL_CURRENT_INDEX) ==
877878
hardware_interface::HW_IF_EFFORT)
878879
{

0 commit comments

Comments
 (0)