Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 5, 2022
1 parent 4d67a6e commit f5d4b6f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ struct Flags
class StateMachine
{
public:
explicit StateMachine(const StateParam & state_param, rclcpp::Logger logger) : state_param_(state_param), logger_(logger) {}
explicit StateMachine(const StateParam & state_param, rclcpp::Logger logger)
: state_param_(state_param), logger_(logger)
{
}

AutowareState getCurrentState() const { return autoware_state_; }
AutowareState updateState(const StateInput & state_input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

#include <rclcpp/rclcpp.hpp>

#include <memory>

#include <glog/logging.h>

#include <memory>

int main(int argc, char * argv[])
{
google::InitGoogleLogging(argv[0]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ bool isStopped(
const double th_stopped_velocity_mps)
{
for (const auto & odometry : odometry_buffer) {
if (!odometry)
{
if (!odometry) {
std::cerr << __func__ << ": odometry is nullptr" << std::endl;
}
if (std::abs(odometry->twist.twist.linear.x) > th_stopped_velocity_mps) {
Expand Down Expand Up @@ -189,13 +188,11 @@ bool StateMachine::isOverridden() const { return !isEngaged(); }

bool StateMachine::hasArrivedGoal() const
{
if (!state_input_.current_pose)
{
if (!state_input_.current_pose) {
RCLCPP_WARN(logger_, "current_pose is nullptr");
}

if (!state_input_.goal_pose)
{
if (!state_input_.goal_pose) {
RCLCPP_WARN(logger_, "goal_pose is nullptr");
}

Expand Down

0 comments on commit f5d4b6f

Please sign in to comment.