A factory class for creating Formation Flying algorithms.
More...
#include <FormationFlying.h>
A factory class for creating Formation Flying algorithms.
Definition at line 212 of file FormationFlying.h.
◆ create()
Creates a Formation Flying Algorithm.
- Parameters
-
args | args[0] = the target of the formation args[1] = the cylindrical offset from the target args[2] = the destination of the movement args[3] = the number of members in the formation args[4] = a modifier on the formation (NONE or ROTATE) |
knowledge | the knowledge base to use |
platform | the platform. This will be set by the controller in init_vars. |
sensors | the sensor info. This will be set by the controller in init_vars. |
self | self-referencing variables. This will be set by the controller in init_vars |
agents | the list of agents, which is dictated by init_vars when a number of processes is set. This will be set by the controller in init_vars |
Implements gams::algorithms::AlgorithmFactory.
◆ set_agents()
Sets list of agents participating in swarm.
- Parameters
-
agents | agents in the swarm |
◆ set_knowledge()
void gams::algorithms::AlgorithmFactory::set_knowledge |
( |
madara::knowledge::KnowledgeBase * |
knowledge | ) |
|
|
inherited |
Sets the knowledge base.
- Parameters
-
knowledge | the knowledge base to use |
◆ set_platform()
Sets the map of platform names to platform information.
- Parameters
-
platform | the platform to use |
◆ set_self()
void gams::algorithms::AlgorithmFactory::set_self |
( |
variables::Self * |
self | ) |
|
|
inherited |
Sets self-referencing variables.
- Parameters
-
self | self-referencing variables |
◆ set_sensors()
Sets the map of sensor names to sensor information.
- Parameters
-
sensors | map of sensor names to sensor information |
◆ agents_
◆ knowledge_
madara::knowledge::KnowledgeBase* gams::algorithms::AlgorithmFactory::knowledge_ |
|
protectedinherited |
◆ platform_
◆ self_
◆ sensors_
The documentation for this class was generated from the following file: