CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Private 类型 | 所有成员列表
carla::client::Actor类 参考

Represents an actor in the simulation. 更多...

#include <Actor.h>

+ 类 carla::client::Actor 继承关系图:
+ carla::client::Actor 的协作图:

Public 成员函数

 Actor (ActorInitializer init)
 
void AddAngularImpulse (const geom::Vector3D &vector)
 Add angular impulse to the actor.
 
void AddForce (const geom::Vector3D &force)
 Add force to the actor at its center of mass.
 
void AddForce (const geom::Vector3D &force, const geom::Vector3D &location)
 Add force to the actor at certain location.
 
void AddImpulse (const geom::Vector3D &impulse, const geom::Vector3D &location)
 Add impulse to the actor at certain location.
 
void AddImpulse (const geom::Vector3D &vector)
 Add impulse to the actor at its center of mass.
 
void AddTorque (const geom::Vector3D &vector)
 Add a torque to the actor.
 
virtual bool Destroy ()
 Tell the simulator to destroy this Actor, and return whether the actor was successfully destroyed.
 
void DisableConstantVelocity ()
 Disable the constant velocity mode
 
void EnableConstantVelocity (const geom::Vector3D &vector)
 Enable a constant velocity mode
 
geom::Vector3D GetAcceleration () const
 Return the current 3D acceleration of the actor.
 
rpc::ActorState GetActorState () const
 
geom::Vector3D GetAngularVelocity () const
 Return the current 3D angular velocity of the actor.
 
std::vector< std::string > GetBoneNames () const
 
std::vector< geom::TransformGetBoneRelativeTransforms () const
 
std::vector< geom::TransformGetBoneWorldTransforms () const
 
std::vector< std::string > GetComponentNames () const
 
geom::Transform GetComponentRelativeTransform (const std::string componentName) const
 
geom::Transform GetComponentWorldTransform (const std::string componentName) const
 
geom::Location GetLocation () const
 Return the current location of the actor.
 
std::vector< std::string > GetSocketNames () const
 
std::vector< geom::TransformGetSocketRelativeTransforms () const
 
std::vector< geom::TransformGetSocketWorldTransforms () const
 
geom::Transform GetTransform () const
 Return the current transform of the actor.
 
geom::Vector3D GetVelocity () const
 Return the current 3D velocity of the actor.
 
bool IsActive () const
 
bool IsAlive () const
 
bool IsDormant () const
 
const auto & Serialize () const
 
void SetActorDead ()
 Set actor as dead and starts his life span
 
void SetCollisions (bool enabled=true)
 Enable or disable collisions on this actor.
 
void SetEnableGravity (bool enabled=true)
 Enable or disable gravity on this actor.
 
void SetLocation (const geom::Location &location)
 Teleport the actor to location.
 
void SetSimulatePhysics (bool enabled=true)
 Enable or disable physics simulation on this actor.
 
void SetTargetAngularVelocity (const geom::Vector3D &vector)
 Set the angular velocity of the actor before applying physics.
 
void SetTargetVelocity (const geom::Vector3D &vector)
 Set the actor velocity before applying physics.
 
void SetTransform (const geom::Transform &transform)
 Teleport and rotate the actor to transform.
 
virtual ~Actor ()=default
 
- Public 成员函数 继承自 carla::client::detail::ActorState
const std::vector< ActorAttributeValue > & GetAttributes () const
 
const std::string & GetDisplayId () const
 
ActorId GetId () const
 
SharedPtr< ActorGetParent () const
 
ActorId GetParentId () const
 
const std::vector< uint8_t > & GetSemanticTags () const
 
const std::string & GetTypeId () const
 
World GetWorld () const
 

Private 类型

using Super = detail::ActorState
 

额外继承的成员函数

- Protected 成员函数 继承自 carla::client::detail::ActorState
 ActorState (rpc::Actor description, EpisodeProxy episode)
 
const rpc::ActorGetActorDescription () const
 
const geom::BoundingBoxGetBoundingBox () const
 
EpisodeProxyGetEpisode ()
 
const EpisodeProxyGetEpisode () const
 
- Private 成员函数 继承自 carla::profiler::LifetimeProfiled
 LifetimeProfiled ()=default
 

详细描述

Represents an actor in the simulation.

在文件 client/Actor.h18 行定义.

成员类型定义说明

◆ Super

using carla::client::Actor::Super = detail::ActorState
private

在文件 client/Actor.h22 行定义.

构造及析构函数说明

◆ Actor()

carla::client::Actor::Actor ( ActorInitializer init)
inlineexplicit

在文件 client/Actor.h25 行定义.

◆ ~Actor()

virtual carla::client::Actor::~Actor ( )
virtualdefault

成员函数说明

◆ AddAngularImpulse()

void carla::client::Actor::AddAngularImpulse ( const geom::Vector3D & vector)

Add angular impulse to the actor.

在文件 Actor.cpp111 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ AddForce() [1/2]

void carla::client::Actor::AddForce ( const geom::Vector3D & force)

Add force to the actor at its center of mass.

在文件 Actor.cpp103 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ AddForce() [2/2]

void carla::client::Actor::AddForce ( const geom::Vector3D & force,
const geom::Vector3D & location )

Add force to the actor at certain location.

在文件 Actor.cpp107 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ AddImpulse() [1/2]

void carla::client::Actor::AddImpulse ( const geom::Vector3D & impulse,
const geom::Vector3D & location )

Add impulse to the actor at certain location.

在文件 Actor.cpp99 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ AddImpulse() [2/2]

void carla::client::Actor::AddImpulse ( const geom::Vector3D & vector)

Add impulse to the actor at its center of mass.

在文件 Actor.cpp95 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ AddTorque()

void carla::client::Actor::AddTorque ( const geom::Vector3D & vector)

Add a torque to the actor.

在文件 Actor.cpp115 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ Destroy()

bool carla::client::Actor::Destroy ( )
virtual

Tell the simulator to destroy this Actor, and return whether the actor was successfully destroyed.

注解
It has no effect if the Actor was already successfully destroyed.
警告
This function blocks until the destruction operation is completed by the simulator.

carla::client::ServerSideSensor 重载.

在文件 Actor.cpp139 行定义.

引用了 GetActorState(), carla::client::detail::ActorState::GetDisplayId(), carla::client::detail::ActorState::GetEpisode(), carla::rpc::Invalid, carla::client::detail::EpisodeProxyImpl< PointerT >::Lock() , 以及 carla::log_warning().

+ 函数调用图:

◆ DisableConstantVelocity()

void carla::client::Actor::DisableConstantVelocity ( )

Disable the constant velocity mode

在文件 Actor.cpp91 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ EnableConstantVelocity()

void carla::client::Actor::EnableConstantVelocity ( const geom::Vector3D & vector)

Enable a constant velocity mode

在文件 Actor.cpp87 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetAcceleration()

geom::Vector3D carla::client::Actor::GetAcceleration ( ) const

Return the current 3D acceleration of the actor.

注解
This function does not call the simulator, it returns the acceleration calculated after the actor's velocity.

在文件 Actor.cpp31 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetActorState()

rpc::ActorState carla::client::Actor::GetActorState ( ) const

在文件 Actor.cpp135 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

被这些函数引用 Destroy(), IsActive(), IsAlive() , 以及 IsDormant().

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

◆ GetAngularVelocity()

geom::Vector3D carla::client::Actor::GetAngularVelocity ( ) const

Return the current 3D angular velocity of the actor.

注解
This function does not call the simulator, it returns the angular velocity received in the last tick.

在文件 Actor.cpp27 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

被这些函数引用 carla::rss::RssCheck::GetHeadingChange().

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

◆ GetBoneNames()

std::vector< std::string > carla::client::Actor::GetBoneNames ( ) const

在文件 Actor.cpp55 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetBoneRelativeTransforms()

std::vector< geom::Transform > carla::client::Actor::GetBoneRelativeTransforms ( ) const

在文件 Actor.cpp47 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetBoneWorldTransforms()

std::vector< geom::Transform > carla::client::Actor::GetBoneWorldTransforms ( ) const

在文件 Actor.cpp43 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetComponentNames()

std::vector< std::string > carla::client::Actor::GetComponentNames ( ) const

在文件 Actor.cpp51 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetComponentRelativeTransform()

geom::Transform carla::client::Actor::GetComponentRelativeTransform ( const std::string componentName) const

在文件 Actor.cpp39 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetComponentWorldTransform()

geom::Transform carla::client::Actor::GetComponentWorldTransform ( const std::string componentName) const

在文件 Actor.cpp35 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetLocation()

geom::Location carla::client::Actor::GetLocation ( ) const

Return the current location of the actor.

注解
This function does not call the simulator, it returns the location received in the last tick.

在文件 Actor.cpp15 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetSocketNames()

std::vector< std::string > carla::client::Actor::GetSocketNames ( ) const

在文件 Actor.cpp67 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetSocketRelativeTransforms()

std::vector< geom::Transform > carla::client::Actor::GetSocketRelativeTransforms ( ) const

在文件 Actor.cpp63 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetSocketWorldTransforms()

std::vector< geom::Transform > carla::client::Actor::GetSocketWorldTransforms ( ) const

在文件 Actor.cpp59 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ GetTransform()

geom::Transform carla::client::Actor::GetTransform ( ) const

Return the current transform of the actor.

注解
This function does not call the simulator, it returns the transform received in the last tick.

在文件 Actor.cpp19 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

被这些函数引用 carla::rss::RssCheck::CreateWorldModel(), carla::rss::RssCheck::GetSpeed(), carla::client::TrafficLight::GetStopWaypoints() , 以及 carla::client::RssSensor::TickRssSensorThreadLocked().

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

◆ GetVelocity()

geom::Vector3D carla::client::Actor::GetVelocity ( ) const

Return the current 3D velocity of the actor.

注解
This function does not call the simulator, it returns the velocity received in the last tick.

在文件 Actor.cpp23 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

被这些函数引用 carla::rss::RssCheck::GetSpeed().

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

◆ IsActive()

bool carla::client::Actor::IsActive ( ) const
inline

在文件 client/Actor.h139 行定义.

引用了 carla::rpc::Active, GetActorState(), carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::IsValid().

+ 函数调用图:

◆ IsAlive()

bool carla::client::Actor::IsAlive ( ) const
inline

在文件 client/Actor.h131 行定义.

引用了 GetActorState(), carla::client::detail::ActorState::GetEpisode(), carla::rpc::Invalid, carla::client::detail::EpisodeProxyImpl< PointerT >::IsValid() , 以及 carla::rpc::PendingKill.

被这些函数引用 carla::client::ServerSideSensor::~ServerSideSensor().

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

◆ IsDormant()

bool carla::client::Actor::IsDormant ( ) const
inline

在文件 client/Actor.h135 行定义.

引用了 carla::rpc::Dormant, GetActorState(), carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::IsValid().

+ 函数调用图:

◆ Serialize()

const auto & carla::client::Actor::Serialize ( ) const
inline

在文件 client/Actor.h152 行定义.

引用了 carla::client::detail::ActorState::GetActorDescription().

+ 函数调用图:

◆ SetActorDead()

void carla::client::Actor::SetActorDead ( )

Set actor as dead and starts his life span

在文件 Actor.cpp127 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ SetCollisions()

void carla::client::Actor::SetCollisions ( bool enabled = true)

Enable or disable collisions on this actor.

在文件 Actor.cpp123 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ SetEnableGravity()

void carla::client::Actor::SetEnableGravity ( bool enabled = true)

Enable or disable gravity on this actor.

在文件 Actor.cpp131 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ SetLocation()

void carla::client::Actor::SetLocation ( const geom::Location & location)

Teleport the actor to location.

在文件 Actor.cpp71 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ SetSimulatePhysics()

void carla::client::Actor::SetSimulatePhysics ( bool enabled = true)

Enable or disable physics simulation on this actor.

在文件 Actor.cpp119 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ SetTargetAngularVelocity()

void carla::client::Actor::SetTargetAngularVelocity ( const geom::Vector3D & vector)

Set the angular velocity of the actor before applying physics.

在文件 Actor.cpp83 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ SetTargetVelocity()

void carla::client::Actor::SetTargetVelocity ( const geom::Vector3D & vector)

Set the actor velocity before applying physics.

在文件 Actor.cpp79 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

◆ SetTransform()

void carla::client::Actor::SetTransform ( const geom::Transform & transform)

Teleport and rotate the actor to transform.

在文件 Actor.cpp75 行定义.

引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().

+ 函数调用图:

该类的文档由以下文件生成: