29 using ActorState::GetBoundingBox;
#define LIBCARLA_INITIALIZE_LIFETIME_PROFILER(display_name)
Used to initialize Actor classes.
Represents an actor in the simulation.
void DisableConstantVelocity()
Disable the constant velocity mode.
void AddImpulse(const geom::Vector3D &vector)
Add impulse to the actor at its center of mass.
std::vector< std::string > GetSocketNames() const
Return the names of every socket on every scene component attached to the actor.
void AddAngularImpulse(const geom::Vector3D &vector)
Add angular impulse to the actor.
virtual bool Destroy()
Tell the simulator to destroy this Actor, and return whether the actor was successfully destroyed.
void AddTorque(const geom::Vector3D &vector)
Add a torque to the actor.
void EnableConstantAcceleration(const geom::Vector3D &vector)
Enable a constant acceleration mode (direct acceleration, no pedal input)
geom::Location GetLocation() const
Return the current location of the actor.
std::vector< std::string > GetComponentNames() const
Return the names of every actor component attached to the actor.
std::vector< geom::Transform > GetSocketRelativeTransforms() const
Return the actor-relative transforms of every socket on every scene component attached to the actor.
void SetTransform(const geom::Transform &transform)
Teleport and rotate the actor to transform.
std::vector< std::string > GetBoneNames() const
Return the names of every bone reachable from the actor's first skinned mesh component.
void SetSimulatePhysics(bool enabled=true)
Enable or disable physics simulation on this actor.
void AddForce(const geom::Vector3D &force)
Add force to the actor at its center of mass.
void SetEnableGravity(bool enabled=true)
Enable or disable gravity on this actor.
geom::Vector3D GetVelocity() const
Return the current 3D velocity of the actor.
Actor(ActorInitializer init)
void SetActorDead()
Set actor as dead and starts his life span.
void SetLocation(const geom::Location &location)
Teleport the actor to location.
const auto & Serialize() const
geom::Transform GetComponentWorldTransform(const std::string &component_name) const
Return the world-space transform of the scene component named component_name attached to the actor.
geom::Vector3D GetAngularVelocity() const
Return the current 3D angular velocity of the actor.
std::vector< geom::Transform > GetSocketWorldTransforms() const
Return the world-space transforms of every socket on every scene component attached to the actor.
std::string GetActorName() const
Return the name of the underlying Unreal actor.
void EnableConstantVelocity(const geom::Vector3D &vector)
Enable a constant velocity mode.
void ApplyTexture(const rpc::MaterialParameter &MaterialParameter, const rpc::TextureColor &Texture)
std::string GetActorClassName() const
Return the name of the underlying actor's Unreal class.
void SetTargetAngularVelocity(const geom::Vector3D &vector)
Set the angular velocity of the actor before applying physics.
geom::Transform GetTransform() const
Return the current transform of the actor.
std::vector< geom::Transform > GetBoneWorldTransforms() const
Return the world-space transforms of every bone reachable from the actor's skinned mesh components.
void SetCollisions(bool enabled=true)
Enable or disable collisions on this actor.
std::vector< geom::Transform > GetBoneRelativeTransforms() const
Return the component-space transforms of every bone reachable from the actor's skinned mesh component...
geom::Vector3D GetAcceleration() const
Return the current 3D acceleration of the actor.
void SetTargetVelocity(const geom::Vector3D &vector)
Set the actor velocity before applying physics.
rpc::ActorState GetActorState() const
void DisableConstantAcceleration()
Disable the constant acceleration mode.
geom::Transform GetComponentRelativeTransform(const std::string &component_name) const
Return the parent-relative transform of the scene component named component_name attached to the acto...
Internal state of an Actor.
EpisodeProxy & GetEpisode()
const rpc::Actor & GetActorDescription() const
const std::string & GetDisplayId() const
bool IsValid() const noexcept
This file contains definitions of common data structures used in traffic manager.