48 #ifndef _MIRA_RESTRICTAREATASK_H_ 49 #define _MIRA_RESTRICTAREATASK_H_ 54 namespace mira {
namespace navigation {
86 RestrictAreaTask(std::vector<Polygon2f> areas,
const std::string& f =
"/GlobalFrame") :
92 template<
typename Reflector>
96 r.property(
"RestrictingAreas",
restrictingAreas,
"The areas the robot is restricted to.");
97 r.property(
"FrameID",
frameID,
"The frame the position is related to.",
"/GlobalFrame");
RestrictAreaTask()
Default constructor.
Definition: RestrictAreaTask.h:67
std::vector< Polygon2f > restrictingAreas
The restricted area.
Definition: RestrictAreaTask.h:102
#define MIRA_REFLECT_BASE(reflector, BaseClass)
RestrictAreaTask(Polygon2f area, const std::string &f="/GlobalFrame")
Creates a task that limits the movement to a polygon.
Definition: RestrictAreaTask.h:76
std::string frameID
The frame the restricted area is related to.
Definition: RestrictAreaTask.h:105
RestrictAreaTask(std::vector< Polygon2f > areas, const std::string &f="/GlobalFrame")
Creates a task that limits the movement to a union of a vector of polygons.
Definition: RestrictAreaTask.h:86
Task for restricting the permitted movement to an area.
Definition: RestrictAreaTask.h:61
Interface for sub tasks to be added to a navigation task.
Definition: Task.h:63
Base classes and interfaces for navigation tasks.
void reflect(Reflector &r)
The reflect method.
Definition: RestrictAreaTask.h:93
boost::geometry::model::ring< Point2f > Polygon2f