GAMS  1.2.2
PlatformCollection.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_PLATFORM_COLLECTION_H_
55 #define _GAMS_PLATFORM_COLLECTION_H_
56 
58 #include "gams/variables/Self.h"
59 #include "gams/variables/Sensor.h"
64 #include "madara/knowledge/KnowledgeBase.h"
65 
66 namespace gams
67 {
68  namespace platforms
69  {
74  {
75  public:
84  madara::knowledge::KnowledgeBase * knowledge,
85  variables::Sensors * sensors,
86  variables::Platforms * platforms,
87  variables::Self * self);
88 
93 
98  void operator= (const PlatformCollection & rhs);
99 
104  virtual int analyze (void);
105 
110  virtual double get_accuracy () const;
111 
115  virtual std::string get_id () const;
116 
120  virtual double get_move_speed () const;
121 
125  virtual std::string get_name () const;
126 
131  virtual int home (void);
132 
137  virtual int land (void);
138 
145  virtual int move (const pose::Position & target,
146  const PositionBounds &bounds);
147 
148  using BasePlatform::move;
149 
154  virtual int sense (void);
155 
160  virtual void set_move_speed (const double& speed);
161 
166  virtual int takeoff (void);
167 
168  protected:
169  };
170 
175  {
176  public:
177 
190  virtual BasePlatform * create (
191  const madara::knowledge::KnowledgeMap & args,
192  madara::knowledge::KnowledgeBase * knowledge,
193  variables::Sensors * sensors,
194  variables::Platforms * platforms,
195  variables::Self * self);
196  };
197  }
198 }
199 
200 #endif // _GAMS_PLATFORM_COLLECTION_H_
Copyright (c) 2014 Carnegie Mellon University.
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Definition: Sensor.h:238
The base platform for all platforms to use.
Definition: BasePlatform.h:190
Copyright (c) 2014 Carnegie Mellon University.
Copyright (c) 2014 Carnegie Mellon University.
Interface for defining a bounds checker for Positions.
Definition: BasePlatform.h:109
Contains all GAMS-related tools, classes and code.
A container for self referencing information.
Definition: Self.h:69
Copyright (c) 2014 Carnegie Mellon University.
std::map< std::string, PlatformStatus > Platforms
a map of sensor names to the sensor information
#define GAMS_EXPORT
Definition: GamsExport.h:20
virtual int move(const pose::Position &target)
Moves the platform to a location.
Definition: BasePlatform.h:308
Base class for platform factories to create BasePlatforms.
A factory class for creating null (no-op) platforms.
Copyright (c) 2014 Carnegie Mellon University.
A collection of platforms.
Copyright (c) 2014 Carnegie Mellon University.