Skip to content
Snippets Groups Projects
Commit 81f801d1 authored by Florian Walch's avatar Florian Walch
Browse files

Fix clang-tidy error

parent 13db2b54
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,6 @@ void gripperCommandExecuteCallback(
double default_speed,
actionlib::SimpleActionServer<control_msgs::GripperCommandAction>* action_server,
const control_msgs::GripperCommandGoalConstPtr& goal) {
constexpr double kSamePositionThreshold = 1e-4;
auto gripper_command_handler = [goal, grasp_epsilon, default_speed, &gripper]() {
// HACK: As one gripper finger is <mimic>, MoveIt!'s trajectory execution manager
// only sends us the width of one finger. Multiply by 2 to get the intended width.
......@@ -46,6 +44,7 @@ void gripperCommandExecuteCallback(
<< state.max_width << " command = " << target_width);
return false;
}
constexpr double kSamePositionThreshold = 1e-4;
if (std::abs(target_width - state.width) < kSamePositionThreshold) {
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment