Skip to content

Commit a325f18

Browse files
committed
Do not require force_mode being inactive when trying to start force mode controller
1 parent ed53ddc commit a325f18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ur_robot_driver/src/hardware_interface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,7 @@ hardware_interface::return_type URPositionHardwareInterface::prepare_command_mod
10331033
return (item == hardware_interface::HW_IF_VELOCITY || item == hardware_interface::HW_IF_POSITION);
10341034
}) ||
10351035
std::any_of(control_modes[0].begin(), control_modes[0].end(), [this](auto& item) {
1036-
return (item == hardware_interface::HW_IF_VELOCITY || item == hardware_interface::HW_IF_POSITION ||
1037-
item == PASSTHROUGH_GPIO);
1036+
return (item == hardware_interface::HW_IF_VELOCITY || item == hardware_interface::HW_IF_POSITION);
10381037
}))) {
10391038
RCLCPP_ERROR(get_logger(), "Attempting to start passthrough_trajectory control while there is either position or "
10401039
"velocity mode is running.");

0 commit comments

Comments
 (0)