Skip to content

停车场 Parking


GetParkingSpaceList

void GetParkingSpaceList(SSD::SimVector< HDMapStandalone::MParkingSpace > &parkingSpaceList)

获取地图中停车位列表
Get a list of parking spaces in the map.

Parameters:

名称 类型 说明
parkingSpaceList SSD::SimVector< HDMapStandalone::MParkingSpace > & 地图中停车位列表
List of parking spaces in the map.

GetParkingSpaceIds

bool GetParkingSpaceIds(const SSD::SimPoint3D &inputPt, double distance, SSD::SimStringVector &ids)

获取地图中指定点前方一定距离内的停车位列表
Get a list of parking spaces located ahead of a specified point in the map, within a certain distance.

Parameters:

名称 类型 说明
inputPt const SSD::SimPoint3D & 输入的3D位置
Input 3D location.
distance double 检测范围的距离
Input range distance.
ids SSD::SimStringVector & 前方一定距离内的停车位列表
List of parking spaces within the specified distance.

Returns:

类型 说明
bool 如果存在,则返回true,否则返回false
Returns true if parking spaces exist within the range, else returns false.