GAMS  1.4.0
UniformRandomAreaCoverage.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_ALGORITHMS_AREA_COVERAGE_UNIFORM_RANDOM_AREA_COVERAGE_H_
55 #define _GAMS_ALGORITHMS_AREA_COVERAGE_UNIFORM_RANDOM_AREA_COVERAGE_H_
56 
59 
61 #include "gams/variables/Sensor.h"
62 #include "gams/variables/Self.h"
64 #include "gams/pose/Region.h"
65 
66 namespace gams
67 {
68  namespace algorithms
69  {
70  namespace area_coverage
71  {
76  {
77  public:
89  const std::string& search_area_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 
107 
108  protected:
112  virtual void generate_new_position(void);
113 
116  };
117 
123  : public AlgorithmFactory
124  {
125  public:
126 
142  const madara::knowledge::KnowledgeMap & args,
143  madara::knowledge::KnowledgeBase * knowledge,
144  platforms::BasePlatform * platform,
145  variables::Sensors * sensors,
146  variables::Self * self,
147  variables::Agents * agents);
148  };
149  } // namespace area_coverage
150  } // namespace algorithms
151 } // namespace gams
152 
153 #endif // _GAMS_ALGORITHMS_AREA_COVERAGE_UNIFORM_RANDOM_AREA_COVERAGE_H_
Copyright(c) 2014 Carnegie Mellon University.
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 uniform 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 uniform random area coverage algorithm.
UniformRandomAreaCoverage(const std::string &search_area_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.
virtual void generate_new_position(void)
Generate new next position.
void operator=(const UniformRandomAreaCoverage &rhs)
Assignment operator.
The base platform for all platforms to use.
Definition: BasePlatform.h:113
A helper class for region information.
Definition: Region.h:79
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.