Skip to content

Commit

Permalink
Fix if statement for claimed interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
urfeex committed Nov 7, 2024
1 parent 6b4ca4d commit d706fa0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ur_controllers/src/passthrough_trajectory_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,11 @@ controller_interface::CallbackReturn PassthroughTrajectoryController::on_activat
if (interface_it != state_interfaces_.end()) {
if (interface_it->get_interface_name() == "position") {
joint_position_state_interface_.emplace_back(*interface_it);

} else if (interface_it->get_interface_name() == "velocity") {
joint_velocity_state_interface_.emplace_back(*interface_it);
} else if (interface_it->get_interface_name() == "acceleration") {
joint_acceleration_state_interface_.emplace_back(*interface_it);
}
} else if (interface_it->get_interface_name() == "acceleration") {
joint_acceleration_state_interface_.emplace_back(*interface_it);
}
}

Expand Down

0 comments on commit d706fa0

Please sign in to comment.