We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aa747b commit 4934ce0Copy full SHA for 4934ce0
system/default_ad_api/src/operation_mode.cpp
@@ -66,8 +66,13 @@ void OperationModeNode::change_mode(
66
const ResponseT res, const OperationModeRequest::_mode_type mode)
67
{
68
if (!mode_available_[mode]) {
69
+ RCLCPP_WARN(
70
+ get_logger(),
71
+ "The target mode is not available. Please check the cause with "
72
+ "rqt_diagnostics_graph_monitor");
73
throw component_interface_utils::ServiceException(
- ServiceResponse::ERROR_NOT_AVAILABLE, "The mode change is blocked by the system.");
74
+ ServiceResponse::ERROR_NOT_AVAILABLE,
75
+ "The target mode is not available. Please check the diagnostics.");
76
}
77
const auto req = std::make_shared<OperationModeRequest>();
78
req->mode = mode;
0 commit comments