#include <Waypoint.h>
Public Types | |
using | argument_type = carla::road::element::Waypoint |
using | result_type = uint64_t |
Public Member Functions | |
result_type | operator() (const argument_type &waypoint) const |
Generates an unique id for waypoint based on its road_id, lane_id, section_id, and "s" offset. More... | |
Definition at line 36 of file road/element/Waypoint.h.
using std::hash< carla::road::element::Waypoint >::argument_type = carla::road::element::Waypoint |
Definition at line 38 of file road/element/Waypoint.h.
using std::hash< carla::road::element::Waypoint >::result_type = uint64_t |
Definition at line 40 of file road/element/Waypoint.h.
WaypointHash::result_type std::WaypointHash::operator() | ( | const argument_type & | waypoint | ) | const |
Generates an unique id for waypoint based on its road_id, lane_id, section_id, and "s" offset.
The "s" offset is truncated to half centimetre precision.
Definition at line 15 of file road/element/Waypoint.cpp.
References carla::road::element::Waypoint::lane_id, carla::road::element::Waypoint::road_id, carla::road::element::Waypoint::s, and carla::road::element::Waypoint::section_id.