路口与信号 Junction & Signals¶
GetJunctionList¶
void GetJunctionList(SSD::SimVector< SSD::SimString > &juncList)
获取所有交叉路口ID列表
Get a list of all Junction IDs.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
juncList |
SSD::SimVector< SSD::SimString > & |
返回所有的junction id juncList returns all junction IDs. |
GetJunction¶
void GetJunction(const long &junctionId, HDMapStandalone::MJunction &junction)
获取指定十字路口的详细信息
Get detailed information about the specified intersection.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
junctionId |
const long & |
输入的十字路口ID Input junction ID. |
junction |
HDMapStandalone::MJunction & |
指定十字路口的详细信息,格式为MJunction Junction detail information as MJunction. |
GetNextJunction¶
void GetNextJunction(const SSD::SimPoint3D &inputPt, SSD::SimString &junctionName)
获取下一个路口
Get the next junction.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
inputPt |
const SSD::SimPoint3D & |
当前点的坐标 The coordinates of the current point. |
junctionName |
SSD::SimString & |
路口的名称 The name of the junction. |
GetNextJunctionLights¶
bool GetNextJunctionLights(const SSD::SimString &laneName, SSD::SimString &juncId, SSD::SimVector< HDMapStandalone::MSignal > &lights, SSD::SimVector< SSD::SimVector< int > > &validityIndexList)
获取下一个路口的信号灯信息
Get the traffic light information at the next junction.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
laneName |
const SSD::SimString & |
车道的名称 The name of the lane. |
juncId |
SSD::SimString & |
路口的ID The ID of the junction. |
lights |
SSD::SimVector< HDMapStandalone::MSignal > & |
信号灯信息 The traffic light information. |
validityIndexList |
SSD::SimVector< SSD::SimVector< int > > & |
有效性信息 The validity information. |
Returns:
| 类型 | 说明 |
|---|---|
bool |
— |
GetJunctionCenter¶
void GetJunctionCenter(const SSD::SimString &junctionId, SSD::SimPoint3D &pos)
获取路口中心点的坐标
Get the coordinates of the center point of the junction.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
junctionId |
const SSD::SimString & |
路口的ID The ID of the junction. |
pos |
SSD::SimPoint3D & |
中心点的3D坐标 The 3D coordinates of the center point. |
GetTrafficLightList¶
void GetTrafficLightList(SSD::SimVector< HDMapStandalone::MSignal > &list)
获取地图中信号灯列表
Get a list of traffic signals in the map.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
list |
SSD::SimVector< HDMapStandalone::MSignal > & |
地图中信号灯对象列表 List of traffic signal objects in the map. |
GetTrafficSignList¶
void GetTrafficSignList(SSD::SimVector< HDMapStandalone::MSignal > &list)
获取地图中交通标志列表
Get a list of traffic signs in the map.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
list |
SSD::SimVector< HDMapStandalone::MSignal > & |
地图中交通标志对象列表 List of traffic sign objects in the map. |
GetStoplineList¶
void GetStoplineList(const HDMapStandalone::MSignal &light, const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MObject > &stoplineList)
获取交通灯给定作用车道的关联停止线列表
Get the list of stop lines associated with the traffic light for the given operating lane.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
light |
const HDMapStandalone::MSignal & |
交通灯对象 Traffic light object. |
id |
const SSD::SimString & |
输入的车道ID,格式为roadId_sectionIndex_laneId Input lane ID, formatted as roadId_sectionIndex_laneId. |
stoplineList |
SSD::SimVector< HDMapStandalone::MObject > & |
与交通灯关联的停止线列表 List of stop lines that are associated with the traffic light. |
GetCrosswalkList¶
void GetCrosswalkList(const HDMapStandalone::MSignal &light, const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MObject > &crosswalkList)
获取交通灯给定作用车道的关联人行横道线列表
Get the list of crosswalk lines associated with the traffic light for the given operating lane.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
light |
const HDMapStandalone::MSignal & |
交通灯对象 Traffic light object. |
id |
const SSD::SimString & |
输入的车道ID,格式为roadId_sectionIndex_laneId Input lane ID, formatted as roadId_sectionIndex_laneId. |
crosswalkList |
SSD::SimVector< HDMapStandalone::MObject > & |
与交通灯关联的人行横道线列表 List of crosswalks that are associated with the traffic light. |
GetCrossHatchList¶
void GetCrossHatchList(const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MObject > &crossHatchList)
获取指定车道所在道路上的网状线列表
Get the mesh lines list on the road where the specified lane is located.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
id |
const SSD::SimString & |
输入的车道ID,格式为roadId_sectionIndex_laneId Input lane ID, formatted as roadId_sectionIndex_laneId. |
crossHatchList |
SSD::SimVector< HDMapStandalone::MObject > & |
与指定车道相关的网状线列表 List of cross hatches associated with the specified lane. |
GetRoadMark¶
bool GetRoadMark(const SSD::SimPoint3D &pos, const SSD::SimString &id, HDMapStandalone::MRoadMark &left, HDMapStandalone::MRoadMark &right)
根据指定车道ID和局部坐标获取输入点左右两侧车道标线信息
Get lane marking information on both sides of the input point based on the specified lane ID and local coordinates.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
pos |
const SSD::SimPoint3D & |
输入的3D位置 Input 3D location. |
id |
const SSD::SimString & |
输入的车道ID,格式为roadId_sectionIndex_laneId Input lane ID, formatted as roadId_sectionIndex_laneId. |
left |
HDMapStandalone::MRoadMark & |
输入点左侧的车道标线 Left side roadmark at the input point. |
right |
HDMapStandalone::MRoadMark & |
输入点右侧的车道标线 Right side roadmark at the input point. |
Returns:
| 类型 | 说明 |
|---|---|
bool |
如果找到车道标线,则返回true,否则返回false Returns true if the roadmark is found, else returns false. |
GetSignalListOnLaneByType¶
void GetSignalListOnLaneByType(const SSD::SimString &laneName, const SSD::SimString &type, SSD::SimVector< HDMapStandalone::MSignal > &signalInfo)
通过信号类型获取指定道路的车道指示信息,地面标识(type="Graphics")
Get lane guidance information and ground markings (type="Graphics") for the specified road based on signal type.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
laneName |
const SSD::SimString & |
输入的车道ID,格式为roadId_sectionIndex_laneId Input lane ID, formatted as roadId_sectionIndex_laneId. |
type |
const SSD::SimString & |
信号类型字符串,如"Graphics" Signal type string, like "Graphics". |
signalInfo |
SSD::SimVector< HDMapStandalone::MSignal > & |
作为MSignal的信号信息列表 List of signal information as MSignal. |
GetSpecifiedLaneCrosswalkList¶
void GetSpecifiedLaneCrosswalkList(const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MObject > &crosswalkList)
获取给定车道的关联人行横道线列表
Get the list of crosswalk lines associated with the given lane.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
id |
const SSD::SimString & |
输入的车道ID,格式为roadId_sectionIndex_laneId Input lane ID, formatted as roadId_sectionIndex_laneId. |
crosswalkList |
SSD::SimVector< HDMapStandalone::MObject > & |
与指定车道相关联的人行横道线列表 List of crosswalks that are associated with the specified lane. |
GetSpecifiedLaneStoplineList¶
void GetSpecifiedLaneStoplineList(const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MObject > &stoplineList)
获取给定车道的关联停止线列表
Get the list of stop lines associated with the given lane.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
id |
const SSD::SimString & |
输入的车道ID,格式为roadId_sectionIndex_laneId Input lane ID, formatted as roadId_sectionIndex_laneId. |
stoplineList |
SSD::SimVector< HDMapStandalone::MObject > & |
与指定车道相关联的停止线列表 List of stop lines that are associated with the specified lane. |
GetSpecifiedLaneTrafficSignalList¶
void GetSpecifiedLaneTrafficSignalList(const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MSignal > &list)
获取地图中指定车道关联交通标志列表
Get the list of traffic signs associated with the specified lane in the map.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
id |
const SSD::SimString & |
输入的车道ID,格式为roadId_sectionIndex_laneId Input lane ID, formatted as roadId_sectionIndex_laneId. |
list |
SSD::SimVector< HDMapStandalone::MSignal > & |
与指定车道相关联的交通标志对象列表 List of traffic sign objects associated with the specified lane. |
GetSpecifiedLaneTrafficLightList¶
void GetSpecifiedLaneTrafficLightList(const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MSignal > &list)
获取指定车道绑定的信号灯列表
Get the list of traffic lights associated with the specified lane.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
id |
const SSD::SimString & |
输入的车道ID,格式为roadId_sectionIndex_laneId Input lane ID, formatted as roadId_sectionIndex_laneId. |
list |
SSD::SimVector< HDMapStandalone::MSignal > & |
与指定车道相关联的信号灯对象列表 List of traffic light objects associated with the specified lane. |