Skip to content

Commit c929ab3

Browse files
author
Michael Wiznitzer
committed
hold position if tolerance is violated even during non-active goal
1 parent d5507c3 commit c929ab3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

joint_trajectory_controller/src/joint_trajectory_controller.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,11 @@ controller_interface::return_type JointTrajectoryController::update(
342342
// to be satisfied or violated within the goal_time_tolerance
343343
}
344344
}
345+
else if (abort)
346+
{
347+
set_hold_position();
348+
RCLCPP_ERROR(get_node()->get_logger(), "Holding position due to state tolerance violation");
349+
}
345350
}
346351
}
347352

0 commit comments

Comments
 (0)