GAMS  1.2.2
Hold.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_ALGORITHMS_HOLD_H_
55 #define _GAMS_ALGORITHMS_HOLD_H_
56 
57 #include "gams/variables/Sensor.h"
60 #include "gams/variables/Self.h"
63 
64 namespace gams
65 {
66  namespace algorithms
67  {
72  {
73  public:
81  Hold (
82  madara::knowledge::KnowledgeBase * knowledge = 0,
83  platforms::BasePlatform * platform = 0,
84  variables::Sensors * sensors = 0,
85  variables::Self * self = 0);
86 
90  ~Hold ();
91 
96  void operator= (const Hold & rhs);
97 
102  virtual int analyze (void);
103 
108  virtual int execute (void);
109 
114  virtual int plan (void);
115 
116  protected:
120 
122  bool pose_set_;
123 
124  };
125 
130  {
131  public:
132 
147  virtual BaseAlgorithm * create (
148  const madara::knowledge::KnowledgeMap & args,
149  madara::knowledge::KnowledgeBase * knowledge,
150  platforms::BasePlatform * platform,
151  variables::Sensors * sensors,
152  variables::Self * self,
153  variables::Agents * agents);
154  };
155  }
156 }
157 
158 #endif // _GAMS_ALGORITHMS_HOLD_H_
Base class for algorithm factories that classes derived from.
Copyright (c) 2014 Carnegie Mellon University.
An algorithm for taking off.
Definition: Hold.h:71
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Definition: Sensor.h:238
gams::pose::Position location_
holds the pose we will hold
Definition: Hold.h:118
The base platform for all platforms to use.
Definition: BasePlatform.h:190
Copyright (c) 2014 Carnegie Mellon University.
std::vector< Agent > Agents
An array of agent knowledge.
Definition: Agent.h:246
Copyright (c) 2014 Carnegie Mellon University.
bool pose_set_
indicates if the pose has been set
Definition: Hold.h:122
Contains all GAMS-related tools, classes and code.
A container for self referencing information.
Definition: Self.h:69
A factory class for creating Null algorithms.
Definition: Hold.h:129
#define GAMS_EXPORT
Definition: GamsExport.h:20
The base class that algorithms in GAMS use.
Definition: BaseAlgorithm.h:94
Copyright (c) 2014 Carnegie Mellon University.
gams::pose::Orientation orientation_
Definition: Hold.h:119
Copyright (c) 2014 Carnegie Mellon University.