CARLA
Classes | Macros | Typedefs | Functions
CarlaServer.cpp File Reference
#include "Carla.h"
#include "Carla/Server/CarlaServer.h"
#include "Carla/Server/CarlaServerResponse.h"
#include "Carla/Traffic/TrafficLightGroup.h"
#include "EngineUtils.h"
#include "Carla/OpenDrive/OpenDrive.h"
#include "Carla/Util/DebugShapeDrawer.h"
#include "Carla/Util/NavigationMesh.h"
#include "Carla/Util/RayTracer.h"
#include "Carla/Vehicle/CarlaWheeledVehicle.h"
#include "Carla/Walker/WalkerController.h"
#include "Carla/Walker/WalkerBase.h"
#include "GameFramework/CharacterMovementComponent.h"
#include "Carla/Game/Tagger.h"
#include "Carla/Game/CarlaStatics.h"
#include "Carla/Vehicle/MovementComponents/CarSimManagerComponent.h"
#include "Carla/Vehicle/MovementComponents/ChronoMovementComponent.h"
#include "Carla/Lights/CarlaLightSubsystem.h"
#include "Carla/Actor/ActorData.h"
#include "Carla/Util/BoundingBoxCalculator.h"
#include "Misc/FileHelper.h"
#include <compiler/disable-ue4-macros.h>
#include <carla/Functional.h>
#include <carla/multigpu/router.h>
#include <carla/Version.h>
#include <carla/rpc/AckermannControllerSettings.h>
#include <carla/rpc/Actor.h>
#include <carla/rpc/ActorDefinition.h>
#include <carla/rpc/ActorDescription.h>
#include <carla/rpc/BoneTransformDataIn.h>
#include <carla/rpc/Command.h>
#include <carla/rpc/CommandResponse.h>
#include <carla/rpc/DebugShape.h>
#include <carla/rpc/EnvironmentObject.h>
#include <carla/rpc/EpisodeInfo.h>
#include <carla/rpc/EpisodeSettings.h>
#include <carla/rpc/LabelledPoint.h>
#include <carla/rpc/LightState.h>
#include <carla/rpc/MapInfo.h>
#include <carla/rpc/MapLayer.h>
#include <carla/rpc/Response.h>
#include <carla/rpc/Server.h>
#include <carla/rpc/String.h>
#include <carla/rpc/Transform.h>
#include <carla/rpc/Vector2D.h>
#include <carla/rpc/Vector3D.h>
#include <carla/rpc/VehicleDoor.h>
#include <carla/rpc/VehicleAckermannControl.h>
#include <carla/rpc/VehicleControl.h>
#include <carla/rpc/VehiclePhysicsControl.h>
#include <carla/rpc/VehicleLightState.h>
#include <carla/rpc/VehicleLightStateList.h>
#include <carla/rpc/WalkerBoneControlIn.h>
#include <carla/rpc/WalkerBoneControlOut.h>
#include <carla/rpc/WalkerControl.h>
#include <carla/rpc/VehicleWheels.h>
#include <carla/rpc/WeatherParameters.h>
#include <carla/streaming/detail/Types.h>
#include <carla/rpc/Texture.h>
#include <carla/rpc/MaterialParameter.h>
#include <compiler/enable-ue4-macros.h>
#include <vector>
#include <atomic>
#include <map>
#include <tuple>

Go to the source code of this file.

Classes

class  FCarlaServer::FPimpl
 
class  ServerBinder
 

Macros

#define BIND_ASYNC(name)   auto name = ServerBinder(# name, Server, false)
 
#define BIND_SYNC(name)   auto name = ServerBinder(# name, Server, true)
 
#define CARLA_ENSURE_GAME_THREAD()
 
#define MAKE_RESULT(operation)   return parse_result(c.actor, operation);
 
#define REQUIRE_CARLA_EPISODE()
 
#define RESPOND_ERROR(str)
 
#define RESPOND_ERROR_FSTRING(fstr)
 

Typedefs

template<typename T >
using R = carla::rpc::Response< T >
 

Functions

template<typename T , typename Other >
static std::vector< T > MakeVectorFromTArray (const TArray< Other > &Array)
 
carla::rpc::ResponseError RespondError (const FString &FuncName, const FString &ErrorMessage, const FString &ExtraInfo="")
 
carla::rpc::ResponseError RespondError (const FString &FuncName, const ECarlaServerResponse &Error, const FString &ExtraInfo="")
 

Macro Definition Documentation

◆ BIND_ASYNC

#define BIND_ASYNC (   name)    auto name = ServerBinder(# name, Server, false)

Definition at line 207 of file CarlaServer.cpp.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ BIND_SYNC

#define BIND_SYNC (   name)    auto name = ServerBinder(# name, Server, true)

Definition at line 206 of file CarlaServer.cpp.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ CARLA_ENSURE_GAME_THREAD

#define CARLA_ENSURE_GAME_THREAD ( )

Definition at line 140 of file CarlaServer.cpp.

◆ MAKE_RESULT

#define MAKE_RESULT (   operation)    return parse_result(c.actor, operation);

◆ REQUIRE_CARLA_EPISODE

#define REQUIRE_CARLA_EPISODE ( )
Value:
if (Episode == nullptr) { RESPOND_ERROR("episode not ready"); }
#define RESPOND_ERROR(str)
#define CARLA_ENSURE_GAME_THREAD()

Definition at line 151 of file CarlaServer.cpp.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ RESPOND_ERROR

#define RESPOND_ERROR (   str)
Value:
{ \
UE_LOG(LogCarlaServer, Log, TEXT("Responding error: %s"), TEXT(str)); \

Definition at line 143 of file CarlaServer.cpp.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ RESPOND_ERROR_FSTRING

#define RESPOND_ERROR_FSTRING (   fstr)
Value:
{ \
UE_LOG(LogCarlaServer, Log, TEXT("Responding error: %s"), *fstr); \
return carla::rpc::ResponseError(carla::rpc::FromFString(fstr)); }

Definition at line 147 of file CarlaServer.cpp.

Referenced by FCarlaServer::FPimpl::BindActions().

Typedef Documentation

◆ R

template<typename T >
using R = carla::rpc::Response<T>

Definition at line 78 of file CarlaServer.cpp.

Function Documentation

◆ MakeVectorFromTArray()

template<typename T , typename Other >
static std::vector<T> MakeVectorFromTArray ( const TArray< Other > &  Array)
static

Definition at line 85 of file CarlaServer.cpp.

◆ RespondError() [1/2]

carla::rpc::ResponseError RespondError ( const FString &  FuncName,
const FString &  ErrorMessage,
const FString &  ExtraInfo = "" 
)

Definition at line 155 of file CarlaServer.cpp.

Referenced by FCarlaServer::FPimpl::BindActions(), and RespondError().

+ Here is the caller graph for this function:

◆ RespondError() [2/2]

carla::rpc::ResponseError RespondError ( const FString &  FuncName,
const ECarlaServerResponse Error,
const FString &  ExtraInfo = "" 
)

Definition at line 166 of file CarlaServer.cpp.

References CarlaGetStringError(), and RespondError().

+ Here is the call graph for this function: