Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update mrm handler for mrm v0.6 #1373

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions system/mrm_handler/include/mrm_handler/mrm_handler_core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
// Autoware
#include <tier4_autoware_utils/ros/update_param.hpp>

#include <tier4_system_msgs/msg/mrm_state.hpp>
#include <tier4_system_msgs/msg/mrm_behavior.hpp>
#include <autoware_adapi_v1_msgs/msg/operation_mode_state.hpp>
#include <autoware_auto_vehicle_msgs/msg/control_mode_report.hpp>
#include <autoware_auto_vehicle_msgs/msg/gear_command.hpp>
Expand Down
6 changes: 3 additions & 3 deletions system/mrm_handler/src/mrm_handler/mrm_handler_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
mrm_state_.behavior.type = tier4_system_msgs::msg::MrmBehavior::NONE;
is_operation_mode_availability_timeout = false;

// Timera

Check warning on line 102 in system/mrm_handler/src/mrm_handler/mrm_handler_core.cpp

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (Timera)
const auto update_period_ns = rclcpp::Rate(param_.update_rate).period();
timer_ = rclcpp::create_timer(
this, get_clock(), update_period_ns, std::bind(&MrmHandler::onTimer, this));
Expand Down Expand Up @@ -229,7 +229,7 @@
{
using tier4_system_msgs::msg::MrmBehavior;
using tier4_system_msgs::msg::MrmState;

if (mrm_state_.state == MrmState::NORMAL) {
// Cancel MRM behavior when returning to NORMAL state
const auto current_mrm_behavior = MrmBehavior::NONE;
Expand Down Expand Up @@ -465,9 +465,9 @@

void MrmHandler::updateMrmState()
{
using autoware_auto_vehicle_msgs::msg::ControlModeReport;
using tier4_system_msgs::msg::MrmBehavior;
using tier4_system_msgs::msg::MrmState;
using tier4_system_msgs::msg::MrmBehavior;
using autoware_auto_vehicle_msgs::msg::ControlModeReport;

// Check emergency
const bool is_emergency = isEmergency();
Expand Down
Loading