CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Server
CarlaServerResponse.cpp
浏览该文件的文档.
1
// Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#include "
CarlaServerResponse.h
"
8
9
FString
CarlaGetStringError
(
ECarlaServerResponse
Response)
10
{
11
switch
(Response)
12
{
13
case
ECarlaServerResponse::Success
:
14
return
"Sucess"
;
15
case
ECarlaServerResponse::ActorNotFound
:
16
return
"Actor could not be found in the registry"
;
17
case
ECarlaServerResponse::ComponentNotFound
:
18
return
"Component could not be found in this actor"
;
19
case
ECarlaServerResponse::ActorTypeMismatch
:
20
return
"Actor does not match the expected type"
;
21
case
ECarlaServerResponse::MissingActor
:
22
return
"Actor is missing"
;
23
case
ECarlaServerResponse::NotAVehicle
:
24
return
"Actor is not a Vehicle"
;
25
case
ECarlaServerResponse::WalkerDead
:
26
return
"Walker is already dead"
;
27
case
ECarlaServerResponse::NotAWalker
:
28
return
"Actor is not a Walker"
;
29
case
ECarlaServerResponse::WalkerIncompatibleController
:
30
return
"Walker has incompatible controller"
;
31
case
ECarlaServerResponse::NullActor
:
32
return
"Actor is null"
;
33
case
ECarlaServerResponse::AutoPilotNotSupported
:
34
return
"Autopilot is not supported by the Actor"
;
35
case
ECarlaServerResponse::CarSimPluginNotEnabled
:
36
return
"CarSim plugin is not enabled"
;
37
case
ECarlaServerResponse::NotATrafficLight
:
38
return
"Actor is not a traffic light"
;
39
case
ECarlaServerResponse::FunctionNotAvailiableWhenDormant
:
40
return
"Function not availiable when the actor is dormant"
;
41
}
42
return
"unknown error"
;
43
}
CarlaGetStringError
FString CarlaGetStringError(ECarlaServerResponse Response)
Definition
CarlaServerResponse.cpp:9
CarlaServerResponse.h
ECarlaServerResponse
ECarlaServerResponse
Definition
CarlaServerResponse.h:10
ECarlaServerResponse::WalkerDead
@ WalkerDead
ECarlaServerResponse::CarSimPluginNotEnabled
@ CarSimPluginNotEnabled
ECarlaServerResponse::WalkerIncompatibleController
@ WalkerIncompatibleController
ECarlaServerResponse::AutoPilotNotSupported
@ AutoPilotNotSupported
ECarlaServerResponse::Success
@ Success
ECarlaServerResponse::NullActor
@ NullActor
ECarlaServerResponse::FunctionNotAvailiableWhenDormant
@ FunctionNotAvailiableWhenDormant
ECarlaServerResponse::ActorTypeMismatch
@ ActorTypeMismatch
ECarlaServerResponse::ComponentNotFound
@ ComponentNotFound
ECarlaServerResponse::MissingActor
@ MissingActor
ECarlaServerResponse::NotAWalker
@ NotAWalker
ECarlaServerResponse::NotAVehicle
@ NotAVehicle
ECarlaServerResponse::ActorNotFound
@ ActorNotFound
ECarlaServerResponse::NotATrafficLight
@ NotATrafficLight
制作者
1.10.0