Add section_id to waypoints
This commit is contained in:
parent
7dcbdbefbe
commit
6c0371e4a1
|
@ -15,6 +15,7 @@ namespace std {
|
|||
WaypointHash::result_type WaypointHash::operator()(const argument_type &waypoint) const {
|
||||
WaypointHash::result_type seed = 0u;
|
||||
boost::hash_combine(seed, waypoint.road_id);
|
||||
boost::hash_combine(seed, waypoint.section_id);
|
||||
boost::hash_combine(seed, waypoint.lane_id);
|
||||
boost::hash_combine(seed, static_cast<float>(std::floor(waypoint.s * 200.0)));
|
||||
return seed;
|
||||
|
|
|
@ -19,6 +19,8 @@ namespace element {
|
|||
|
||||
RoadId road_id = 0u;
|
||||
|
||||
SectionId section_id = 0u;
|
||||
|
||||
LaneId lane_id = 0;
|
||||
|
||||
float s = 0.0f;
|
||||
|
|
Loading…
Reference in New Issue