CARLA
Public Types | Public Member Functions | List of all members
std::hash< carla::road::element::Waypoint > Struct Template Reference

#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...
 

Detailed Description

template<>
struct std::hash< carla::road::element::Waypoint >

Definition at line 36 of file road/element/Waypoint.h.

Member Typedef Documentation

◆ argument_type

Definition at line 38 of file road/element/Waypoint.h.

◆ result_type

using std::hash< carla::road::element::Waypoint >::result_type = uint64_t

Definition at line 40 of file road/element/Waypoint.h.

Member Function Documentation

◆ operator()()

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.


The documentation for this struct was generated from the following files: