#include <Road.h>
Public 成员函数 | |
element::DirectedPoint | GetDirectedPointIn (const double s) const |
返回指定距离的中心点(车道 0)的导向点 | |
element::DirectedPoint | GetDirectedPointInNoLaneOffset (const double s) const |
返回指定距离的中心点(车道 0)的导向点,不考虑车道偏移 | |
const geom::CubicPolynomial & | GetElevationOn (const double s) const |
LaneSection * | GetEndSection (LaneId id) |
获取给定车道 ID 的结束车道段 | |
RoadId | GetId () const |
template<typename T > | |
const T * | GetInfo (const double s) const |
template<typename T > | |
std::vector< const T * > | GetInfos () const |
template<typename T > | |
std::vector< const T * > | GetInfosInRange (const double min_s, const double max_s) const |
JuncId | GetJunctionId () const |
Lane & | GetLaneByDistance (double s, LaneId lane_id) |
const Lane & | GetLaneByDistance (double s, LaneId lane_id) const |
Lane & | GetLaneById (SectionId section_id, LaneId lane_id) |
const Lane & | GetLaneById (SectionId section_id, LaneId lane_id) const |
std::map< LaneId, const Lane * > | GetLanesAt (const double s) const |
获取在给定 s 位置的所有车道 | |
std::vector< Lane * > | GetLanesByDistance (double s) |
在特定的 s 值获取所有车道 | |
std::vector< const Lane * > | GetLanesByDistance (double s) const |
LaneSection & | GetLaneSectionById (SectionId id) |
const LaneSection & | GetLaneSectionById (SectionId id) const |
auto | GetLaneSections () const |
auto | GetLaneSectionsAt (const double s) |
auto | GetLaneSectionsAt (const double s) const |
double | GetLength () const |
const MapData * | GetMap () const |
std::string | GetName () const |
const std::pair< const Lane *, double > | GetNearestLane (const double s, const geom::Location &loc, uint32_t type=static_cast< uint32_t >(Lane::LaneType::Any)) const |
返回最近的车道指针,给定相对于路段的 s 值和位置 | |
const std::pair< double, double > | GetNearestPoint (const geom::Location &loc) const |
返回一个包含以下内容的对: | |
Lane * | GetNextLane (const double s, const LaneId lane_id) |
std::vector< Road * > | GetNexts () const |
RoadId | GetPredecessor () const |
Lane * | GetPrevLane (const double s, const LaneId lane_id) |
std::vector< Road * > | GetPrevs () const |
LaneSection * | GetStartSection (LaneId id) |
获取给定车道 ID 的起始车道段 | |
RoadId | GetSuccessor () const |
bool | IsJunction () const |
Road ()=default | |
double | UpperBound (double s) const |
返回上限 s,即给定 s 位置的车道段结束距离(限制在路段长度内)。 | |
静态 Private 成员函数 | |
template<typename MultiMapT > | |
static auto | GetLessEqualRange (MultiMapT &map, double s) |
Private 属性 | |
RoadId | _id { 0 } |
InformationSet | _info |
bool | _is_junction { false } |
JuncId | _junction_id { -1 } |
LaneSectionMap | _lane_sections |
double | _length { 0.0 } |
MapData * | _map_data { nullptr } |
std::string | _name |
std::vector< Road * > | _nexts |
RoadId | _predecessor { 0 } |
std::vector< Road * > | _prevs |
RoadId | _successor { 0 } |
friend | MapBuilder |
额外继承的成员函数 | |
![]() | |
MovableNonCopyable ()=default | |
MovableNonCopyable (const MovableNonCopyable &)=delete | |
MovableNonCopyable (MovableNonCopyable &&)=default | |
MovableNonCopyable & | operator= (const MovableNonCopyable &)=delete |
MovableNonCopyable & | operator= (MovableNonCopyable &&)=default |
|
default |
element::DirectedPoint carla::road::Road::GetDirectedPointIn | ( | const double | s | ) | const |
返回指定距离的中心点(车道 0)的导向点
s | 距离路段的距离来计算点 |
被这些函数引用 carla::geom::MeshFactory::GenerateLaneMarksForCenterLine().
element::DirectedPoint carla::road::Road::GetDirectedPointInNoLaneOffset | ( | const double | s | ) | const |
返回指定距离的中心点(车道 0)的导向点,不考虑车道偏移
s | 距离路段的距离来计算点 |
const geom::CubicPolynomial & carla::road::Road::GetElevationOn | ( | const double | s | ) | const |
LaneSection * carla::road::Road::GetEndSection | ( | LaneId | id | ) |
获取给定车道 ID 的结束车道段
RoadId carla::road::Road::GetId | ( | ) | const |
|
inline |
|
inline |
|
inline |
JuncId carla::road::Road::GetJunctionId | ( | ) | const |
获取在给定 s 位置的所有车道
std::vector< Lane * > carla::road::Road::GetLanesByDistance | ( | double | s | ) |
在特定的 s 值获取所有车道
std::vector< const Lane * > carla::road::Road::GetLanesByDistance | ( | double | s | ) | const |
|
inline |
|
inline |
|
inline |
引用了 _lane_sections, carla::iterator::make_map_values_const_iterator() , 以及 carla::MakeListView().
被这些函数引用 carla::geom::MeshFactory::Generate(), carla::geom::MeshFactory::GenerateOrderedWithMaxLen(), carla::geom::MeshFactory::GenerateWallsWithMaxLen() , 以及 carla::geom::MeshFactory::GenerateWithMaxLen().
|
inline |
|
inline |
double carla::road::Road::GetLength | ( | ) | const |
|
inlinestaticprivate |
const MapData * carla::road::Road::GetMap | ( | ) | const |
std::string carla::road::Road::GetName | ( | ) | const |
const std::pair< const Lane *, double > carla::road::Road::GetNearestLane | ( | const double | s, |
const geom::Location & | loc, | ||
uint32_t | type = static_cast< uint32_t >(Lane::LaneType::Any) ) const |
返回最近的车道指针,给定相对于路段的 s 值和位置
dist | 从路段起点到要计算的点的距离 |
loc | 要计算距离的点 |
const std::pair< double, double > carla::road::Road::GetNearestPoint | ( | const geom::Location & | loc | ) | const |
返回一个包含以下内容的对:
loc | 要计算距离的点 |
std::vector< Road * > carla::road::Road::GetNexts | ( | ) | const |
RoadId carla::road::Road::GetPredecessor | ( | ) | const |
std::vector< Road * > carla::road::Road::GetPrevs | ( | ) | const |
LaneSection * carla::road::Road::GetStartSection | ( | LaneId | id | ) |
获取给定车道 ID 的起始车道段
RoadId carla::road::Road::GetSuccessor | ( | ) | const |
bool carla::road::Road::IsJunction | ( | ) | const |
|
inline |
|
private |
被这些函数引用 GetInfo(), GetInfos() , 以及 GetInfosInRange().
|
private |
|
private |
被这些函数引用 UpperBound().