38 std::string horizontal_frame_;
39 std::string vertical_frame_;
41 std::set<Subscriber*> subscribers_;
43 void notifySubscribers();
44 void cleanSubscribers();
48 Prism() : polygon_(), min_z_(0.0), max_z_(0.0), horizontal_frame_(
"world_origin"), vertical_frame_(
"world_origin")
53 Prism(
const std::vector<Point2d>& points,
const double max_z,
const double min_z);
55 Prism(
const std::vector<Point2d>& points,
const double max_z,
const double min_z,
const std::string& horizontal_frame,
const std::string& vertical_frame);
62 polygon_ = other.polygon_;
63 min_z_ = other.min_z_;
64 max_z_ = other.max_z_;
65 horizontal_frame_ = other.horizontal_frame_;
66 vertical_frame_ = other.vertical_frame_;
74 : polygon_(other.polygon_), min_z_(other.min_z_), max_z_(other.max_z_), horizontal_frame_(other.horizontal_frame_),
75 vertical_frame_(other.vertical_frame_), subscribers_()
81 : polygon_(std::move(other.polygon_)), min_z_(other.min_z_), max_z_(other.max_z_), horizontal_frame_(other.horizontal_frame_),
82 vertical_frame_(other.vertical_frame_), subscribers_(std::move(other.subscribers_))
91 polygon_ = std::move(other.polygon_);
92 min_z_ = other.min_z_;
93 max_z_ = other.max_z_;
94 horizontal_frame_ = other.horizontal_frame_;
95 vertical_frame_ = other.vertical_frame_;
96 subscribers_ = std::move(other.subscribers_);
106 std::vector<Point2d> getPoints();
107 double getMaxZ()
const;
108 double getMinZ()
const;
109 std::string getHorizontalFrame()
const;
112 Polygon2D getPolygon()
const;
115 unsigned int getNumVertices()
const;
118 Point2d getCenter()
const;
120 void setMaxZ(
const double value);
122 void setMinZ(
const double value);
127 bool setVertex(
const Point2d& vertex,
const unsigned int index);
133 bool setVertices(
const std::vector<Point2d>& vertices,
const std::vector<unsigned int>& indices);
136 void addVertexClockwise(
const unsigned int index);
139 void addVertexCounterclockwise(
const unsigned int index);
141 void move(
const Point3d& adjustment);
144 void rotate(
const double alpha);
147 void deleteVertex(
const unsigned int index);
150 bool isPointIn(
const Point3d& point)
const;
153 bool isPointIn(
const double x,
const double y,
const double z)
const;
156 bool isPointIn(
const Point2d& point)
const;
159 bool isPointIn(
const double x,
const double y)
const;
All mrs_lib functions, classes, variables and definitions are contained in this namespace.
Definition attitude_converter.h:24