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]);
84 Vertex::Vertex(
const Segment &_seg) : predecessors_(), successors_(), segment_(_seg), potential(-1), collision(-1), crossingPredecessor(false), crossingSuccessor(false), isWaitSegment(false)
108 if (_sortedVertices[vecId]->
getSegment().width() >= _minSegmentWidth)
110 Vertex &vRef = *(_sortedVertices[vecId].get());
125 Vertex &vRef = *(_sortedVertices[vecId]);
145 RouteVertex::RouteVertex(
const Vertex &_vertex) : segment_(_vertex.getSegment()), direction(
path_direction::none), potential(_vertex.potential), collision(_vertex.collision), overlapPredecessor(_vertex.crossingPredecessor), overlapSuccessor(_vertex.crossingSuccessor)
148 RouteVertex::RouteVertex(
const RouteVertex &_vertex) : segment_(_vertex.getSegment()), direction(_vertex.direction), potential(_vertex.potential), collision(_vertex.collision), overlapPredecessor(_vertex.overlapPredecessor), overlapSuccessor(_vertex.overlapSuccessor)