5 #ifndef WALK_AND_KICK_H
6 #define WALK_AND_KICK_H
9 #include <walk_and_kick/wak_common.h>
10 #include <walk_and_kick/wak_config.h>
11 #include <walk_and_kick/wak_sensor_vars.h>
12 #include <walk_and_kick/wak_ros_interface.h>
13 #include <walk_and_kick/wak_game_manager.h>
14 #include <walk_and_kick/wak_beh_manager.h>
15 #include <walk_and_kick/wak_utils.h>
16 #include <walk_and_kick/TeamCommsData.h>
17 #include <walk_and_kick/VisualiseDBH.h>
18 #include <std_srvs/Empty.h>
27 namespace walk_and_kick
51 bool publishLEDPending() {
return (m_lastBlinkLED != shouldBlinkLED()); }
52 void publishLED() { m_lastBlinkLED = shouldBlinkLED(); RI.updateRGBLED(m_lastBlinkLED); }
53 void publishNeutral() { RI.writeNeutral(); }
55 void publishTeamComms(
const ros::Time& now);
58 bool handleVisualiseClear(std_srvs::EmptyRequest& req, std_srvs::EmptyResponse& resp);
59 bool handleVisualiseDBH(walk_and_kick::VisualiseDBHRequest& req, walk_and_kick::VisualiseDBHResponse& resp);
60 bool handleVisualiseDbApp(walk_and_kick::VisualiseDbAppRequest& req, walk_and_kick::VisualiseDbAppResponse& resp);
61 bool handleVisualiseGcvXY(std_srvs::EmptyRequest& req, std_srvs::EmptyResponse& resp);
84 TeamCommsData m_teamPacket;
85 int m_teamPacketCount;
88 bool shouldBlinkLED()
const {
return SV.listenToGC; }
Configuration struct for the walk and kick node.
Definition: wak_config.h:20
An interface class for encapsulating all of the ROS input data to the walk and kick node...
Definition: wak_sensor_vars.h:29
A class that manages and executes the walk and kick behaviour states.
Definition: wak_beh_manager.h:50
The main walk and kick behaviour class.
Definition: walk_and_kick.h:34
A simple class for abstracting away the source of the field dimensions.
Definition: wak_utils.h:216
A class that manages and executes the walk and kick game states.
Definition: wak_game_manager.h:38
An interface class between the walk and kick and ROS worlds.
Definition: wak_ros_interface.h:54