GAMS  1.4.0
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:
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 
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_
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
#define GAMS_EXPORT
Definition: GamsExport.h:20
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Base class for algorithm factories that classes derived from.
The base class that algorithms in GAMS use.
Definition: BaseAlgorithm.h:95
A factory class for creating Null algorithms.
Definition: Hold.h:130
virtual BaseAlgorithm * create(const madara::knowledge::KnowledgeMap &args, madara::knowledge::KnowledgeBase *knowledge, platforms::BasePlatform *platform, variables::Sensors *sensors, variables::Self *self, variables::Agents *agents)
Creates a Null(no-op) Algorithm.
An algorithm for taking off.
Definition: Hold.h:72
bool pose_set_
indicates if the pose has been set
Definition: Hold.h:122
virtual int plan(void)
Plans the next execution of the algorithm.
gams::pose::Orientation orientation_
Definition: Hold.h:119
Hold(madara::knowledge::KnowledgeBase *knowledge=0, platforms::BasePlatform *platform=0, variables::Sensors *sensors=0, variables::Self *self=0)
Constructor.
virtual int analyze(void)
Analyzes environment, platform, or other information.
gams::pose::Position location_
holds the pose we will hold
Definition: Hold.h:118
void operator=(const Hold &rhs)
Assignment operator.
virtual int execute(void)
Plans the next execution of the algorithm.
The base platform for all platforms to use.
Definition: BasePlatform.h:113
A container for self referencing information.
Definition: Self.h:70
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Definition: Sensor.h:238
std::vector< Agent > Agents
An array of agent knowledge.
Definition: Agent.h:246
Contains all GAMS-related tools, classes and code.