An algorithm for covering an area in formation.
More...
#include <FormationCoverage.h>
|
| FormationCoverage (const std::string &head_id, const std::vector< double > &offset, const std::vector< double > &destination, const std::string &group_name, const std::string &modifier, const std::string &coverage, const madara::knowledge::KnowledgeMap &cover_args, madara::knowledge::KnowledgeBase *knowledge=0, platforms::BasePlatform *platform=0, variables::Sensors *sensors=0, variables::Self *self=0) |
| Constructor. More...
|
|
| ~FormationCoverage () |
| Destructor. More...
|
|
virtual int | analyze (void) |
| Analyzes environment, platform, or other information. More...
|
|
virtual int | execute (void) |
| Plans the next execution of the algorithm. More...
|
|
variables::Agents * | get_agents (void) |
| Gets the list of agents. More...
|
|
variables::AlgorithmStatus * | get_algorithm_status (void) |
| Gets algorithm status variables. More...
|
|
madara::knowledge::KnowledgeBase * | get_knowledge_base (void) |
| Gets the knowledge base. More...
|
|
platforms::BasePlatform * | get_platform (void) |
| Gets the platform. More...
|
|
variables::Self * | get_self (void) |
| Gets self-defined variables. More...
|
|
variables::Sensors * | get_sensors (void) |
| Gets the available sensor information. More...
|
|
void | operator= (const FormationCoverage &rhs) |
| Assignment operator. More...
|
|
virtual int | plan (void) |
| Plans the next execution of the algorithm. More...
|
|
virtual void | set_agents (variables::Agents *agents) |
| Sets the list of agents in the swarm. More...
|
|
virtual void | set_platform (platforms::BasePlatform *platform) |
| Sets the platform. More...
|
|
virtual void | set_self (variables::Self *self) |
| Sets the map of sensor names to sensor information. More...
|
|
virtual void | set_sensors (variables::Sensors *sensors) |
| Sets the map of sensor names to sensor information. More...
|
|
An algorithm for covering an area in formation.
Definition at line 76 of file FormationCoverage.h.
gams::algorithms::FormationCoverage::FormationCoverage |
( |
const std::string & |
head_id, |
|
|
const std::vector< double > & |
offset, |
|
|
const std::vector< double > & |
destination, |
|
|
const std::string & |
group_name, |
|
|
const std::string & |
modifier, |
|
|
const std::string & |
coverage, |
|
|
const madara::knowledge::KnowledgeMap & |
cover_args, |
|
|
madara::knowledge::KnowledgeBase * |
knowledge = 0 , |
|
|
platforms::BasePlatform * |
platform = 0 , |
|
|
variables::Sensors * |
sensors = 0 , |
|
|
variables::Self * |
self = 0 |
|
) |
| |
Constructor.
- Parameters
-
head_id | target of the formation |
offset | offset of formation |
destination | destination of the formation |
group_name | group identifier (e.g. group.group1) |
modifier | modifier that influences the formation |
coverage | area coverage algorithm to run |
cover_args | args for area coverage algorithm |
knowledge | the context containing variables and values |
platform | the underlying platform the algorithm will use |
sensors | map of sensor names to sensor information |
self | self-referencing variables |
gams::algorithms::FormationCoverage::~FormationCoverage |
( |
| ) |
|
virtual int gams::algorithms::FormationCoverage::analyze |
( |
void |
| ) |
|
|
virtual |
virtual int gams::algorithms::FormationCoverage::execute |
( |
void |
| ) |
|
|
virtual |
Gets algorithm status variables.
madara::knowledge::KnowledgeBase* gams::algorithms::BaseAlgorithm::get_knowledge_base |
( |
void |
| ) |
|
|
inherited |
Gets self-defined variables.
Gets the available sensor information.
Assignment operator.
- Parameters
-
virtual int gams::algorithms::FormationCoverage::plan |
( |
void |
| ) |
|
|
virtual |
virtual void gams::algorithms::BaseAlgorithm::set_agents |
( |
variables::Agents * |
agents | ) |
|
|
virtualinherited |
Sets the list of agents in the swarm.
- Parameters
-
Sets the platform.
- Parameters
-
platform | the underlying platform the algorithm will use |
virtual void gams::algorithms::BaseAlgorithm::set_self |
( |
variables::Self * |
self | ) |
|
|
virtualinherited |
Sets the map of sensor names to sensor information.
- Parameters
-
self | pointer to self-referencing variables container |
Sets the map of sensor names to sensor information.
- Parameters
-
sensors | map of sensor names to sensor information |
the list of agents potentially participating in the algorithm
Definition at line 201 of file BaseAlgorithm.h.
unsigned int gams::algorithms::BaseAlgorithm::executions_ |
|
protectedinherited |
madara::knowledge::containers::NativeDoubleArray gams::algorithms::FormationCoverage::head_destination_ |
|
protected |
bool gams::algorithms::FormationCoverage::is_covering_ |
|
protected |
madara::knowledge::KnowledgeBase* gams::algorithms::BaseAlgorithm::knowledge_ |
|
protectedinherited |
provides access to status information for this platform
Definition at line 219 of file BaseAlgorithm.h.
The documentation for this class was generated from the following file: