Skip to content

Commit d173581

Browse files
committed
Tool contact is ended in the hardware interface, when controller is activated. No reason to do it here as well.
1 parent e4a2bf4 commit d173581

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ur_controllers/src/tool_contact_controller.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,6 @@ ToolContactController::on_deactivate(const rclcpp_lifecycle::State& /* previous_
186186
}
187187
if (tool_contact_active_) {
188188
tool_contact_active_ = false;
189-
if (!tool_contact_set_state_interface_->get().set_value(TOOL_CONTACT_WAITING_END)) {
190-
RCLCPP_FATAL(get_node()->get_logger(), "Controller failed to update command interface.");
191-
return controller_interface::CallbackReturn::ERROR;
192-
}
193189
}
194190

195191
return controller_interface::CallbackReturn::SUCCESS;

0 commit comments

Comments
 (0)