diff --git a/soccer/src/soccer/soccer_mom.cpp b/soccer/src/soccer/soccer_mom.cpp index 58836009d63..cae3ca775b6 100644 --- a/soccer/src/soccer/soccer_mom.cpp +++ b/soccer/src/soccer/soccer_mom.cpp @@ -13,6 +13,5 @@ SoccerMom::SoccerMom() : rclcpp::Node{"SoccerMom"} { message.data = "bananas"; } soccer_mom_pub_->publish(message); - } - ); + }); } diff --git a/soccer/src/soccer/soccer_mom.hpp b/soccer/src/soccer/soccer_mom.hpp index 9cbc203bfce..6a2e620a6fd 100644 --- a/soccer/src/soccer/soccer_mom.hpp +++ b/soccer/src/soccer/soccer_mom.hpp @@ -1,17 +1,17 @@ #pragma once #include + #include -#include "std_msgs/msg/string.hpp" #include "rj_msgs/msg/team_color.hpp" +#include "std_msgs/msg/string.hpp" class SoccerMom : public rclcpp::Node { - public: - SoccerMom(); - - private: - rclcpp::Subscription::SharedPtr team_color_sub_; - rclcpp::Publisher::SharedPtr soccer_mom_pub_; +public: + SoccerMom(); +private: + rclcpp::Subscription::SharedPtr team_color_sub_; + rclcpp::Publisher::SharedPtr soccer_mom_pub_; }; \ No newline at end of file diff --git a/soccer/src/soccer/strategy/agent/position/robot_factory_position.hpp b/soccer/src/soccer/strategy/agent/position/robot_factory_position.hpp index 925392c923d..67f4cbfa1e1 100644 --- a/soccer/src/soccer/strategy/agent/position/robot_factory_position.hpp +++ b/soccer/src/soccer/strategy/agent/position/robot_factory_position.hpp @@ -26,10 +26,10 @@ #include "strategy/agent/position/penalty_player.hpp" #include "strategy/agent/position/pivot_test.hpp" #include "strategy/agent/position/position.hpp" +#include "strategy/agent/position/runner.hpp" #include "strategy/agent/position/smartidling.hpp" #include "strategy/agent/position/solo_offense.hpp" #include "strategy/agent/position/zoner.hpp" -#include "strategy/agent/position/runner.hpp" namespace strategy { diff --git a/soccer/src/soccer/strategy/agent/position/runner.cpp b/soccer/src/soccer/strategy/agent/position/runner.cpp index 1aa4c96e206..df9089f39cb 100644 --- a/soccer/src/soccer/strategy/agent/position/runner.cpp +++ b/soccer/src/soccer/strategy/agent/position/runner.cpp @@ -16,7 +16,7 @@ Runner::State Runner::next_state() { if (!check_is_done()) { return current_state_; } - switch(current_state_) { + switch (current_state_) { case TOP_LEFT: return TOP_RIGHT; case TOP_RIGHT: @@ -52,7 +52,6 @@ std::optional Runner::derived_get_task(RobotIntent intent) { return state_to_task(intent); }; - std::optional Runner::state_to_task(RobotIntent intent) { planning::LinearMotionInstant target; switch (current_state_) { @@ -73,7 +72,6 @@ std::optional Runner::state_to_task(RobotIntent intent) { planning::MotionCommand prep_command{"path_target", target, planning::FaceTarget{}}; intent.motion_command = prep_command; return intent; - } } // namespace strategy diff --git a/soccer/src/soccer/strategy/agent/position/runner.hpp b/soccer/src/soccer/strategy/agent/position/runner.hpp index 4d94714d34a..aaf3e25fa8d 100644 --- a/soccer/src/soccer/strategy/agent/position/runner.hpp +++ b/soccer/src/soccer/strategy/agent/position/runner.hpp @@ -27,13 +27,7 @@ class Runner : public Position { private: std::optional derived_get_task(RobotIntent intent) override; - - enum State { - TOP_LEFT, - TOP_RIGHT, - BOTTOM_LEFT, - BOTTOM_RIGHT - }; + enum State { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT }; State current_state_ = State::TOP_LEFT; @@ -43,6 +37,5 @@ class Runner : public Position { State next_state(); std::optional state_to_task(RobotIntent intent); - }; } // namespace strategy