Skip to content

Commit

Permalink
feat(system_error_monitor): manual modules (#793)
Browse files Browse the repository at this point in the history
* feat(rviz_plugin): console meter is too large on the Rviz with FHD display, isn't it? (#587)

* feat(tier4_planning/vehicle_plugin): make plugins size scalable

Signed-off-by: Takamasa Horibe <[email protected]>

* remove space

Signed-off-by: Takamasa Horibe <[email protected]>

* scaling

Signed-off-by: Takamasa Horibe <[email protected]>

* change diag message

Signed-off-by: asa-naki <[email protected]>

* fix module name

Signed-off-by: asa-naki <[email protected]>

* add manual module and ignoring modules

Signed-off-by: asa-naki <[email protected]>

* Revert "feat(rviz_plugin): console meter is too large on the Rviz with FHD display, isn't it? (#587)"

This reverts commit f96169c.

* Revert "change diag message"

This reverts commit dff01ce.

* ci(pre-commit): autofix

* fix spell check

Signed-off-by: asa-naki <[email protected]>

* Revert "fix spell check"

This reverts commit 208aa1e.

* Revert "fix module name"

This reverts commit cec7653.

* revert ignore module

Signed-off-by: asa-naki <[email protected]>

* current_mode check update

Signed-off-by: asa-naki <[email protected]>

* ci(pre-commit): autofix

* delete margin

Signed-off-by: asa-naki <[email protected]>

---------

Signed-off-by: Takamasa Horibe <[email protected]>
Signed-off-by: asa-naki <[email protected]>
Co-authored-by: Takamasa Horibe <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 28, 2023
1 parent a7a49db commit 73cb811
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@

/autoware/vehicle/node_alive_monitoring: default

manual_control:
/autoware/control/control_command_gate/node_alive_monitoring: default
/autoware/control/autonomous_emergency_braking/performance_monitoring/emergency_stop: { sf_at: "none", lf_at: "warn", spf_at: "error", auto_recovery: "false"}

/autoware/system/node_alive_monitoring: default
/autoware/system/emergency_stop_operation: default

/autoware/vehicle/node_alive_monitoring: default

external_control:
/autoware/control/control_command_gate/node_alive_monitoring: default
/autoware/control/autonomous_emergency_braking/performance_monitoring/emergency_stop: { sf_at: "none", lf_at: "warn", spf_at: "error", auto_recovery: "false"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@

/autoware/vehicle/node_alive_monitoring: default

manual_control:
/autoware/control/control_command_gate/node_alive_monitoring: default
/autoware/control/autonomous_emergency_braking/performance_monitoring/emergency_stop: { sf_at: "none", lf_at: "warn", spf_at: "error", auto_recovery: "false"}
/autoware/control/external_control/external_command_selector/node_alive_monitoring: default

/autoware/system/node_alive_monitoring: default
/autoware/system/emergency_stop_operation: default

/autoware/vehicle/node_alive_monitoring: default

external_control:
/autoware/control/control_command_gate/node_alive_monitoring: default
/autoware/control/autonomous_emergency_braking/performance_monitoring/emergency_stop: { sf_at: "none", lf_at: "warn", spf_at: "error", auto_recovery: "false"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ struct KeyName
{
static constexpr const char * autonomous_driving = "autonomous_driving";
static constexpr const char * external_control = "external_control";
static constexpr const char * manual_control = "manual_control";
};

class AutowareErrorMonitor : public rclcpp::Node
Expand Down
6 changes: 6 additions & 0 deletions system/system_error_monitor/src/system_error_monitor_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ AutowareErrorMonitor::AutowareErrorMonitor()

loadRequiredModules(KeyName::autonomous_driving);
loadRequiredModules(KeyName::external_control);
loadRequiredModules(KeyName::manual_control);

using std::placeholders::_1;
using std::placeholders::_2;
Expand Down Expand Up @@ -460,6 +461,11 @@ void AutowareErrorMonitor::onTimer()
current_mode_ = current_gate_mode_->data == tier4_control_msgs::msg::GateMode::AUTO
? KeyName::autonomous_driving
: KeyName::external_control;
if (
current_gate_mode_->data == tier4_control_msgs::msg::GateMode::AUTO &&
control_mode_->mode == autoware_auto_vehicle_msgs::msg::ControlModeReport::MANUAL) {
current_mode_ = KeyName::manual_control;
}

updateHazardStatus();
publishHazardStatus(hazard_status_);
Expand Down

0 comments on commit 73cb811

Please sign in to comment.