Commit df61be3 1 parent d3bed58 commit df61be3 Copy full SHA for df61be3
File tree 1 file changed +12
-12
lines changed
system/mrm_stop_operator/src
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -107,19 +107,19 @@ void MrmStopOperator::onTimer()
107
107
current_mrm_state_.stamp = this ->now ();
108
108
pub_mrm_state_->publish (current_mrm_state_);
109
109
}
110
+ }
110
111
111
- bool MrmStopOperator::isStopped ()
112
- {
113
- constexpr auto th_stopped_velocity = 0.001 ;
114
- auto current_velocity = std::make_shared<autoware_vehicle_msgs::msg::VelocityReport>();
115
- rclcpp::MessageInfo message_info;
116
-
117
- const bool success = sub_velocity_->take (*current_velocity, message_info);
118
- if (success) {
119
- return current_velocity->longitudinal_velocity < th_stopped_velocity;
120
- } else {
121
- return false ;
122
- }
112
+ bool MrmStopOperator::isStopped ()
113
+ {
114
+ constexpr auto th_stopped_velocity = 0.001 ;
115
+ auto current_velocity = std::make_shared<autoware_vehicle_msgs::msg::VelocityReport>();
116
+ rclcpp::MessageInfo message_info;
117
+
118
+ const bool success = sub_velocity_->take (*current_velocity, message_info);
119
+ if (success) {
120
+ return current_velocity->longitudinal_velocity < th_stopped_velocity;
121
+ } else {
122
+ return false ;
123
123
}
124
124
}
125
125
} // namespace mrm_stop_operator
You can’t perform that action at this time.
0 commit comments