Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 10, 2025
1 parent 3e193d1 commit a1ac00b
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions system/mrm_stop_operator/src/mrm_stop_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,24 @@ void MrmStopOperator::onTimer()
} else {
// nothing to do
}
}
current_mrm_state_.stamp = this->now();
pub_mrm_state_->publish(current_mrm_state_);
}
current_mrm_state_.stamp = this->now();
pub_mrm_state_->publish(current_mrm_state_);
}

bool MrmStopOperator::isStopped()
{
constexpr auto th_stopped_velocity = 0.001;
auto current_velocity = std::make_shared<autoware_vehicle_msgs::msg::VelocityReport>();
rclcpp::MessageInfo message_info;

const bool success = sub_velocity_->take(*current_velocity, message_info);
if (success) {
return current_velocity->longitudinal_velocity < th_stopped_velocity;
} else {
return false;
bool MrmStopOperator::isStopped()
{
constexpr auto th_stopped_velocity = 0.001;
auto current_velocity = std::make_shared<autoware_vehicle_msgs::msg::VelocityReport>();
rclcpp::MessageInfo message_info;

const bool success = sub_velocity_->take(*current_velocity, message_info);
if (success) {
return current_velocity->longitudinal_velocity < th_stopped_velocity;
} else {
return false;
}
}
}

} // namespace mrm_stop_operator

Expand Down

0 comments on commit a1ac00b

Please sign in to comment.