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
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.
geom::Location GetLocation() const
Return the current location of the actor.
std::vector< std::string > GetComponentNames() const
std::vector< geom::Transform > GetSocketRelativeTransforms() const
void SetTransform(const geom::Transform &transform)
Teleport and rotate the actor to transform.
std::vector< std::string > GetBoneNames() const
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::Vector3D GetAngularVelocity() const
Return the current 3D angular velocity of the actor.
geom::Transform GetComponentWorldTransform(const std::string componentName) const
std::vector< geom::Transform > GetSocketWorldTransforms() const
void EnableConstantVelocity(const geom::Vector3D &vector)
Enable a constant velocity mode
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.
geom::Transform GetComponentRelativeTransform(const std::string componentName) const
std::vector< geom::Transform > GetBoneWorldTransforms() const
void SetCollisions(bool enabled=true)
Enable or disable collisions on this actor.
std::vector< geom::Transform > GetBoneRelativeTransforms() const
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
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.