CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
Unreal
CarlaUnreal
Plugins
Carla
Source
Carla
Server
CarlaServerResponse.cpp
Go to the documentation of this file.
1
// Copyright (c) 2026 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
"Success"
;
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::FunctionNotAvailableWhenDormant
:
40
return
"Function not available when the actor is dormant"
;
41
case
ECarlaServerResponse::WheelNotFound
:
42
return
"Vehicle has no wheel at this location"
;
43
case
ECarlaServerResponse::WheelAnimationOverrideDisabled
:
44
return
"Wheel animation override is off, enable it with set_wheel_animation_override first"
;
45
case
ECarlaServerResponse::WheelAnimationNotSupported
:
46
return
"Vehicle's animation blueprint does not derive from CarlaVehicleAnimationInstance"
;
47
}
48
return
"unknown error"
;
49
}
CarlaGetStringError
FString CarlaGetStringError(ECarlaServerResponse Response)
Definition
CarlaServerResponse.cpp:9
CarlaServerResponse.h
ECarlaServerResponse
ECarlaServerResponse
Definition
CarlaServerResponse.h:10
ECarlaServerResponse::WalkerDead
@ WalkerDead
Definition
CarlaServerResponse.h:18
ECarlaServerResponse::FunctionNotAvailableWhenDormant
@ FunctionNotAvailableWhenDormant
Definition
CarlaServerResponse.h:24
ECarlaServerResponse::CarSimPluginNotEnabled
@ CarSimPluginNotEnabled
Definition
CarlaServerResponse.h:22
ECarlaServerResponse::WalkerIncompatibleController
@ WalkerIncompatibleController
Definition
CarlaServerResponse.h:20
ECarlaServerResponse::AutoPilotNotSupported
@ AutoPilotNotSupported
Definition
CarlaServerResponse.h:21
ECarlaServerResponse::WheelAnimationOverrideDisabled
@ WheelAnimationOverrideDisabled
Definition
CarlaServerResponse.h:27
ECarlaServerResponse::WheelNotFound
@ WheelNotFound
Definition
CarlaServerResponse.h:26
ECarlaServerResponse::Success
@ Success
Definition
CarlaServerResponse.h:11
ECarlaServerResponse::NullActor
@ NullActor
Definition
CarlaServerResponse.h:15
ECarlaServerResponse::WheelAnimationNotSupported
@ WheelAnimationNotSupported
Definition
CarlaServerResponse.h:28
ECarlaServerResponse::ActorTypeMismatch
@ ActorTypeMismatch
Definition
CarlaServerResponse.h:13
ECarlaServerResponse::ComponentNotFound
@ ComponentNotFound
Definition
CarlaServerResponse.h:25
ECarlaServerResponse::MissingActor
@ MissingActor
Definition
CarlaServerResponse.h:16
ECarlaServerResponse::NotAWalker
@ NotAWalker
Definition
CarlaServerResponse.h:19
ECarlaServerResponse::NotAVehicle
@ NotAVehicle
Definition
CarlaServerResponse.h:17
ECarlaServerResponse::ActorNotFound
@ ActorNotFound
Definition
CarlaServerResponse.h:12
ECarlaServerResponse::NotATrafficLight
@ NotATrafficLight
Definition
CarlaServerResponse.h:23
Generated by
1.18.0