35 Segment::Segment(
const uint32_t &_id,
const std::vector<Eigen::Vector2d> &_points,
const std::vector<uint32_t> &_successors,
const std::vector<uint32_t> &_predecessors,
const float &_width) : points_(_points),
36 successors_(_successors),
37 predecessors_(_predecessors)
41 Eigen::Vector2d p = (_points.back() - _points.front());
42 length_ = sqrt(p[0] * p[0] + p[1] * p[1]);
110 Vertex &vRef = *(_sortedVertices[vecId].get());
125 Vertex &vRef = *(_sortedVertices[vecId]);
std::vector< uint32_t > predecessors_
uint32_t getSegmentId() const
Segment(const uint32_t &_id, const std::vector< Eigen::Vector2d > &_points, const std::vector< uint32_t > &_successors, const std::vector< uint32_t > &_predecessors, const float &_width)
std::vector< Eigen::Vector2d > points_
const std::vector< std::reference_wrapper< Vertex > > & getPlanningPredecessors() const
const std::vector< std::reference_wrapper< Vertex > > & getPlanningSuccessors() const
void initNeighbours(std::vector< std::unique_ptr< Vertex >> &_sortedVertices, const uint32_t _minSegmentWidth=0)
std::vector< std::reference_wrapper< Vertex > > successors_
std::vector< std::reference_wrapper< Vertex > > predecessors_
void updateVertex(const Vertex &_v)
std::vector< uint32_t > successors_
RouteVertex(const Vertex &_vertex)
const Eigen::Vector2d & getEnd() const
const Segment & getSegment() const
const std::vector< Eigen::Vector2d > & getPoints() const
const std::vector< uint32_t > & getSuccessors() const
const Eigen::Vector2d & getStart() const
const Segment & getSegment() const
const std::vector< uint32_t > & getPredecessors() const
Vertex(const Segment &_seg)