|
SimOne C++ API Reference 3.7.0
SimOne 仿真平台C++接口文档
|
#include <string>#include "Service/SimOneIOStruct.h"#include "public/common/MEnum.h"#include "public/common/MLaneLink.h"#include "public/common/MLaneInfo.h"#include "public/common/MRoadMark.h"#include "public/common/MSignal.h"#include "public/common/MObject.h"#include "public/common/MParkingSpace.h"#include "public/common/MRoutePath.h"#include "public/common/MTopoGraph.h"#include "public/MHDMap.h"#include "public/MNavigation.h"#include "SSD/SimPoint3D.h"#include "SSD/SimString.h"#include "SSD/SimVector.h"
Go to the source code of this file.
Classes | |
| struct | SimOneAPI::LaneSample |
| struct | SimOneAPI::LaneData |
| struct | SimOneAPI::LaneInfo |
| struct | SimOneAPI::TyrePosInfo |
| struct | SimOneAPI::LaneIndexInfo_ |
| struct | SimOneAPI::LaneSample_ |
| struct | SimOneAPI::OverlapLaneInfo_ |
| struct | SimOneAPI::LaneLineTypeInfo_ |
| struct | SimOneAPI::LaneData_ |
| struct | SimOneAPI::LaneInfo_ |
| struct | SimOneAPI::TyrePosInfo_ |
Namespaces | |
| namespace | SimOneAPI |
Macros | |
| #define | SIMONE_API |
Enumerations | |
| enum | SimOneAPI::EDirectionType_ { SimOneAPI::Forward = 0 , SimOneAPI::TurnLeft = 1 , SimOneAPI::TurnRight = 2 , SimOneAPI::TurnBack = 3 , SimOneAPI::ForwardAndTurnLeft = 4 , SimOneAPI::ForwardAndTurnRight = 5 , SimOneAPI::ForwardAndTurnBack = 6 , SimOneAPI::TurnLeftAndTurnBack = 7 } |
| enum | SimOneAPI::ELaneLineType_ { SimOneAPI::none = 0 , SimOneAPI::whiteSolid = 1 , SimOneAPI::whiteDotted = 2 , SimOneAPI::yellowSolid = 3 , SimOneAPI::yellowDotted = 4 } |
Functions | |
| SIMONE_API void | SimOneAPI::setHdmapLoad () |
| 直接设置高精地图已经初始化完成 Directly set that the high-definition map has been initialized successfully. | |
| SIMONE_API bool | SimOneAPI::LoadHDMap (int timeOutSeconds) |
| 加载高精度地图 Load the high-definition map. | |
| SIMONE_API bool | SimOneAPI::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 | SimOneAPI::GetNearLanes (const SSD::SimPoint3D &pos, const double &distance, SSD::SimStringVector &nearLanes) |
| 获取临近车道列表 Get the list of nearby lanes. | |
| SIMONE_API bool | SimOneAPI::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 | SimOneAPI::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 | SimOneAPI::GetLaneSample (const SSD::SimString &id, HDMapStandalone::MLaneInfo &info) |
| 获取车道信息(包含车道ID,左右边缘线,虚拟中心线) Get lane information (including lane ID, left and right boundary lines, virtual centerline). | |
| SIMONE_API bool | SimOneAPI::GetLaneLink (const SSD::SimString &id, HDMapStandalone::MLaneLink &laneLink) |
| 获取车道连接信息 Get lane connection information. | |
| SIMONE_API bool | SimOneAPI::GetLaneType (const SSD::SimString &id, HDMapStandalone::MLaneType &laneType) |
| 获取车道类型 Get lane type. | |
| SIMONE_API bool | SimOneAPI::GetLaneWidth (const SSD::SimString &id, const SSD::SimPoint3D &pos, double &width) |
| 获取车道宽度 Get lane width. | |
| SIMONE_API bool | SimOneAPI::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 | SimOneAPI::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 bool | SimOneAPI::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. | |
| SIMONE_API bool | SimOneAPI::ContainsLane (const SSD::SimString &id) |
| 查询指定车道是否存在于地图中 Check if the specified lane exists in the map. | |
| SIMONE_API void | SimOneAPI::GetParkingSpaceList (SSD::SimVector< HDMapStandalone::MParkingSpace > &parkingSpaceList) |
| 获取地图中停车位列表 Get a list of parking spaces in the map. | |
| SIMONE_API bool | SimOneAPI::GenerateRoute (const SSD::SimPoint3DVector &inputPoints, SSD::SimVector< int > &indexOfValidPoints, SSD::SimPoint3DVector &route) |
| 获取路网路径规划 Get road network path planning. | |
| SIMONE_API bool | SimOneAPI::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 bool | SimOneAPI::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. | |
| SIMONE_API void | SimOneAPI::GetTrafficLightList (SSD::SimVector< HDMapStandalone::MSignal > &list) |
| 获取地图中信号灯列表 Get a list of traffic signals in the map. | |
| SIMONE_API void | SimOneAPI::GetTrafficSignList (SSD::SimVector< HDMapStandalone::MSignal > &list) |
| 获取地图中交通标志列表 Get a list of traffic signs in the map. | |
| SIMONE_API void | SimOneAPI::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. | |
| SIMONE_API void | SimOneAPI::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. | |
| SIMONE_API void | SimOneAPI::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 bool | SimOneAPI::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 onto the centerline of the specified lane. | |
| SIMONE_API bool | SimOneAPI::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 void | SimOneAPI::GetLaneData (SSD::SimVector< HDMapStandalone::MLaneInfo > &data) |
| 获取所有车道线信息列表 Get a list of all lane line information. | |
| SIMONE_API void | SimOneAPI::GetJunctionList (SSD::SimVector< SSD::SimString > &juncList) |
| 获取所有交叉路口ID列表 Get a list of all Junction IDs. | |
| SIMONE_API double | SimOneAPI::GetRoadLength (const long &roadId) |
| 获取道路长度 Get the length of the road. | |
| SIMONE_API bool | SimOneAPI::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 | SimOneAPI::IsTwoSideRoad (const long &roadId) |
| 判断指定道路是否是双向道路 Determine if the specified road is a two-way road. | |
| SIMONE_API double | SimOneAPI::GetLaneLength (const SSD::SimString &id) |
| 获取车道长度 Get the length of the lane. | |
| SIMONE_API bool | SimOneAPI::IsDriving (const SSD::SimString &id) |
| 判断车道是否为机动车道 Determine if the lane is a motor vehicle lane. | |
| SIMONE_API bool | SimOneAPI::IsInJunction (const SSD::SimString &id, SSD::SimString &juncId) |
| 判断车道是否在交叉路口内 Determine if the lane is within an intersection. | |
| SIMONE_API bool | SimOneAPI::IsInsideLane (const SSD::SimPoint3D &inputPt, const SSD::SimString &laneName, HDMapStandalone::MSideState &sideState) |
| 判断坐标点是否在车道内 Determine if the coordinate point is within the lane. | |
| SIMONE_API bool | SimOneAPI::GetLaneSampleByLocation (const SSD::SimPoint3D &pos, HDMapStandalone::MLaneInfo &info) |
| 获取当前车辆位置所在车道的信息(包括车道ID、左右边缘线、虚拟中心线) Get lane information (including lane ID, left and right boundary lines, virtual centerline) for the current vehicle position. | |
| SIMONE_API void | SimOneAPI::GetLaneLineInfo (SSD::SimVector< HDMapStandalone::MLaneLineInfo > &data) |
| 获取所有车道线信息列表 Get a list of all lane line information. | |
| SIMONE_API void | SimOneAPI::GetSpecifiedLaneCrosswalkList (const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MObject > &crosswalkList) |
| 获取给定车道的关联人行横道线列表 Get the list of crosswalk lines associated with the given lane. | |
| SIMONE_API void | SimOneAPI::GetSpecifiedLaneStoplineList (const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MObject > &stoplineList) |
| 获取给定车道的关联停止线列表 Get the list of stop lines associated with the given lane. | |
| SIMONE_API void | SimOneAPI::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 void | SimOneAPI::GetSpecifiedLaneTrafficLightList (const SSD::SimString &id, SSD::SimVector< HDMapStandalone::MSignal > &list) |
| 获取指定车道绑定的信号灯列表 Get the list of traffic lights associated with the specified lane. | |
| SIMONE_API bool | SimOneAPI::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. | |
| SIMONE_API bool | SimOneAPI::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 boundary lines, virtual centerline) within a certain distance ahead. | |
| SIMONE_API void | SimOneAPI::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. | |
| SIMONE_API void | SimOneAPI::GetLaneList (const long &roadId, SSD::SimStringVector &laneList) |
| 获取指定道路ID内所有的车道名称 Get the names of all lanes within the specified road ID. | |
| SIMONE_API void | SimOneAPI::GetJunction (const long &junctionId, HDMapStandalone::MJunction &junction) |
| 获取指定十字路口的详细信息 Get detailed information about the specified intersection. | |
| SIMONE_API bool | SimOneAPI::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 | SimOneAPI::IsOverlapLaneLine (const SSD::SimPoint3D &pos, const double &radius, SSD::SimString &id) |
| 判断给定位置是否与车道线重叠 Check if the specified position overlaps with a lane line. | |
| SIMONE_API LaneInfo | SimOneAPI::GetForwardLaneInfo (const SSD::SimPoint3D &pos, const TyrePosInfo &tyrePosInfo, const double &forward) |
| 获取前方车道信息 Get forward lane information. | |
| SIMONE_API bool | SimOneAPI::GetTopoGraph (HDMapStandalone::MTopoGraph &topoGraph) |
| 获取拓扑信息 Get the topological graph. | |
| SIMONE_API void | SimOneAPI::GetSectionList (const long &roadId, SSD::SimStringVector &rightList, SSD::SimStringVector &leftList) |
| 获取section列表 Get the section list. | |
| SIMONE_API void | SimOneAPI::GetRoadType (const SSD::SimString &roadId, SSD::SimVector< HDMapStandalone::MRoadTypeInfo > &roadTypeInfoList) |
| 获取道路类型信息 Get the road type information. | |
| SIMONE_API void | SimOneAPI::GetNextJunction (const SSD::SimPoint3D &inputPt, SSD::SimString &junctionName) |
| 获取下一个路口 Get the next junction. | |
| SIMONE_API bool | SimOneAPI::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 void | SimOneAPI::GetJunctionCenter (const SSD::SimString &junctionId, SSD::SimPoint3D &pos) |
| 获取路口中心点的坐标 Get the coordinates of the center point of the junction. | |
| #define SIMONE_API |