34#pragma warning(disable:4819)
35#pragma warning(disable:4190)
37#ifdef BUILD_SIMONE_API
38#if defined(WIN32) || defined(_WIN32)
39#define SIMONE_API __declspec(dllexport)
40#elif defined(__linux__) || defined(__linux)
41#define SIMONE_API __attribute__((visibility("default")))
48#include "Service/SimOneIOStruct.h"
50#include "public/common/MEnum.h"
51#include "public/common/MLaneLink.h"
52#include "public/common/MLaneInfo.h"
53#include "public/common/MRoadMark.h"
54#include "public/common/MSignal.h"
55#include "public/common/MObject.h"
56#include "public/common/MParkingSpace.h"
57#include "public/common/MRoutePath.h"
58#include "public/common/MTopoGraph.h"
59#include "public/MHDMap.h"
60#include "public/MNavigation.h"
61#include "SSD/SimPoint3D.h"
62#include "SSD/SimString.h"
63#include "SSD/SimString.h"
64#include "SSD/SimVector.h"
#define SIMONE_API
Definition SimOneEvaluationAPI.h:42
Definition SimString.h:43
Definition SimVector.h:42
SSD::SimVector< SimString > SimStringVector
Definition SimString.h:76
SimVector< SimPoint3D > SimPoint3DVector
Definition SimPoint3D.h:66
Definition SimOneControlTransAPI.h:20
SIMONE_API double GetRoadLength(const long &roadId)
获取道路长度 Get the length of the road.
SIMONE_API bool GetNearLanesWithAngle(const SSD::SimPoint3D &pos, const double &distance, const double &headingAngle, const double &angleShift, SSD::SimStringVector &nearLanes)
获取视野范围内所有车道 Get all lanes within the field of view.
SIMONE_API bool GetNearLanes(const SSD::SimPoint3D &pos, const double &distance, SSD::SimStringVector &nearLanes)
获取临近车道列表 Get the list of nearby lanes.
SIMONE_API bool GetForwardLaneSample(const SSD::SimPoint3D &inputPt, const SSD::SimString &id, const double &forward, SSD::SimVector< HDMapStandalone::MLaneInfo > &laneInfoList)
获取前方一定距离内的所有车道信息(包括车道ID、左右边缘线、虚拟中心线) Get all lane information (including lane ID, left and right boun...
SIMONE_API void GetParkingSpaceList(SSD::SimVector< HDMapStandalone::MParkingSpace > &parkingSpaceList)
获取地图中停车位列表 Get a list of parking spaces in the map.
SIMONE_API bool GetTopoGraph(HDMapStandalone::MTopoGraph &topoGraph)
获取拓扑信息 Get the topological graph.
SIMONE_API bool GetLaneType(const SSD::SimString &id, HDMapStandalone::MLaneType &laneType)
获取车道类型 Get lane type.
SIMONE_API bool GetHeights(const SSD::SimPoint3D &inputPt, const double &radius, SSD::SimVector< double > &heights, SSD::SimVector< long > &roadIds, SSD::SimVector< bool > &insideRoadStates)
获取路网指定坐标点的高程列表 Get the elevation list for the specified coordinate point in the road network.
SIMONE_API bool GetLaneSampleByLocation(const SSD::SimPoint3D &pos, HDMapStandalone::MLaneInfo &info)
获取当前车辆位置所在车道的信息(包括车道ID、左右边缘线、虚拟中心线) Get lane information (including lane ID, left and right boundary ...
SIMONE_API bool GetLaneSample(const SSD::SimString &id, HDMapStandalone::MLaneInfo &info)
获取车道信息(包含车道ID,左右边缘线,虚拟中心线) Get lane information (including lane ID, left and right boundary lines,...
SIMONE_API bool IsOverlapLaneLine(const SSD::SimPoint3D &pos, const double &radius, SSD::SimString &id)
判断给定位置是否与车道线重叠 Check if the specified position overlaps with a lane line.
SIMONE_API bool IsTwoSideRoad(const long &roadId)
判断指定道路是否是双向道路 Determine if the specified road is a two-way road.
SIMONE_API void GetTrafficLightList(SSD::SimVector< HDMapStandalone::MSignal > &list)
获取地图中信号灯列表 Get a list of traffic signals in the map.
SIMONE_API bool GetLaneMiddlePoint(const SSD::SimPoint3D &inputPt, const SSD::SimString &id, SSD::SimPoint3D &targetPoint, SSD::SimPoint3D &dir)
获取输入点投影到指定车道中心线上的点和切线方向 Get the point and tangent direction obtained by projecting the input point on...
SIMONE_API bool ContainsLane(const SSD::SimString &id)
查询指定车道是否存在于地图中 Check if the specified lane exists in the map.
SIMONE_API double GetLaneLength(const SSD::SimString &id)
获取车道长度 Get the length of the lane.
SIMONE_API 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.
SIMONE_API void GetJunction(const long &junctionId, HDMapStandalone::MJunction &junction)
获取指定十字路口的详细信息 Get detailed information about the specified intersection.
SIMONE_API void GetLaneList(const long &roadId, SSD::SimStringVector &laneList)
获取指定道路ID内所有的车道名称 Get the names of all lanes within the specified road ID.
SIMONE_API void GetLaneData(SSD::SimVector< HDMapStandalone::MLaneInfo > &data)
获取所有车道线信息列表 Get a list of all lane line information.
SIMONE_API bool GenerateRoute_V2(const SSD::SimPoint3DVector &inputPoints, SSD::SimVector< int > &indexOfValidPoints, HDMapStandalone::MRoutePath &path, SSD::SimVector< HDMapStandalone::MRoutePoint > &routePtList)
获取路网路径规划详细信息 Get detailed information about road network path planning.
SIMONE_API bool GetDistanceToLaneBoundary(const SSD::SimPoint3D &pos, SSD::SimString &id, double &distToLeft, double &distToRight, double &distToLeft2D, double &distToRight2D)
获取离最近车道左右边缘线的距离 Get the distance to the nearest lane's left and right boundary lines.
SIMONE_API 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,...
SIMONE_API bool GenerateRoute(const SSD::SimPoint3DVector &inputPoints, SSD::SimVector< int > &indexOfValidPoints, SSD::SimPoint3DVector &route)
获取路网路径规划 Get road network path planning.
SIMONE_API bool GetSectionLaneList(const SSD::SimString &laneId, SSD::SimStringVector §ionLaneList)
获取指定车道线所在Section的所有车道线ID列表 Get the list of lane line IDs for the specified lane line in the section.
SIMONE_API bool IsDriving(const SSD::SimString &id)
判断车道是否为机动车道 Determine if the lane is a motor vehicle lane.
SIMONE_API void GetSectionList(const long &roadId, SSD::SimStringVector &rightList, SSD::SimStringVector &leftList)
获取section列表 Get the section list.
SIMONE_API LaneInfo GetForwardLaneInfo(const SSD::SimPoint3D &pos, const TyrePosInfo &tyrePosInfo, const double &forward)
获取前方车道信息 Get forward lane information.
SIMONE_API bool IsInsideLane(const SSD::SimPoint3D &inputPt, const SSD::SimString &laneName, HDMapStandalone::MSideState &sideState)
判断坐标点是否在车道内 Determine if the coordinate point is within the lane.
SIMONE_API void GetSpecifiedLaneCrosswalkList(const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MObject > &crosswalkList)
获取给定车道的关联人行横道线列表 Get the list of crosswalk lines associated with the given lane.
SIMONE_API bool Navigate(const SSD::SimPoint3DVector &inputPoints, SSD::SimVector< int > &indexOfValidPoints, SSD::SimVector< long > &roadIdList)
获取规划路径所途径道路的ID列表 Get the ID list of roads traversed by the planned path.
SIMONE_API void setHdmapLoad()
直接设置高精地图已经初始化完成 Directly set that the high-definition map has been initialized successfully.
EDirectionType_
Definition SimOneHDMapAPI.h:110
@ Forward
Definition SimOneHDMapAPI.h:111
@ TurnBack
Definition SimOneHDMapAPI.h:114
@ TurnLeft
Definition SimOneHDMapAPI.h:112
@ ForwardAndTurnBack
Definition SimOneHDMapAPI.h:117
@ TurnRight
Definition SimOneHDMapAPI.h:113
@ TurnLeftAndTurnBack
Definition SimOneHDMapAPI.h:118
@ ForwardAndTurnLeft
Definition SimOneHDMapAPI.h:115
@ ForwardAndTurnRight
Definition SimOneHDMapAPI.h:116
SIMONE_API bool LoadHDMap(int timeOutSeconds)
加载高精度地图 Load the high-definition map.
SIMONE_API bool GetLaneLink(const SSD::SimString &id, HDMapStandalone::MLaneLink &laneLink)
获取车道连接信息 Get lane connection information.
SIMONE_API 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...
SIMONE_API void GetJunctionCenter(const SSD::SimString &junctionId, SSD::SimPoint3D &pos)
获取路口中心点的坐标 Get the coordinates of the center point of the junction.
SIMONE_API bool GetInertialFromLaneST(const SSD::SimString &id, const double &s, const double &t, SSD::SimPoint3D &inertial, SSD::SimPoint3D &dir)
根据车道ST坐标获取局部坐标 Get local coordinates based on lane ST coordinates.
ELaneLineType_
Definition SimOneHDMapAPI.h:122
@ none
Definition SimOneHDMapAPI.h:123
@ whiteSolid
Definition SimOneHDMapAPI.h:124
@ whiteDotted
Definition SimOneHDMapAPI.h:125
@ yellowSolid
Definition SimOneHDMapAPI.h:126
@ yellowDotted
Definition SimOneHDMapAPI.h:127
SIMONE_API void GetLaneLineInfo(SSD::SimVector< HDMapStandalone::MLaneLineInfo > &data)
获取所有车道线信息列表 Get a list of all lane line information.
SIMONE_API bool GetRoadST(const SSD::SimString &id, const SSD::SimPoint3D &pos, double &s, double &t, double &z)
获取相对于道路参考线的ST坐标 Get the ST coordinates relative to the road reference line.
SIMONE_API void GetNextJunction(const SSD::SimPoint3D &inputPt, SSD::SimString &junctionName)
获取下一个路口 Get the next junction.
SIMONE_API void GetSpecifiedLaneStoplineList(const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MObject > &stoplineList)
获取给定车道的关联停止线列表 Get the list of stop lines associated with the given lane.
SIMONE_API void GetSpecifiedLaneTrafficLightList(const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MSignal > &list)
获取指定车道绑定的信号灯列表 Get the list of traffic lights associated with the specified lane.
SIMONE_API void GetRoadType(const SSD::SimString &roadId, SSD::SimVector< HDMapStandalone::MRoadTypeInfo > &roadTypeInfoList)
获取道路类型信息 Get the road type information.
SIMONE_API 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="Gr...
SIMONE_API 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 operat...
SIMONE_API bool GetLaneST(const SSD::SimString &id, const SSD::SimPoint3D &pos, double &s, double &t)
获取相对于车道虚拟中心线的ST坐标 Get the ST coordinates relative to the lane's virtual centerline.
SIMONE_API 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.
SIMONE_API 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 t...
SIMONE_API 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.
SIMONE_API bool GetNearMostLane(const SSD::SimPoint3D &pos, SSD::SimString &id, double &s, double &t, double &s_toCenterLine, double &t_toCenterLine)
获取最接近输入点的车道,所属车道优先 Get the lane closest to the input point, prioritizing the lane to which it belongs...
SIMONE_API bool GetLaneWidth(const SSD::SimString &id, const SSD::SimPoint3D &pos, double &width)
获取车道宽度 Get lane width.
SIMONE_API void GetTrafficSignList(SSD::SimVector< HDMapStandalone::MSignal > &list)
获取地图中交通标志列表 Get a list of traffic signs in the map.
SIMONE_API bool IsInJunction(const SSD::SimString &id, SSD::SimString &juncId)
判断车道是否在交叉路口内 Determine if the lane is within an intersection.
SIMONE_API void GetJunctionList(SSD::SimVector< SSD::SimString > &juncList)
获取所有交叉路口ID列表 Get a list of all Junction IDs.
Definition SimPoint3D.h:41
Definition SimOneHDMapAPI.h:157
SSD::SimVector< LaneSample_ > laneSampleList
Definition SimOneHDMapAPI.h:160
OverlapLaneInfo_ overlapLaneInfo
Definition SimOneHDMapAPI.h:161
LaneIndexInfo_ laneIndexInfo
Definition SimOneHDMapAPI.h:158
EDirectionType_ laneType
Definition SimOneHDMapAPI.h:159
LaneLineTypeInfo_ laneLineTypeInfo
Definition SimOneHDMapAPI.h:162
Definition SimOneHDMapAPI.h:88
HDMapStandalone::MRoadMark rightRoadMark
Definition SimOneHDMapAPI.h:92
SSD::SimVector< LaneSample > laneSampleList
Definition SimOneHDMapAPI.h:89
HDMapStandalone::MRoadMark leftRoadMark
Definition SimOneHDMapAPI.h:91
SSD::SimStringVector laneNameList
Definition SimOneHDMapAPI.h:90
Definition SimOneHDMapAPI.h:131
int currentIndex
Definition SimOneHDMapAPI.h:132
SSD::SimVector< int > indexList
Definition SimOneHDMapAPI.h:133
Definition SimOneHDMapAPI.h:166
SSD::SimVector< LaneData_ > dataList
Definition SimOneHDMapAPI.h:167
Definition SimOneHDMapAPI.h:96
SSD::SimVector< LaneData > dataList
Definition SimOneHDMapAPI.h:98
SSD::SimString currentLane
Definition SimOneHDMapAPI.h:97
Definition SimOneHDMapAPI.h:151
ELaneLineType_ rightLaneLineType
Definition SimOneHDMapAPI.h:153
ELaneLineType_ leftLaneLineType
Definition SimOneHDMapAPI.h:152
Definition SimOneHDMapAPI.h:137
SSD::SimPoint3DVector leftBoundary
Definition SimOneHDMapAPI.h:140
SSD::SimPoint3DVector rightBoundary
Definition SimOneHDMapAPI.h:141
bool inJunction
Definition SimOneHDMapAPI.h:139
int laneCode
Definition SimOneHDMapAPI.h:138
Definition SimOneHDMapAPI.h:80
int laneCode
Definition SimOneHDMapAPI.h:81
SSD::SimPoint3DVector leftBoundary
Definition SimOneHDMapAPI.h:83
SSD::SimPoint3DVector rightBoundary
Definition SimOneHDMapAPI.h:84
bool inJunction
Definition SimOneHDMapAPI.h:82
Definition SimOneHDMapAPI.h:145
bool isOverlapLeftBoundary
Definition SimOneHDMapAPI.h:146
bool isOverlapRightBoundary
Definition SimOneHDMapAPI.h:147
Definition SimOneHDMapAPI.h:171
SSD::SimPoint3D frontRight
Definition SimOneHDMapAPI.h:173
SSD::SimPoint3D rearRight
Definition SimOneHDMapAPI.h:175
SSD::SimPoint3D rearLeft
Definition SimOneHDMapAPI.h:174
SSD::SimPoint3D frontLeft
Definition SimOneHDMapAPI.h:172
Definition SimOneHDMapAPI.h:102
SSD::SimPoint3D rearLeft
Definition SimOneHDMapAPI.h:105
SSD::SimPoint3D frontRight
Definition SimOneHDMapAPI.h:104
SSD::SimPoint3D rearRight
Definition SimOneHDMapAPI.h:106
SSD::SimPoint3D frontLeft
Definition SimOneHDMapAPI.h:103