54 #ifndef _GAMS_ALGORITHMS_ZONE_COVERAGE_H_ 55 #define _GAMS_ALGORITHMS_ZONE_COVERAGE_H_ 67 #include "madara/knowledge/containers/Integer.h" 68 #include "madara/knowledge/containers/Barrier.h" 104 const std::string &protectors,
105 const std::string &assets,
106 const std::string &enemies,
107 const std::string &formation,
108 double buffer,
double distance,
109 madara::knowledge::KnowledgeBase * knowledge = 0,
129 virtual int analyze (
void);
135 virtual int execute (
void);
141 virtual int plan (
void);
173 static formation_func get_form_func (
const std::string &form_name);
175 typedef std::vector<madara::knowledge::containers::NativeDoubleArray>
MadaraArrayVec;
186 MadaraArrayVec &arrays)
const;
187 void update_locs (
const MadaraArrayVec &arrays,
188 std::vector<pose::Position> &locs)
const;
216 const madara::knowledge::KnowledgeMap & args,
217 madara::knowledge::KnowledgeBase * knowledge,
226 #endif // _GAMS_ALGORITHMS_FORMATION_SYNC_H_ Base class for algorithm factories that classes derived from.
gams::groups::AgentVector enemies_members_
std::vector< madara::knowledge::containers::NativeDoubleArray > MadaraArrayVec
std::vector< std::string > AgentVector
A vector of agent names.
MadaraArrayVec enemy_loc_cont_
An algorithm for covering an area in formation with a synchronous model of computation.
Copyright (c) 2014 Carnegie Mellon University.
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
MadaraArrayVec asset_loc_cont_
Copyright (c) 2014 Carnegie Mellon University.
std::vector< Agent > Agents
An array of agent knowledge.
Copyright (c) 2014 Carnegie Mellon University.
gams::groups::GroupBase * assets_
gams::groups::AgentVector protectors_members_
Contains all GAMS-related tools, classes and code.
gams::groups::AgentVector assets_members_
A container for self referencing information.
Base class for a group of agents.
std::vector< pose::Position > asset_locs_
formation_func form_func_
gams::groups::GroupBase * protectors_
The base class that algorithms in GAMS use.
Copyright (c) 2014 Carnegie Mellon University.
A repository for group factories.
A factory class for creating Formation Coverage algorithms.
Copyright (c) 2016 Carnegie Mellon University.
std::vector< pose::Position > enemy_locs_
gams::groups::GroupBase * enemies_
groups::GroupFactoryRepository group_factory_
factory for interacting with user-defined groups