#include <Spell.h>
|
| Spell (const std::string &group, std::string text, pose::Pose origin, double height, double width, double buffer, const std::string &barrier, madara::knowledge::KnowledgeBase *knowledge=0, platforms::BasePlatform *platform=0, variables::Sensors *sensors=0, variables::Self *self=0) |
| Constructor. 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...
|
|
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...
|
|
Definition at line 78 of file Spell.h.
◆ Spell()
gams::algorithms::Spell::Spell |
( |
const std::string & |
group, |
|
|
std::string |
text, |
|
|
pose::Pose |
origin, |
|
|
double |
height, |
|
|
double |
width, |
|
|
double |
buffer, |
|
|
const std::string & |
barrier, |
|
|
madara::knowledge::KnowledgeBase * |
knowledge = 0 , |
|
|
platforms::BasePlatform * |
platform = 0 , |
|
|
variables::Sensors * |
sensors = 0 , |
|
|
variables::Self * |
self = 0 |
|
) |
| |
Constructor.
- Parameters
-
group | group name of agents to use. Agents drawn from list in-order, 3 per character |
text | text to form |
origin | location of upper left corner of first letter; rotation portion deterimines direction: Z-axis points upwards, normal to plane of text X-axis is direction letters flow towards |
height | height of letters(in meters) |
width | width of letters(in width; all are fixed-width) |
buffer | distance between letters |
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 |
◆ analyze()
virtual int gams::algorithms::Spell::analyze |
( |
void |
| ) |
|
|
virtual |
◆ execute()
virtual int gams::algorithms::Spell::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.
◆ plan()
virtual int gams::algorithms::Spell::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.
◆ barrier_
madara::knowledge::containers::Barrier gams::algorithms::Spell::barrier_ |
|
protected |
a barrier between all agents before steps can proceed
Definition at line 162 of file Spell.h.
◆ buffer_
double gams::algorithms::Spell::buffer_ |
|
protected |
the expected buffer between letters in meters
Definition at line 150 of file Spell.h.
◆ count_
int gams::algorithms::Spell::count_ |
|
protected |
◆ executions_
unsigned int gams::algorithms::BaseAlgorithm::executions_ |
|
protectedinherited |
◆ group_
the group that the user wishes the algorithm to use
Definition at line 135 of file Spell.h.
◆ group_factory_
factory for interacting with user-defined groups
Definition at line 132 of file Spell.h.
◆ group_members_
a convenience list of all current group members
Definition at line 138 of file Spell.h.
◆ height_
double gams::algorithms::Spell::height_ |
|
protected |
the height of the letters to spell in meters
Definition at line 144 of file Spell.h.
◆ index_
int gams::algorithms::Spell::index_ |
|
protected |
the index of the agent in the member list
Definition at line 153 of file Spell.h.
◆ knowledge_
madara::knowledge::KnowledgeBase* gams::algorithms::BaseAlgorithm::knowledge_ |
|
protectedinherited |
◆ next_pos_
the next position to go to
Definition at line 156 of file Spell.h.
◆ node_
int gams::algorithms::Spell::node_ |
|
protected |
◆ origin_
the origin of the spelled word/phrase
Definition at line 141 of file Spell.h.
◆ platform_
◆ self_
◆ sensors_
◆ status_
provides access to status information for this platform
Definition at line 219 of file BaseAlgorithm.h.
◆ step_
size_t gams::algorithms::Spell::step_ |
|
protected |
the step count in the waypoint list
Definition at line 159 of file Spell.h.
◆ text_
std::string gams::algorithms::Spell::text_ |
|
protected |
◆ width_
double gams::algorithms::Spell::width_ |
|
protected |
the width of the letters to spell in meters
Definition at line 147 of file Spell.h.
The documentation for this class was generated from the following file: