Skip to content

Commit bb241df

Browse files
committed
freedrive_controller: By default use ASYNC_WAITING
1 parent 572f25a commit bb241df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ur_controllers/src/freedrive_mode_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ ur_controllers::FreedriveModeController::on_deactivate(const rclcpp_lifecycle::S
193193
controller_interface::return_type ur_controllers::FreedriveModeController::update(const rclcpp::Time& /*time*/,
194194
const rclcpp::Duration& /*period*/)
195195
{
196-
async_state_ = async_success_command_interface_->get().get_optional().value();
196+
async_state_ = async_success_command_interface_->get().get_optional().value_or(ASYNC_WAITING);
197197

198198
if (change_requested_) {
199199
bool write_success = true;

0 commit comments

Comments
 (0)