We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ce8ff commit 8bc8813Copy full SHA for 8bc8813
ur_controllers/src/freedrive_mode_controller.cpp
@@ -193,7 +193,7 @@ ur_controllers::FreedriveModeController::on_deactivate(const rclcpp_lifecycle::S
193
controller_interface::return_type ur_controllers::FreedriveModeController::update(const rclcpp::Time& /*time*/,
194
const rclcpp::Duration& /*period*/)
195
{
196
- async_state_ = async_success_command_interface_->get().get_optional().value();
+ async_state_ = async_success_command_interface_->get().get_optional().value_or(ASYNC_WAITING);
197
198
if (change_requested_) {
199
bool write_success = true;
0 commit comments