48 TSharedPtr<const FActorInfo>
Info,
218 return dynamic_cast<T*
>(
ActorData.Get());
224 return dynamic_cast<T*
>(
ActorData.Get());
240 const FVector& Location,
241 ETeleportType Teleport = ETeleportType::TeleportPhysics);
244 const FVector& Location,
245 ETeleportType Teleport = ETeleportType::TeleportPhysics);
248 const FTransform& Transform,
249 ETeleportType Teleport = ETeleportType::TeleportPhysics);
252 const FTransform& Transform,
253 ETeleportType Teleport = ETeleportType::TeleportPhysics);
286 const FString& ComponentName, FTransform& Transform)
const;
289 const FString& ComponentName, FTransform& Transform)
const;
306 const TArray<FTransform>& Relative, TArray<FTransform>& Transforms)
const;
457 const FString&,
const FString&,
const FString&,
const FString&)
471 return ETrafficLightState::Off;
498 const FTransform& Transform,
554 TSharedPtr<const FActorInfo>
Info,
569 TSharedPtr<const FActorInfo>
Info =
nullptr;
611 TSharedPtr<const FActorInfo>
Info,
688 uint64_t MaxSubsteps,
float MaxSubstepDeltaTime,
689 const FString& VehicleJSON,
const FString& PowertrainJSON,
690 const FString& TireJSON,
const FString& BaseJSONPath)
final;
699 TSharedPtr<const FActorInfo>
Info,
711 TSharedPtr<const FActorInfo>
Info,
722 TSharedPtr<const FActorInfo>
Info,
750 TSharedPtr<const FActorInfo>
Info,
755 const FTransform& Transform,
793 TSharedPtr<const FActorInfo>
Info,
FVector CarlaGetActorAngularVelocityInRadians(const AActor &Actor)
Angular velocity of Actor in the world frame, in rad/s: on a Multi-GPU secondary the primary's (a mir...
EVehicleDoor
Type of door to open/close.
A registry of all the Carla actors.
A view over an actor and its properties.
ECarlaServerResponse GetActorComponentNames(TArray< FString > &Names) const
carla::rpc::ActorState State
ECarlaServerResponse AddActorImpulseAtLocation(const FVector &Impulse, const FVector &Location)
uint64 MirroredKinematicsFrame
virtual ECarlaServerResponse GetPhysicsControl(FVehiclePhysicsControl &)
ECarlaServerResponse GetActorSocketNames(TArray< FString > &Names) const
carla::rpc::AttachmentType GetAttachmentType() const
ECarlaServerResponse GetActorBoneWorldTransforms(TArray< FTransform > &Transforms) const
virtual ECarlaServerResponse EnableActorConstantAcceleration(const FVector &)
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 &)
ECarlaServerResponse ToWorld(const TArray< FTransform > &Relative, TArray< FTransform > &Transforms) const
virtual ECarlaServerResponse SetLightRedTime(float)
virtual ECarlaServerResponse ResetTrafficLightGroup()
void SetMirroredKinematics(const FVector &Velocity, const FVector &AngularVelocityRadians, uint64 Frame)
Multi-GPU secondary: the primary's velocities of the actor this one mirrors, in the world frame (cm/s...
virtual ECarlaServerResponse DisableActorConstantAcceleration()
ActorType GetActorType() const
FVector GetActorLocalLocation() const
ECarlaServerResponse GetActorBoneRelativeTransforms(TArray< FTransform > &Transforms) 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)
virtual ECarlaServerResponse SetWheelAnimationOverride(bool)
FVector MirroredAngularVelocity
carla::rpc::AttachmentType Attachment
ECarlaServerResponse AddActorTorque(const FVector &Torque)
void ClearMirroredKinematics()
ECarlaServerResponse SetActorTargetAngularVelocity(const FVector &AngularVelocity)
ECarlaServerResponse AddActorImpulse(const FVector &Impulse)
virtual ECarlaServerResponse SetVehicleLightState(const FVehicleLightState &)
virtual ECarlaServerResponse SetActorDead()
bool HasMirroredKinematics() const
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 SetWheelSuspensionOffset(const EVehicleWheelLocation &, float)
TWeakObjectPtr< AActor > TheActor
Weak: World Partition can stream out (destroy) the actor without going through the episode,...
virtual ECarlaServerResponse GetVehicleTelemetryData(FVehicleTelemetryData &)
virtual ECarlaServerResponse CloseVehicleDoor(const EVehicleDoor)
ECarlaServerResponse GetActorRigSnapshot(FActorRigSnapshot &Rig) const
virtual ECarlaServerResponse GetFailureState(carla::rpc::VehicleFailureState &)
carla::rpc::ActorState GetActorState() const
IdType GetPrimaryActorId() const
The id clients know this actor by: the primary's for a mirror on a Multi-GPU secondary,...
FVector GetActorAngularVelocity() const
virtual ECarlaServerResponse ApplyAckermannControlToVehicle(const FVehicleAckermannControl &, const EVehicleInputPriority &)
virtual ECarlaServerResponse GetWheelPitchAngle(const EVehicleWheelLocation &, float &)
void SetParent(IdType InParentId)
void SetAttachmentType(carla::rpc::AttachmentType InAttachmentType)
uint64 GetMirroredKinematicsFrame() const
virtual ECarlaServerResponse SetWalkerState(const FTransform &Transform, carla::rpc::WalkerControl WalkerControl)
void SetPrimaryActorId(IdType InPrimaryActorId)
Multi-GPU secondary: the id the primary gave the actor this one mirrors.
virtual ECarlaServerResponse DisableActorConstantVelocity()
ECarlaServerResponse GetActorComponentWorldTransform(const FString &ComponentName, FTransform &Transform) const
ECarlaServerResponse GetActorSocketWorldTransforms(TArray< FTransform > &Transforms) const
ECarlaServerResponse GetActorBoneNames(TArray< FString > &Names) const
ECarlaServerResponse GetActorSocketRelativeTransforms(TArray< FTransform > &Transforms) const
virtual ECarlaServerResponse GetVehicleLightState(FVehicleLightState &)
virtual ECarlaServerResponse SetBonesTransform(const FWalkerBoneControlIn &)
FTransform GetActorGlobalTransform() const
virtual 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
bool bHasMirroredKinematics
ECarlaServerResponse GetActorComponentRelativeTransform(const FString &ComponentName, FTransform &Transform) const
virtual ECarlaServerResponse OpenVehicleDoor(const EVehicleDoor)
const T * GetActorData() const
const FActorData * GetActorData() const
virtual UTrafficLightController * GetTrafficLightController()
virtual ECarlaServerResponse GetWalkerControl(FWalkerControl &)
FVector GetMirroredAngularVelocityInRadians() const
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)
virtual ECarlaServerResponse SetWheelPitchAngle(const EVehicleWheelLocation &, float)
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 &)
virtual ECarlaServerResponse GetWheelSuspensionOffset(const EVehicleWheelLocation &, float &)
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 SetWheelPitchAngle(const EVehicleWheelLocation &WheelLocation, float AngleInDeg) final
virtual ECarlaServerResponse GetWheelSuspensionOffset(const EVehicleWheelLocation &WheelLocation, float &Offset) final
Offset in meters.
virtual ECarlaServerResponse GetFailureState(carla::rpc::VehicleFailureState &) final
virtual ECarlaServerResponse GetWheelPitchAngle(const EVehicleWheelLocation &WheelLocation, float &Angle) final
virtual ECarlaServerResponse SetWheelAnimationOverride(bool bEnabled) final
virtual ECarlaServerResponse GetWheelSteerAngle(const EVehicleWheelLocation &WheelLocation, float &Angle)
virtual ECarlaServerResponse ApplyControlToVehicle(const FVehicleControl &, const EVehicleInputPriority &) final
virtual ECarlaServerResponse DisableActorConstantAcceleration() final
virtual ECarlaServerResponse EnableActorConstantVelocity(const FVector &Velocity) final
virtual ECarlaServerResponse GetVehicleTelemetryData(FVehicleTelemetryData &TelemetryData) 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 SetWheelSuspensionOffset(const EVehicleWheelLocation &WheelLocation, float Offset) final
Offset in meters.
virtual ECarlaServerResponse UseCarSimRoad(bool bEnabled) final
virtual ECarlaServerResponse GetVehicleControl(FVehicleControl &) final
virtual ECarlaServerResponse ApplyAckermannControllerSettings(const FAckermannControllerSettings &) final
virtual ECarlaServerResponse EnableActorConstantAcceleration(const FVector &Acceleration) 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 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 FVector GetActorVelocity() const final
Walkers move via UCharacterMovementComponent (kinematic sweeps driven by AddMovementInput),...
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
Maps a controller from OpenDrive.
A view over an actor and its properties.