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.
◆ FormationCoverage()
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 |
◆ ~FormationCoverage()
gams::algorithms::FormationCoverage::~FormationCoverage |
( |
| ) |
|
◆ analyze()
virtual int gams::algorithms::FormationCoverage::analyze |
( |
void |
| ) |
|
|
virtual |
◆ execute()
virtual int gams::algorithms::FormationCoverage::execute |
( |
void |
| ) |
|
|
virtual |
◆ get_agents()
◆ get_algorithm_status()
Gets algorithm status variables.
◆ get_knowledge_base()
madara::knowledge::KnowledgeBase* gams::algorithms::BaseAlgorithm::get_knowledge_base |
( |
void |
| ) |
|
|
inherited |
◆ get_platform()
◆ get_self()
Gets self-defined variables.
◆ get_sensors()
Gets the available sensor information.
◆ operator=()
Assignment operator.
- Parameters
-
◆ plan()
virtual int gams::algorithms::FormationCoverage::plan |
( |
void |
| ) |
|
|
virtual |
◆ set_agents()
virtual void gams::algorithms::BaseAlgorithm::set_agents |
( |
variables::Agents * |
agents | ) |
|
|
virtualinherited |
Sets the list of agents in the swarm.
- Parameters
-
◆ set_platform()
Sets the platform.
- Parameters
-
platform | the underlying platform the algorithm will use |
◆ set_self()
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 |
◆ set_sensors()
Sets the map of sensor names to sensor information.
- Parameters
-
sensors | map of sensor names to sensor information |
◆ agents_
the list of agents potentially participating in the algorithm
Definition at line 201 of file BaseAlgorithm.h.
◆ executions_
unsigned int gams::algorithms::BaseAlgorithm::executions_ |
|
protectedinherited |
◆ head_algo_
◆ head_destination_
madara::knowledge::containers::NativeDoubleArray gams::algorithms::FormationCoverage::head_destination_ |
|
protected |
◆ is_covering_
bool gams::algorithms::FormationCoverage::is_covering_ |
|
protected |
◆ knowledge_
madara::knowledge::KnowledgeBase* gams::algorithms::BaseAlgorithm::knowledge_ |
|
protectedinherited |
◆ my_formation_
◆ platform_
◆ self_
◆ sensors_
◆ status_
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: