54 #ifndef _GAMS_VARIABLES_SWARM_H_ 55 #define _GAMS_VARIABLES_SWARM_H_ 60 #include "madara/knowledge/containers/Integer.h" 61 #include "madara/knowledge/containers/String.h" 62 #include "madara/knowledge/containers/Double.h" 63 #include "madara/knowledge/containers/Vector.h" 64 #include "madara/knowledge/containers/Map.h" 65 #include "madara/knowledge/KnowledgeBase.h" 92 void operator= (
const Swarm & agent);
99 void init_vars (madara::knowledge::KnowledgeBase & knowledge,
100 const madara::knowledge::KnowledgeRecord::Integer& swarm_size = 1);
107 void init_vars (madara::knowledge::Variables & knowledge,
108 const madara::knowledge::KnowledgeRecord::Integer& swarm_size = 1);
120 madara::knowledge::containers::Double
min_alt;
123 madara::knowledge::containers::Integer
size;
133 void init_vars (
const madara::knowledge::KnowledgeRecord::Integer& swarm_size);
143 madara::knowledge::KnowledgeBase & knowledge,
144 const madara::knowledge::KnowledgeRecord::Integer& swarm_size = 1);
153 madara::knowledge::Variables & knowledge,
154 const madara::knowledge::KnowledgeRecord::Integer& swarm_size = 1);
158 #endif // _GAMS_VARIABLES_SWARM_H_ A container for swarm information.
AccentStatuses accents
container for accents
Copyright (c) 2014 Carnegie Mellon University.
madara::knowledge::containers::Integer size
the number of agents participating in the swarm
madara::knowledge::containers::Double min_alt
minimum altitude for swarm to use
std::vector< AccentStatus > AccentStatuses
An array of accents.
madara::knowledge::containers::Map algorithm_args
number of arguments for command
GAMS_EXPORT void init_vars(AccentStatuses &variables, madara::knowledge::KnowledgeBase &knowledge, const std::string &prefix)
Initializes accent status containers.
Contains all GAMS-related tools, classes and code.
madara::knowledge::containers::String algorithm
the current command given to the swarm
madara::knowledge::containers::Integer algorithm_id
the current command given to the swarm