An algorithm for patrolling a region.
More...
#include <PerimeterPatrol.h>
An algorithm for patrolling a region.
Definition at line 78 of file PerimeterPatrol.h.
◆ PerimeterPatrol()
Constructor.
- Parameters
-
| area | the region or search area to patrol |
| max_time | the max time to run in secs(-1 for indefinite) |
| counter | indicates if patrol should be counter clockwise |
| 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 |
| agents | variables referencing agents |
◆ ~PerimeterPatrol()
| gams::algorithms::PerimeterPatrol::~PerimeterPatrol |
( |
| ) |
|
◆ analyze()
| virtual int gams::algorithms::PerimeterPatrol::analyze |
( |
void |
| ) |
|
|
virtual |
◆ execute()
| virtual int gams::algorithms::PerimeterPatrol::execute |
( |
void |
| ) |
|
|
virtual |
◆ generate_locations()
| void gams::algorithms::PerimeterPatrol::generate_locations |
( |
void |
| ) |
|
|
protected |
Generates locations from region information.
◆ 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.
◆ operator=()
| void gams::algorithms::PerimeterPatrol::operator= |
( |
const PerimeterPatrol & |
rhs | ) |
|
Assignment operator.
- Parameters
-
◆ plan()
| virtual int gams::algorithms::PerimeterPatrol::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.
◆ area_
| std::string gams::algorithms::PerimeterPatrol::area_ |
|
protected |
◆ counter_
| bool gams::algorithms::PerimeterPatrol::counter_ |
|
protected |
◆ enforcer_
| madara::utility::EpochEnforcer<std::chrono::steady_clock> gams::algorithms::PerimeterPatrol::enforcer_ |
|
protected |
◆ executions_
| unsigned int gams::algorithms::BaseAlgorithm::executions_ |
|
protectedinherited |
◆ initialized_
| bool gams::algorithms::PerimeterPatrol::initialized_ |
|
protected |
indicates whether or not generate_locations has been succeeded
Definition at line 154 of file PerimeterPatrol.h.
◆ knowledge_
| madara::knowledge::KnowledgeBase* gams::algorithms::BaseAlgorithm::knowledge_ |
|
protectedinherited |
◆ locations_
| std::vector<pose::Position> gams::algorithms::PerimeterPatrol::locations_ |
|
protected |
◆ max_time_
| double gams::algorithms::PerimeterPatrol::max_time_ |
|
protected |
◆ move_index_
| size_t gams::algorithms::PerimeterPatrol::move_index_ |
|
protected |
◆ platform_
◆ self_
◆ sensors_
◆ status_
provides access to status information for this platform
Definition at line 219 of file BaseAlgorithm.h.
The documentation for this class was generated from the following file: