SimOne C++ API Reference 3.7.0
SimOne 仿真平台C++接口文档
Loading...
Searching...
No Matches
SimOneEvaluationAPI.h
Go to the documentation of this file.
1// ==========================================================================
2// Copyright (C) 2018 - 2021 Beijing 51WORLD Digital Twin Technology Co., Ltd.
3// , and/or its licensors. All rights reserved.
4//
5// The coded instructions, statements, computer programs, and/or related
6// material (collectively the "Data") in these files contain unpublished
7// information proprietary to Beijing 51WORLD Digital Twin Technology Co., Ltd.
8// ("51WORLD") and/or its licensors, which is protected by the People's
9// Republic of China and/or other countries copyright law and by
10// international treaties.
11//
12// The Data may not be disclosed or distributed to third parties or be
13// copied or duplicated, in whole or in part, without the prior written
14// consent of 51WORLD.
15//
16// The copyright notices in the Software and this entire statement,
17// including the above license grant, this restriction and the following
18// disclaimer, must be included in all copies of the Software, in whole
19// or in part, and all derivative works of the Software, unless such copies
20// or derivative works are solely in the form of machine-executable object
21// code generated by a source language processor.
22
23// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
24// 51WORLD DOES NOT MAKE AND HEREBY DISCLAIMS ANY EXPRESS OR IMPLIED
25// WARRANTIES INCLUDING, BUT NOT LIMITED TO, THE WARRANTIES OF
26// NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE,
27// OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO
28// EVENT WILL 51WORLD AND/OR ITS LICENSORS BE LIABLE FOR ANY LOST
29// REVENUES, DATA, OR PROFITS, OR SPECIAL, DIRECT, INDIRECT, OR
30// CONSEQUENTIAL DAMAGES, EVEN IF 51WORLD AND/OR ITS LICENSORS HAS
31// BEEN ADVISED OF THE POSSIBILITY OR PROBABILITY OF SUCH DAMAGES.
32// ==========================================================================
33#pragma once
34
35#ifdef BUILD_SIMONE_API
36#if defined(WIN32) || defined(_WIN32)
37#define SIMONE_API __declspec(dllexport)
38#elif defined(__linux__) || defined(__linux)
39#define SIMONE_API __attribute__((visibility("default")))
40#endif
41#else
42#define SIMONE_API
43#endif
44
45#include <string>
46#include "Service/SimOneIOStruct.h"
47
48#ifdef __cplusplus
49extern "C"
50{
51#endif
52
53 namespace SimOneAPI{
72 SIMONE_API bool InitEvaluationService(const char* mainVehicleId, const char *serviceIP = "127.0.0.1", int port = 8078, bool withMainVehicle = true, bool withObstacleNeeded = true);
73
88 SIMONE_API bool InitEvaluationServiceWithLocalData(const char* mainVehicleId, bool withMainVehicle = true, bool withObstacleNeeded = true);
89
102 SIMONE_API bool AddEvaluationRecord(const char* mainVehicleId, const char * jsonString);
103
113
128 SIMONE_API bool SetJudgeEventCB(void(*cb)(const char* mainVehicleId, SimOne_Data_JudgeEvent *judgeEventDetailInfo));
129
144 SIMONE_API bool AddJudgeEvent(const char* mainVehicleId, const char* data, bool terminate = false);
145
146 }
147#ifdef __cplusplus
148}
149#endif
#define SIMONE_API
Definition SimOneEvaluationAPI.h:42
Definition SimOneControlTransAPI.h:20
SIMONE_API bool InitEvaluationServiceWithLocalData(const char *mainVehicleId, bool withMainVehicle=true, bool withObstacleNeeded=true)
初始化评价服务,本地存储数据 Initialize evaluation service with local data storage.
SIMONE_API bool InitEvaluationService(const char *mainVehicleId, const char *serviceIP="127.0.0.1", int port=8078, bool withMainVehicle=true, bool withObstacleNeeded=true)
初始化评价服务 Initialize service for evaluation of autonomous driving algorithms.
SIMONE_API bool SaveEvaluationRecord()
保存评价算法所需的各类信息(JSON格式) Save various types of information required for the evaluation algorithm (in JSO...
SIMONE_API bool AddEvaluationRecord(const char *mainVehicleId, const char *jsonString)
添加评价算法所需的各类信息(JSON格式) Add various types of information required for the evaluation algorithm (in JSON...
SIMONE_API bool SetJudgeEventCB(void(*cb)(const char *mainVehicleId, SimOne_Data_JudgeEvent *judgeEventDetailInfo))
场景判定事件回调 Callback for scenario judgment events.
SIMONE_API bool AddJudgeEvent(const char *mainVehicleId, const char *data, bool terminate=false)
发送场景判定事件 Broadcast scenario judgment event information for report generation.
Definition SimOneIOStruct.h:320