46 Crossing(
const std::vector<Eigen::Vector2d> &_segment_points);
71 #endif // PLANNER_NODE_H
Crossing(const std::vector< Eigen::Vector2d > &_segment_points)
constructor
Eigen::Vector2d getCenter() const
returns the center of the crossing (average of all pts)
void setSegmentReference(const std::shared_ptr< std::vector< Segment >> &segs)
saves the reference to the vector containing all segments to have access to them to alter other segme...
std::shared_ptr< std::vector< Segment > > segmentReference_
std::vector< uint32_t > segments_end_
bool tryAddSegment(Segment &_seg)
tries to add the segment to the crossing and adds the given segment to each segments neighbors in the...
std::vector< uint32_t > segments_start_
std::vector< Eigen::Vector2d > surroundingPoints_