54 #ifndef _GAMS_ALGORITHMS_FOLLOW_H_ 55 #define _GAMS_ALGORITHMS_FOLLOW_H_ 87 const std::string & target,
88 const std::vector <double> & offset,
89 madara::knowledge::KnowledgeBase * knowledge = 0,
103 void operator= (
const Follow & rhs);
109 virtual int analyze (
void);
115 virtual int execute (
void);
121 virtual int plan (
void);
184 const madara::knowledge::KnowledgeMap & args,
185 madara::knowledge::KnowledgeBase * knowledge,
194 #endif // _GAMS_ALGORITHMS_FOLLOW_H_ Base class for algorithm factories that classes derived from.
variables::Agent target_
location of agent to follow
Copyright (c) 2014 Carnegie Mellon University.
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
pose::Position last_location_
keep track of last location
Copyright (c) 2014 Carnegie Mellon University.
std::vector< Agent > Agents
An array of agent knowledge.
pose::Position target_location_
current target location shared between analyze and execute
bool need_move_
flag between analyze and execute indicating new move is necessary
pose::Position target_destination_
current target location shared between analyze and execute
pose::Position target_last_location_
keep track of last leader/target location
bool had_valid_dest_orientation_
keep track of whether we had previously calculated target orient
Copyright (c) 2014 Carnegie Mellon University.
pose::Orientation target_orientation_
keep track of the target orientation
std::vector< double > minimum_buffer_
keep track of the minimum_buffer that should be maintained
gams::pose::Orientation last_dest_orientation
last valid destination based orientation
A factory class for creating Follow Algorithms.
Contains all GAMS-related tools, classes and code.
A container for self referencing information.
A container for agent information.
The base class that algorithms in GAMS use.
Copyright (c) 2014 Carnegie Mellon University.
std::vector< double > offset_
keep track of the offset that agent should be at
An algorithm for following a target.
pose::Position last_target_destination_
current target location shared between analyze and execute