42 TSharedPtr<const FActorInfo>
Info,
138 return dynamic_cast<T*
>(
ActorData.Get());
143 return dynamic_cast<T*
>(
ActorData.Get());
152 const FVector& Location,
153 ETeleportType Teleport = ETeleportType::TeleportPhysics);
156 const FVector& Location,
157 ETeleportType Teleport = ETeleportType::TeleportPhysics);
160 const FTransform& Transform,
161 ETeleportType Teleport = ETeleportType::TeleportPhysics);
164 const FTransform& Transform,
165 ETeleportType Teleport = ETeleportType::TeleportPhysics);
196 return ECarlaServerResponse::ActorTypeMismatch;
201 return ECarlaServerResponse::ActorTypeMismatch;
206 return ECarlaServerResponse::ActorTypeMismatch;
211 return ECarlaServerResponse::ActorTypeMismatch;
216 return ECarlaServerResponse::ActorTypeMismatch;
221 return ECarlaServerResponse::ActorTypeMismatch;
226 return ECarlaServerResponse::ActorTypeMismatch;
231 return ECarlaServerResponse::ActorTypeMismatch;
236 return ECarlaServerResponse::ActorTypeMismatch;
241 return ECarlaServerResponse::ActorTypeMismatch;
246 return ECarlaServerResponse::ActorTypeMismatch;
252 return ECarlaServerResponse::ActorTypeMismatch;
258 return ECarlaServerResponse::ActorTypeMismatch;
263 return ECarlaServerResponse::ActorTypeMismatch;
268 return ECarlaServerResponse::ActorTypeMismatch;
273 return ECarlaServerResponse::ActorTypeMismatch;
278 return ECarlaServerResponse::ActorTypeMismatch;
283 return ECarlaServerResponse::ActorTypeMismatch;
288 return ECarlaServerResponse::ActorTypeMismatch;
293 return ECarlaServerResponse::ActorTypeMismatch;
298 return ECarlaServerResponse::ActorTypeMismatch;
303 return ECarlaServerResponse::ActorTypeMismatch;
307 const FString&,
const FString&,
const FString&,
const FString&)
309 return ECarlaServerResponse::ActorTypeMismatch;
314 return ECarlaServerResponse::ActorTypeMismatch;
321 return ECarlaServerResponse::ActorTypeMismatch;
326 return ETrafficLightState::Off;
336 return ECarlaServerResponse::ActorTypeMismatch;
341 return ECarlaServerResponse::ActorTypeMismatch;
346 return ECarlaServerResponse::ActorTypeMismatch;
353 const FTransform& Transform,
356 return ECarlaServerResponse::ActorTypeMismatch;
361 return ECarlaServerResponse::ActorTypeMismatch;
366 return ECarlaServerResponse::ActorTypeMismatch;
371 return ECarlaServerResponse::ActorTypeMismatch;
376 return ECarlaServerResponse::ActorTypeMismatch;
381 return ECarlaServerResponse::ActorTypeMismatch;
386 return ECarlaServerResponse::ActorTypeMismatch;
391 return ECarlaServerResponse::ActorTypeMismatch;
396 return ECarlaServerResponse::ActorTypeMismatch;
401 return ECarlaServerResponse::ActorTypeMismatch;
409 TSharedPtr<const FActorInfo>
Info,
420 TSharedPtr<const FActorInfo>
Info =
nullptr;
448 TSharedPtr<const FActorInfo>
Info,
505 uint64_t MaxSubsteps,
float MaxSubstepDeltaTime,
506 const FString& VehicleJSON,
const FString& PowertrainJSON,
507 const FString& TireJSON,
const FString& BaseJSONPath)
final;
518 TSharedPtr<const FActorInfo>
Info,
530 TSharedPtr<const FActorInfo>
Info,
541 TSharedPtr<const FActorInfo>
Info,
569 TSharedPtr<const FActorInfo>
Info,
574 const FTransform& Transform,
602 TSharedPtr<const FActorInfo>
Info,
FVehicleLightState LightState
FVehiclePhysicsControl PhysicsControl
TSharedPtr< const FActorInfo > carla::rpc::ActorState InState
TSharedPtr< const FActorInfo > carla::rpc::ActorState UWorld Actor
EVehicleDoor
Type of door to open/close
carla::rpc::ActorState State
ECarlaServerResponse AddActorImpulseAtLocation(const FVector &Impulse, const FVector &Location)
virtual ECarlaServerResponse GetPhysicsControl(FVehiclePhysicsControl &)
carla::rpc::AttachmentType GetAttachmentType() const
static TSharedPtr< FCarlaActor > ConstructCarlaActor(IdType ActorId, AActor *Actor, TSharedPtr< const FActorInfo > Info, ActorType Type, carla::rpc::ActorState InState, UWorld *World)
ECarlaServerResponse AddActorForceAtLocation(const FVector &Force, const FVector &Location)
void RemoveChildren(IdType ChildId)
virtual ECarlaServerResponse SetActorEnableGravity(bool bEnabled)
virtual ECarlaServerResponse GetBonesTransform(FWalkerBoneControlOut &)
virtual ECarlaServerResponse GetAckermannControllerSettings(FAckermannControllerSettings &)
virtual ECarlaServerResponse SetLightRedTime(float)
virtual ECarlaServerResponse ResetTrafficLightGroup()
ActorType GetActorType() const
FVector GetActorLocalLocation() const
void SetActorLocalTransform(const FTransform &Transform, ETeleportType Teleport=ETeleportType::TeleportPhysics)
virtual ECarlaServerResponse GetVehicleAckermannControl(FVehicleAckermannControl &)
virtual ECarlaServerResponse SetLightYellowTime(float)
virtual ECarlaServerResponse GetPoseFromAnimation()
virtual ECarlaServerResponse SetActorAutopilot(bool, bool bKeepState=false)
carla::rpc::AttachmentType Attachment
ECarlaServerResponse AddActorTorque(const FVector &Torque)
ECarlaServerResponse SetActorTargetAngularVelocity(const FVector &AngularVelocity)
ECarlaServerResponse AddActorImpulse(const FVector &Impulse)
virtual ECarlaServerResponse SetVehicleLightState(const FVehicleLightState &)
virtual ECarlaServerResponse SetActorDead()
virtual ECarlaServerResponse ApplyControlToVehicle(const FVehicleControl &, const EVehicleInputPriority &)
virtual ECarlaServerResponse GetWheelSteerAngle(const EVehicleWheelLocation &, float &)
virtual ECarlaServerResponse ApplyAckermannControllerSettings(const FAckermannControllerSettings &)
virtual ECarlaServerResponse SetActorCollisions(bool bEnabled)
virtual ECarlaServerResponse GetVehicleTelemetryData(FVehicleTelemetryData &)
virtual ECarlaServerResponse CloseVehicleDoor(const EVehicleDoor)
virtual ECarlaServerResponse RestorePhysXPhysics()
virtual ECarlaServerResponse GetFailureState(carla::rpc::VehicleFailureState &)
carla::rpc::ActorState GetActorState() const
FVector GetActorAngularVelocity() const
virtual ECarlaServerResponse ApplyAckermannControlToVehicle(const FVehicleAckermannControl &, const EVehicleInputPriority &)
void SetParent(IdType InParentId)
void SetAttachmentType(carla::rpc::AttachmentType InAttachmentType)
virtual ECarlaServerResponse SetWalkerState(const FTransform &Transform, carla::rpc::WalkerControl WalkerControl)
virtual ECarlaServerResponse DisableActorConstantVelocity()
virtual ECarlaServerResponse GetVehicleLightState(FVehicleLightState &)
virtual ECarlaServerResponse SetBonesTransform(const FWalkerBoneControlIn &)
FTransform GetActorGlobalTransform() const
FVector GetActorVelocity() const
virtual ECarlaServerResponse FreezeTrafficLight(bool)
void SetActorGlobalTransform(const FTransform &Transform, ETeleportType Teleport=ETeleportType::TeleportPhysics)
virtual ECarlaServerResponse ApplyControlToWalker(const FWalkerControl &)
void SetActorState(carla::rpc::ActorState InState)
virtual ECarlaServerResponse GetVehicleControl(FVehicleControl &)
void SetActorGlobalLocation(const FVector &Location, ETeleportType Teleport=ETeleportType::TeleportPhysics)
FActorData * GetActorData()
TSharedPtr< const FActorInfo > Info
FVector GetActorGlobalLocation() const
bool IsPendingKill() const
virtual ECarlaServerResponse UseCarSimRoad(bool)
virtual ECarlaServerResponse ApplyPhysicsControl(const FVehiclePhysicsControl &)
TArray< IdType > Children
virtual ECarlaServerResponse SetLightGreenTime(float)
void AddChildren(IdType ChildId)
virtual ETrafficLightState GetTrafficLightState() const
virtual ECarlaServerResponse OpenVehicleDoor(const EVehicleDoor)
const T * GetActorData() const
const FActorData * GetActorData() const
virtual UTrafficLightController * GetTrafficLightController()
virtual ECarlaServerResponse GetWalkerControl(FWalkerControl &)
void SetActorLocalLocation(const FVector &Location, ETeleportType Teleport=ETeleportType::TeleportPhysics)
const FActorInfo * GetActorInfo() const
TSharedPtr< FActorData > ActorData
IdType GetActorId() const
virtual ECarlaServerResponse EnableActorConstantVelocity(const FVector &)
FTransform GetActorLocalTransform() const
virtual ECarlaServerResponse SetWheelSteerDirection(const EVehicleWheelLocation &, float)
virtual ECarlaServerResponse EnableCarSim(const FString &)
ECarlaServerResponse SetActorTargetVelocity(const FVector &Velocity)
ECarlaServerResponse AddActorForce(const FVector &Force)
virtual ECarlaServerResponse BlendPose(float Blend)
virtual ECarlaServerResponse ShowVehicleDebugTelemetry(bool)
virtual ECarlaServerResponse SetActorSimulatePhysics(bool bEnabled)
virtual ECarlaServerResponse EnableChronoPhysics(uint64_t, float, const FString &, const FString &, const FString &, const FString &)
void WakeActorUp(UCarlaEpisode *CarlaEpisode)
ECarlaServerResponse AddActorAngularImpulse(const FVector &AngularInpulse)
virtual ECarlaServerResponse SetTrafficLightState(const ETrafficLightState &)
const TArray< IdType > & GetChildren() const
void PutActorToSleep(UCarlaEpisode *CarlaEpisode)
const AActor * GetActor() const
virtual ECarlaServerResponse SetLightGreenTime(float time) final
virtual ECarlaServerResponse FreezeTrafficLight(bool bFreeze) final
virtual ETrafficLightState GetTrafficLightState() const final
virtual ECarlaServerResponse SetTrafficLightState(const ETrafficLightState &State) final
virtual ECarlaServerResponse ResetTrafficLightGroup() final
virtual UTrafficLightController * GetTrafficLightController() final
virtual ECarlaServerResponse SetLightRedTime(float time) final
virtual ECarlaServerResponse SetLightYellowTime(float time) final
virtual ECarlaServerResponse SetActorAutopilot(bool bEnabled, bool bKeepState=false) final
virtual ECarlaServerResponse EnableChronoPhysics(uint64_t MaxSubsteps, float MaxSubstepDeltaTime, const FString &VehicleJSON, const FString &PowertrainJSON, const FString &TireJSON, const FString &BaseJSONPath) final
virtual ECarlaServerResponse SetActorSimulatePhysics(bool bSimulatePhysics) final
virtual ECarlaServerResponse DisableActorConstantVelocity() final
virtual ECarlaServerResponse GetVehicleLightState(FVehicleLightState &LightState) final
virtual ECarlaServerResponse GetFailureState(carla::rpc::VehicleFailureState &) final
virtual ECarlaServerResponse GetWheelSteerAngle(const EVehicleWheelLocation &WheelLocation, float &Angle)
virtual ECarlaServerResponse ApplyControlToVehicle(const FVehicleControl &, const EVehicleInputPriority &) final
virtual ECarlaServerResponse EnableActorConstantVelocity(const FVector &Velocity) final
virtual ECarlaServerResponse SetVehicleLightState(const FVehicleLightState &LightState) final
virtual ECarlaServerResponse EnableCarSim(const FString &SimfilePath) final
virtual ECarlaServerResponse GetPhysicsControl(FVehiclePhysicsControl &PhysicsControl) final
virtual ECarlaServerResponse SetWheelSteerDirection(const EVehicleWheelLocation &WheelLocation, float AngleInDeg) final
virtual ECarlaServerResponse UseCarSimRoad(bool bEnabled) final
virtual ECarlaServerResponse GetVehicleControl(FVehicleControl &) final
virtual ECarlaServerResponse ApplyAckermannControllerSettings(const FAckermannControllerSettings &) final
virtual ECarlaServerResponse GetVehicleTelemetryData(FVehicleTelemetryData &) final
virtual ECarlaServerResponse ApplyAckermannControlToVehicle(const FVehicleAckermannControl &, const EVehicleInputPriority &) final
virtual ECarlaServerResponse ApplyPhysicsControl(const FVehiclePhysicsControl &PhysicsControl) final
virtual ECarlaServerResponse OpenVehicleDoor(const EVehicleDoor DoorIdx) final
virtual ECarlaServerResponse CloseVehicleDoor(const EVehicleDoor DoorIdx) final
virtual ECarlaServerResponse GetVehicleAckermannControl(FVehicleAckermannControl &) final
virtual ECarlaServerResponse RestorePhysXPhysics()
virtual ECarlaServerResponse ShowVehicleDebugTelemetry(bool bEnabled) final
virtual ECarlaServerResponse GetAckermannControllerSettings(FAckermannControllerSettings &) final
virtual ECarlaServerResponse BlendPose(float Blend)
virtual ECarlaServerResponse SetActorSimulatePhysics(bool bSimulatePhysics) final
virtual ECarlaServerResponse SetActorEnableGravity(bool bEnabled) final
virtual ECarlaServerResponse GetPoseFromAnimation()
virtual ECarlaServerResponse SetBonesTransform(const FWalkerBoneControlIn &) final
virtual ECarlaServerResponse GetWalkerControl(FWalkerControl &) final
virtual ECarlaServerResponse SetWalkerState(const FTransform &Transform, carla::rpc::WalkerControl WalkerControl) final
virtual ECarlaServerResponse SetActorDead()
virtual ECarlaServerResponse ApplyControlToWalker(const FWalkerControl &) final
virtual ECarlaServerResponse GetBonesTransform(FWalkerBoneControlOut &) final
从 OpenDrive 映射一个控制器。控制相关交通信号灯并包含其循环