5 #ifndef WAK_GAME_STATE_H
6 #define WAK_GAME_STATE_H
9 #include <walk_and_kick/wak_common.h>
10 #include <walk_and_kick/wak_config.h>
11 #include <walk_and_kick/wak_game_vars.h>
12 #include <walk_and_kick/wak_game_shared.h>
13 #include <walk_and_kick/wak_sensor_vars.h>
14 #include <walk_and_kick/wak_ros_interface.h>
15 #include <walk_and_kick/wak_beh_manager.h>
16 #include <walk_and_kick/wak_utils.h>
19 namespace walk_and_kick
46 plot_msgs::PlotManagerFS& PM;
52 void reset() { deactivate(); }
55 int id()
const {
return m_id; }
56 std::string name()
const {
return m_name; }
57 const std::string& nameRef()
const {
return m_name; }
58 bool isActive()
const {
return m_active; }
61 void activate() { m_active =
true; handleActivation(
true); }
62 void deactivate() { m_active =
false; handleActivation(
false); }
65 virtual void execute(
GameVars& GV,
const GameVars& lastGV,
bool justActivated) { GV.reset(); }
69 virtual void handleActivation(
bool nowActive) {}
Configuration struct for the walk and kick node.
Definition: wak_config.h:20
Visualisation marker manager for the walk and kick node.
Definition: wak_vis.h:21
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 shares the required walk and kick variables amongst the game state classes.
Definition: wak_game_shared.h:31
The base class for all walk and kick game states.
Definition: wak_game_state.h:26
A simple class for abstracting away the source of the field dimensions.
Definition: wak_utils.h:216
An interface class for encapsulating all of the data that the walk and kick game states should comman...
Definition: wak_game_vars.h:21