GAMS  1.2.2
DebugPlatform.h
Go to the documentation of this file.
1 
55 #ifndef _GAMS_PLATFORM_PRINTER_H_
56 #define _GAMS_PLATFORM_PRINTER_H_
57 
58 #include "madara/knowledge/KnowledgeBase.h"
59 #include "madara/knowledge/containers/Integer.h"
60 
61 #include "gams/variables/Self.h"
62 #include "gams/variables/Sensor.h"
67 
68 namespace gams
69 {
70  namespace platforms
71  {
76  {
77  public:
89  madara::knowledge::KnowledgeBase * knowledge,
90  variables::Sensors * sensors,
91  variables::Platforms * platforms,
92  variables::Self * self,
93  const std::string & executions_location = ".executions");
94 
98  ~DebugPlatform ();
99 
104  void operator= (const DebugPlatform & rhs);
105 
110  virtual int analyze (void) override;
111 
116  virtual double get_accuracy () const override;
117 
123  virtual std::string get_id () const override;
124 
128  virtual double get_move_speed () const override;
129 
133  virtual std::string get_name () const override;
134 
139  virtual int home (void) override;
140 
145  virtual int land (void) override;
146 
153  int move (const pose::Position & position,
154  const PositionBounds &bounds) override;
155 
156  using BasePlatform::move;
157 
162  virtual int sense (void) override;
163 
168  virtual void set_move_speed (const double& speed) override;
169 
174  virtual int takeoff (void) override;
175 
176  protected:
177 
180 
188  madara::knowledge::containers::Integer executions_;
189  };
190 
195  {
196  public:
197 
210  virtual BasePlatform * create (
211  const madara::knowledge::KnowledgeMap & args,
212  madara::knowledge::KnowledgeBase * knowledge,
213  variables::Sensors * sensors,
214  variables::Platforms * platforms,
215  variables::Self * self);
216  };
217  }
218 }
219 
220 #endif // _GAMS_PLATFORM_PRINTER_H_
Copyright (c) 2014 Carnegie Mellon University.
pose::Position position_
current position
A debug platform that prints detailed status information.
Definition: DebugPlatform.h:75
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Definition: Sensor.h:238
A factory class for creating debug platforms.
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.
madara::knowledge::containers::Integer executions_
Used to keep track of executions.
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.
Copyright (c) 2014 Carnegie Mellon University.