GAMS  1.4.0
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 
102 
103  protected:
108 
111 
113  std::vector<double> priority_total_by_region_;
114 
117  }; // class PriorityWeightedAreaCoverage
118 
124  : public AlgorithmFactory
125  {
126  public:
127 
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_
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
#define GAMS_EXPORT
Definition: GamsExport.h:20
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 priority-weighted random 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 priority-weighted random area coverage algorithm.
Focuses on high priority areas over low priority, and uses a weighted system for area coverage region...
void operator=(const PriorityWeightedRandomAreaCoverage &rhs)
Assignment operator.
PriorityWeightedRandomAreaCoverage(const std::string &search_id, double e_time, 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 utility class for search areas.
Definition: SearchArea.h:72
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.
Copyright(c) 2014 Carnegie Mellon University.