GAMS  1.4.0
WaypointsCoverage.h
Go to the documentation of this file.
1 
55 #ifndef _GAMS_ALGORITHMS_AREA_COVERAGE_WAYPOINTS_COVERAGE_H_
56 #define _GAMS_ALGORITHMS_AREA_COVERAGE_WAYPOINTS_COVERAGE_H_
57 
60 
61 #include <string>
62 #include <vector>
63 
64 #include "gams/variables/Sensor.h"
67 #include "gams/variables/Self.h"
68 
69 namespace gams
70 {
71  namespace algorithms
72  {
73  namespace area_coverage
74  {
79  {
80  public:
91  const std::vector<utility::Position>& waypoints,
92  madara::knowledge::KnowledgeBase * knowledge = 0,
93  platforms::BasePlatform * platform = 0,
94  variables::Sensors * sensors = 0,
95  variables::Self * self = 0,
96  variables::Agents * agents = 0);
97 
102 
107  void operator=(const WaypointsCoverage & rhs);
108 
113  virtual int analyze(void);
114 
115  protected:
120 
122  std::vector<utility::Position> waypoints_;
123 
126  }; // class WaypointsCoverage
127 
132  {
133  public:
149  const madara::knowledge::KnowledgeMap & args,
150  madara::knowledge::KnowledgeBase * knowledge,
151  platforms::BasePlatform * platform,
152  variables::Sensors * sensors,
153  variables::Self * self,
154  variables::Agents * agents);
155  };
156  } // namespace area_coverage
157  } // namespace algorithms
158 } // namespace gams
159 
160 #endif // _GAMS_ALGORITHMS_AREA_COVERAGE_WAYPOINTS_COVERAGE_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 waypoints area coverage algorithms.
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 snake area coverage algorithm.
Waypoints algorithm that also tracks coverage metrics.
virtual int analyze(void)
Analyzes environment, platform, or other information.
std::vector< utility::Position > waypoints_
waypoints
void operator=(const WaypointsCoverage &rhs)
Assignment operator.
void generate_new_position(void)
Generate new next position.
WaypointsCoverage(const std::vector< utility::Position > &waypoints, madara::knowledge::KnowledgeBase *knowledge=0, platforms::BasePlatform *platform=0, variables::Sensors *sensors=0, variables::Self *self=0, variables::Agents *agents=0)
Constructor.
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.