NimbRo ROS Soccer Package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gaze_beh_look_around.h
1 // Walk and kick gaze behaviour state: Look around
2 // Author: Philipp Allgeuer <pallgeuer@ais.uni-bonn.de>
3 
4  // Ensure header is only included once
5 #ifndef GAZE_BEH_LOOK_AROUND_H
6 #define GAZE_BEH_LOOK_AROUND_H
7 
8 // Includes
9 #include <walk_and_kick/wak_beh_state.h>
10 
11 // Walk and kick namespace
12 namespace walk_and_kick
13 {
19  class GazeBehLookAround : public virtual WAKBehState
20  {
21  public:
22  // Constructor
23  GazeBehLookAround(WAKConfig& config, const SensorVars& SV, const WAKBehShared& WBS, const WAKGameShared& WGS, int ID);
24  virtual ~GazeBehLookAround() {}
25 
26  // Execute function
27  virtual void execute(ActuatorVars& AV, const ActuatorVars& lastAV, bool justActivated);
28 
29  protected:
30  // Handle activation function
31  virtual void handleActivation(bool nowActive);
32 
33  // Reset functions
34  void resetGazeSpline();
35 
36  private:
37  // State variables
38  Vec2f m_gazeInit;
39  float m_gazeMag;
40  int m_gazeTargetID; // -1 = Look right, 0 = Look down, +1 = Look left
41  int m_gazeTargetDirn; // -1 = CCW, +1 = CW
42  TrapVelSpline2D m_gazeSpline;
43  };
44 }
45 
46 
47 #endif
48 // EOF
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 trapezoidal velocity spline that operates in 2D, based on the rc_utils::TrapVelSpline class...
Definition: wak_utils.h:156
A class that shares the required walk and kick variables amongst the game state classes.
Definition: wak_game_shared.h:31
A walk and kick gaze behaviour state that looks around.
Definition: gaze_beh_look_around.h:19
The base class for all walk and kick behaviour states.
Definition: wak_beh_state.h:27
A class that shares the required walk and kick variables amongst the behaviour state classes...
Definition: wak_beh_shared.h:48
An interface class for encapsulating all of the data that the walk and kick behaviour states should c...
Definition: wak_actuator_vars.h:22