GAMS  1.2.2
PriorityWeightedRandomAreaCoverage.h
Go to the documentation of this file.
1 
55 #ifndef _GAMS_ALGORITHMS_AREA_COVERAGE_PRIORITY_WEIGHTED_RANDOM_AREA_COVERAGE_H_
56 #define _GAMS_ALGORITHMS_AREA_COVERAGE_PRIORITY_WEIGHTED_RANDOM_AREA_COVERAGE_H_
57 
60 
61 #include <vector>
62 
63 #include "gams/pose/SearchArea.h"
64 
65 namespace gams
66 {
67  namespace algorithms
68  {
69  namespace area_coverage
70  {
76  {
77  public:
89  const std::string& search_id,
90  double e_time,
91  madara::knowledge::KnowledgeBase * knowledge = 0,
92  platforms::BasePlatform * platform = 0,
93  variables::Sensors * sensors = 0,
94  variables::Self * self = 0,
95  variables::Agents * agents = 0);
96 
101  void operator= (const PriorityWeightedRandomAreaCoverage & rhs);
102 
103  protected:
107  void generate_new_position (void);
108 
111 
113  std::vector<double> priority_total_by_region_;
114 
117  }; // class PriorityWeightedAreaCoverage
118 
124  : public AlgorithmFactory
125  {
126  public:
127 
142  virtual BaseAlgorithm * create (
143  const madara::knowledge::KnowledgeMap & args,
144  madara::knowledge::KnowledgeBase * knowledge,
145  platforms::BasePlatform * platform,
146  variables::Sensors * sensors,
147  variables::Self * self,
148  variables::Agents * agents);
149  };
150  } // namespace area_coverage
151  } // namespace algorithms
152 } // namespace gams
153 
154 #endif // _GAMS_ALGORITHMS_AREA_COVERAGE_PRIORITY_WEIGHTED_RANDOM_AREA_COVERAGE_H_
Base class for algorithm factories that classes derived from.
A factory class for creating priority-weighted random area coverage algorithms.
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Definition: Sensor.h:238
A utility class for search areas.
Definition: SearchArea.h:71
The base platform for all platforms to use.
Definition: BasePlatform.h:190
std::vector< Agent > Agents
An array of agent knowledge.
Definition: Agent.h:246
Base class for all area coverages.
Contains all GAMS-related tools, classes and code.
A container for self referencing information.
Definition: Self.h:69
#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.
Focuses on high priority areas over low priority, and uses a weighted system for area coverage region...
Copyright (c) 2014 Carnegie Mellon University.