Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Vincenzo Di Pentima <[email protected]>
  • Loading branch information
urfeex and VinDp authored Nov 25, 2024
1 parent 6256577 commit 9ec6565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ur_controllers/src/force_mode_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ bool ForceModeController::setForceMode(const ur_msgs::srv::SetForceMode::Request
{
// Reject if controller is not active
if (get_lifecycle_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE) {
RCLCPP_ERROR(get_node()->get_logger(), "Can't accept new action goals. Controller is not running.");
RCLCPP_ERROR(get_node()->get_logger(), "Can't accept new requests. Controller is not running.");
resp->success = false;
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion ur_robot_driver/src/hardware_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ hardware_interface::return_type URPositionHardwareInterface::prepare_command_mod
}) ||
std::any_of(control_modes[0].begin(), control_modes[0].end(), [this](auto& item) {
return (item == hardware_interface::HW_IF_VELOCITY ||
item == hardware_interface::HW_IF_POSITION /*|| item == PASSTHROUGH_GPIO*/);
item == hardware_interface::HW_IF_POSITION || item == PASSTHROUGH_GPIO);
}))) {
RCLCPP_ERROR(get_logger(), "Attempting to start passthrough_trajectory control while there is either position or "
"velocity mode is running.");
Expand Down

0 comments on commit 9ec6565

Please sign in to comment.