|
GAMS
1.2.2
|
A container for agent information. More...
#include <Agent.h>
Public Member Functions | |
| Agent () | |
| Constructor. More... | |
| ~Agent () | |
| Destructor. More... | |
| void | init_vars (madara::knowledge::KnowledgeBase &knowledge, const std::string &prefix) |
| Initializes variable containers. More... | |
| void | init_vars (madara::knowledge::KnowledgeBase &knowledge, const madara::knowledge::KnowledgeRecord::Integer &id) |
| Initializes variable containers. More... | |
| void | init_vars (madara::knowledge::Variables &knowledge, const madara::knowledge::KnowledgeRecord::Integer &id) |
| Initializes variable containers. More... | |
| void | operator= (const Agent &agent) |
| Assignment operator. More... | |
Static Public Member Functions | |
| static bool | is_agent (madara::knowledge::KnowledgeBase &knowledge, const std::string prefix) |
| Checks if the prefix points to an agent in the knowledge base. More... | |
Public Attributes | |
| madara::knowledge::containers::NativeDoubleArray | acceleration |
| the acceleration vector of the platform More... | |
| AccentStatuses | accents |
| container for accents More... | |
| madara::knowledge::containers::String | algorithm |
| agent specific command More... | |
| madara::knowledge::containers::Integer | algorithm_accepts |
| number of algorithm accepts / changes More... | |
| madara::knowledge::containers::Map | algorithm_args |
| arguments for algorithm More... | |
| madara::knowledge::containers::Integer | algorithm_changed |
| agent specific command has changed More... | |
| madara::knowledge::containers::Integer | algorithm_id |
| the algorithm id (useful if algorithm requests may need to be resent) More... | |
| madara::knowledge::containers::Integer | algorithm_rejects |
| number of algorithm rejections (bad name or id) More... | |
| madara::knowledge::containers::Integer | battery_remaining |
| the battery indicator for this agent More... | |
| madara::knowledge::containers::Integer | bridge_id |
| indicator for whether or not the agent is busy with a mission More... | |
| madara::knowledge::containers::String | coverage_type |
| agent specific command More... | |
| madara::knowledge::containers::Double | desired_altitude |
| desired altitude in meters More... | |
| madara::knowledge::containers::NativeDoubleArray | dest |
| the destination location More... | |
| madara::knowledge::containers::NativeDoubleArray | dest_orientation |
| the destination orientation More... | |
| madara::knowledge::containers::Integer | gams_debug_level |
| the GAMS debug level More... | |
| madara::knowledge::containers::NativeDoubleArray | home |
| the home location More... | |
| madara::knowledge::containers::Integer | is_mobile |
| the mobility indicator for this agent (true if mobile) More... | |
| madara::knowledge::containers::String | last_algorithm |
| Last command. More... | |
| madara::knowledge::containers::Map | last_algorithm_args |
| Last command args. More... | |
| madara::knowledge::containers::Integer | last_algorithm_id |
| Last command. More... | |
| madara::knowledge::containers::NativeDoubleArray | location |
| the location, usually encoded in GPS, for this agent More... | |
| madara::knowledge::containers::Double | loop_hz |
| the rate to process the algorithm and platform MAPE loop More... | |
| madara::knowledge::containers::Integer | madara_debug_level |
| the MADARA debug level More... | |
| madara::knowledge::containers::Double | min_alt |
| the minimum altitude for this agent More... | |
| madara::knowledge::containers::String | next_coverage_type |
| indicator for next type of area coverage requested (queue like) More... | |
| madara::knowledge::containers::NativeDoubleArray | orientation |
| the angle for this device (roll, pitch, yaw) More... | |
| std::string | prefix |
| the prefix for this agent More... | |
| madara::knowledge::containers::Integer | search_area_id |
| indicator for next assigned search area id More... | |
| madara::knowledge::containers::Double | send_hz |
| the rate to send messages More... | |
| madara::knowledge::containers::NativeDoubleArray | source |
| the source location More... | |
| madara::knowledge::containers::NativeDoubleArray | source_orientation |
| the source angle More... | |
| madara::knowledge::containers::Double | temperature |
| indicator for temperature More... | |
| madara::knowledge::containers::NativeDoubleArray | velocity |
| the velocity vector of the platform More... | |
Protected Member Functions | |
| void | init_variable_settings () |
| Set variable settings. More... | |
Static Protected Member Functions | |
| static std::string | make_variable_name (const madara::knowledge::KnowledgeRecord::Integer &id) |
| Create agent/local agent name. More... | |
| gams::variables::Agent::Agent | ( | ) |
Constructor.
| gams::variables::Agent::~Agent | ( | ) |
Destructor.
|
protected |
Set variable settings.
| void gams::variables::Agent::init_vars | ( | madara::knowledge::KnowledgeBase & | knowledge, |
| const std::string & | prefix | ||
| ) |
Initializes variable containers.
| knowledge | the variable context |
| prefix | the prefix of the agent in the knowledge base |
| void gams::variables::Agent::init_vars | ( | madara::knowledge::KnowledgeBase & | knowledge, |
| const madara::knowledge::KnowledgeRecord::Integer & | id | ||
| ) |
Initializes variable containers.
| knowledge | the variable context |
| id | node identifier |
| void gams::variables::Agent::init_vars | ( | madara::knowledge::Variables & | knowledge, |
| const madara::knowledge::KnowledgeRecord::Integer & | id | ||
| ) |
Initializes variable containers.
| knowledge | the variable context |
| id | node identifier |
|
static |
Checks if the prefix points to an agent in the knowledge base.
This is a simple check that looks for prefix.location being set.
|
staticprotected |
Create agent/local agent name.
| id | id of agent as string |
| void gams::variables::Agent::operator= | ( | const Agent & | agent | ) |
Assignment operator.
| agent | agent to copy |
| madara::knowledge::containers::NativeDoubleArray gams::variables::Agent::acceleration |
| AccentStatuses gams::variables::Agent::accents |
| madara::knowledge::containers::String gams::variables::Agent::algorithm |
| madara::knowledge::containers::Integer gams::variables::Agent::algorithm_accepts |
| madara::knowledge::containers::Map gams::variables::Agent::algorithm_args |
| madara::knowledge::containers::Integer gams::variables::Agent::algorithm_changed |
| madara::knowledge::containers::Integer gams::variables::Agent::algorithm_id |
| madara::knowledge::containers::Integer gams::variables::Agent::algorithm_rejects |
| madara::knowledge::containers::Integer gams::variables::Agent::battery_remaining |
| madara::knowledge::containers::Integer gams::variables::Agent::bridge_id |
| madara::knowledge::containers::String gams::variables::Agent::coverage_type |
| madara::knowledge::containers::Double gams::variables::Agent::desired_altitude |
| madara::knowledge::containers::NativeDoubleArray gams::variables::Agent::dest |
| madara::knowledge::containers::NativeDoubleArray gams::variables::Agent::dest_orientation |
| madara::knowledge::containers::Integer gams::variables::Agent::gams_debug_level |
| madara::knowledge::containers::NativeDoubleArray gams::variables::Agent::home |
| madara::knowledge::containers::Integer gams::variables::Agent::is_mobile |
| madara::knowledge::containers::String gams::variables::Agent::last_algorithm |
| madara::knowledge::containers::Map gams::variables::Agent::last_algorithm_args |
| madara::knowledge::containers::Integer gams::variables::Agent::last_algorithm_id |
| madara::knowledge::containers::NativeDoubleArray gams::variables::Agent::location |
| madara::knowledge::containers::Double gams::variables::Agent::loop_hz |
| madara::knowledge::containers::Integer gams::variables::Agent::madara_debug_level |
| madara::knowledge::containers::Double gams::variables::Agent::min_alt |
| madara::knowledge::containers::String gams::variables::Agent::next_coverage_type |
| madara::knowledge::containers::NativeDoubleArray gams::variables::Agent::orientation |
| std::string gams::variables::Agent::prefix |
| madara::knowledge::containers::Integer gams::variables::Agent::search_area_id |
| madara::knowledge::containers::Double gams::variables::Agent::send_hz |
| madara::knowledge::containers::NativeDoubleArray gams::variables::Agent::source |
| madara::knowledge::containers::NativeDoubleArray gams::variables::Agent::source_orientation |
| madara::knowledge::containers::Double gams::variables::Agent::temperature |
| madara::knowledge::containers::NativeDoubleArray gams::variables::Agent::velocity |