CARLA
 
载入中...
搜索中...
未找到
| 宏定义 | 类型定义 | 函数
CarlaServer.cpp 文件参考
#include "Carla.h"
#include "Carla/Server/CarlaServer.h"
#include "Carla/Server/CarlaServerResponse.h"
#include "Carla/Traffic/TrafficLightGroup.h"
#include "EngineUtils.h"
#include "Components/SkeletalMeshComponent.h"
#include "Components/SkinnedMeshComponent.h"
#include "Components/SceneComponent.h"
#include "Engine/SkeletalMesh.h"
#include "Engine/SkeletalMeshSocket.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/Sensor/CustomV2XSensor.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/VehicleTelemetryData.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>

浏览源代码.

class  FCarlaServer::FPimpl
 
class  ServerBinder
 

宏定义

#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)
 

类型定义

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

函数

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

宏定义说明

◆ BIND_ASYNC

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

在文件 CarlaServer.cpp214 行定义.

被这些函数引用 FCarlaServer::FPimpl::BindActions().

◆ BIND_SYNC

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

在文件 CarlaServer.cpp213 行定义.

被这些函数引用 FCarlaServer::FPimpl::BindActions().

◆ CARLA_ENSURE_GAME_THREAD

#define CARLA_ENSURE_GAME_THREAD ( )

在文件 CarlaServer.cpp147 行定义.

◆ MAKE_RESULT

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

◆ REQUIRE_CARLA_EPISODE

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

在文件 CarlaServer.cpp158 行定义.

被这些函数引用 FCarlaServer::FPimpl::BindActions().

◆ RESPOND_ERROR

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

在文件 CarlaServer.cpp150 行定义.

被这些函数引用 FCarlaServer::FPimpl::BindActions().

◆ RESPOND_ERROR_FSTRING

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

在文件 CarlaServer.cpp154 行定义.

被这些函数引用 FCarlaServer::FPimpl::BindActions().

类型定义说明

◆ R

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

在文件 CarlaServer.cpp85 行定义.

函数说明

◆ MakeVectorFromTArray()

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

在文件 CarlaServer.cpp92 行定义.

◆ RespondError() [1/2]

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

在文件 CarlaServer.cpp173 行定义.

引用了 CarlaGetStringError() , 以及 RespondError().

+ 函数调用图:

◆ RespondError() [2/2]

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

在文件 CarlaServer.cpp162 行定义.

被这些函数引用 FCarlaServer::FPimpl::BindActions() , 以及 RespondError().

+ 这是这个函数的调用关系图: