CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Server
CarlaServerResponse.cpp
Go to the documentation of this file.
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::ActorTypeMismatch
:
18
return
"Actor does not match the expected type"
;
19
case
ECarlaServerResponse::MissingActor
:
20
return
"Actor is missing"
;
21
case
ECarlaServerResponse::NotAVehicle
:
22
return
"Actor is not a Vehicle"
;
23
case
ECarlaServerResponse::WalkerDead
:
24
return
"Walker is already dead"
;
25
case
ECarlaServerResponse::NotAWalker
:
26
return
"Actor is not a Walker"
;
27
case
ECarlaServerResponse::WalkerIncompatibleController
:
28
return
"Walker has incompatible controller"
;
29
case
ECarlaServerResponse::NullActor
:
30
return
"Actor is null"
;
31
case
ECarlaServerResponse::AutoPilotNotSupported
:
32
return
"Autopilot is not supported by the Actor"
;
33
case
ECarlaServerResponse::CarSimPluginNotEnabled
:
34
return
"CarSim plugin is not enabled"
;
35
case
ECarlaServerResponse::NotATrafficLight
:
36
return
"Actor is not a traffic light"
;
37
case
ECarlaServerResponse::FunctionNotAvailiableWhenDormant
:
38
return
"Function not availiable when the actor is dormant"
;
39
}
40
return
"unknown error"
;
41
}
ECarlaServerResponse::NullActor
ECarlaServerResponse::CarSimPluginNotEnabled
ECarlaServerResponse::MissingActor
ECarlaServerResponse::Success
CarlaServerResponse.h
ECarlaServerResponse::NotAWalker
ECarlaServerResponse::AutoPilotNotSupported
ECarlaServerResponse
ECarlaServerResponse
Definition:
CarlaServerResponse.h:9
ECarlaServerResponse::WalkerIncompatibleController
ECarlaServerResponse::WalkerDead
ECarlaServerResponse::NotATrafficLight
ECarlaServerResponse::ActorNotFound
CarlaGetStringError
FString CarlaGetStringError(ECarlaServerResponse Response)
Definition:
CarlaServerResponse.cpp:9
ECarlaServerResponse::ActorTypeMismatch
ECarlaServerResponse::FunctionNotAvailiableWhenDormant
ECarlaServerResponse::NotAVehicle
Generated by
1.8.13