Class Segment2D

Class Documentation

class Segment2D

Public Functions

inline Segment2D()
inline Segment2D(int new_id, Point2D prev_point, Point2D curr_point, Point2D next_point)
inline Segment2D(const Segment2D &seg)
inline explicit Segment2D(const slg_msgs::msg::Segment &segment_msg)
inline ~Segment2D()
inline int size() const
inline bool empty() const
inline void clear()
inline double width() const
inline double width_squared() const
inline Point2D first_point() const
inline Point2D last_point() const
inline Point2D vector() const
inline double min_angle() const
inline double max_angle() const
inline double mean_angle() const
inline int get_id() const
inline Label get_label() const
inline std::vector<Point2D> get_points() const
inline Point2D get_prior_segment() const
inline Point2D get_next_segment() const
inline Point2D get_last_centroid() const
inline double get_angular_distance_to_closest_boundary() const
inline void set_id(int new_id)
inline void set_label(Label new_label)
inline void set_prior_segment(Point2D point)
inline void set_next_segment(Point2D point)
inline void set_last_centroid(Point2D point)
inline void set_angular_distance_to_closest_boundary(double angle)
inline double orientation()
inline Point2D projection(const Point2D &p) const
inline double distance_to(const Point2D &p) const
inline Point2D centroid() const
inline double height() const
inline void add_point(Point2D point)
inline void add_points(std::vector<Point2D> newPoints)
inline void merge(Segment2D seg)
inline Segment2D left_split(int index)
inline Segment2D right_split(int index)
inline operator slg_msgs::msg::Segment() const
inline Segment2D &operator=(const Segment2D &seg)
inline Segment2D &operator=(const slg_msgs::msg::Segment &segment_msg)

Friends

inline friend bool operator==(const Segment2D &s1, const Segment2D &s2)
inline friend bool operator!=(const Segment2D &s1, const Segment2D &s2)