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

#include <TrafficLight.h>

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

Public 成员函数

void Freeze (bool freeze)
 
std::vector< SharedPtr< Waypoint > > GetAffectedLaneWaypoints () const
 
float GetElapsedTime () const
 
float GetGreenTime () const
 
std::vector< SharedPtr< TrafficLight > > GetGroupTrafficLights ()
 返回该交通灯所属组中的所有交通灯。
 
std::vector< geom::BoundingBoxGetLightBoxes () const
 
road::SignId GetOpenDRIVEID () const
 
uint32_t GetPoleIndex ()
 返回交通信号灯组中灯杆的索引 // 获取交通信号灯组中灯杆的索引值的函数,返回一个uint32_t类型的索引值,用于标识交通灯在所属灯组中的具体位置等相关信息
 
float GetRedTime () const
 
rpc::TrafficLightState GetState () const
 返回交通灯的当前状态。
 
std::vector< SharedPtr< Waypoint > > GetStopWaypoints () const
 
float GetYellowTime () const
 
bool IsFrozen () const
 
void ResetGroup ()
 
void SetGreenTime (float green_time)
 
void SetRedTime (float red_time)
 
void SetState (rpc::TrafficLightState state)
 
void SetYellowTime (float yellow_time)
 
 TrafficLight (ActorInitializer init)
 
- Public 成员函数 继承自 carla::client::TrafficSign
carla::road::SignId GetSignId () const
 
const geom::BoundingBoxGetTriggerVolume () const
 
 TrafficSign (ActorInitializer init)
 
- Public 成员函数 继承自 carla::client::Actor
 Actor (ActorInitializer init)
 
void AddAngularImpulse (const geom::Vector3D &vector)
 对行为体施加角冲量。
 
void AddForce (const geom::Vector3D &force)
 在行为体的质心施加力。
 
void AddForce (const geom::Vector3D &force, const geom::Vector3D &location)
 在某个位置对行为体施加力。
 
void AddImpulse (const geom::Vector3D &impulse, const geom::Vector3D &location)
 在某个位置对行为体施加冲量。
 
void AddImpulse (const geom::Vector3D &vector)
 在行为体的质心施加冲量。
 
void AddTorque (const geom::Vector3D &vector)
 对行为体施加扭矩。
 
virtual bool Destroy ()
 告诉模拟器销毁该行为体,并返回行为体是否成功被销毁的结果。
 
void DisableConstantVelocity ()
 禁用恒定速度模式。
 
void EnableConstantVelocity (const geom::Vector3D &vector)
 启用恒定速度模式。
 
geom::Vector3D GetAcceleration () const
 返回行为体的当前3D加速度。
 
rpc::ActorState GetActorState () const
 
geom::Vector3D GetAngularVelocity () const
 返回行为体的当前3D角速度。
 
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
 获取指定组件相对于Actor的相对坐标变换。 这个函数返回一个包含位置、旋转和平移信息的Transform对象, 表示指定组件相对于Actor原点的位置和方向。
 
geom::Transform GetComponentWorldTransform (const std::string componentName) const
 获取指定组件的世界坐标变换。 这个函数返回一个包含位置、旋转和平移信息的Transform对象, 表示指定组件在世界坐标系中的位置和方向。
 
geom::Location GetLocation () const
 返回行为体的当前位置。
 
std::vector< std::string > GetSocketNames () const
 
std::vector< geom::TransformGetSocketRelativeTransforms () const
 
std::vector< geom::TransformGetSocketWorldTransforms () const
 
geom::Transform GetTransform () const
 返回行为体的当前变换(位置和方向)。
 
geom::Vector3D GetVelocity () const
 返回行为体的当前3D速度。
 
bool IsActive () const
 
bool IsAlive () const
 
bool IsDormant () const
 
const auto & Serialize () const
 
void SetActorDead ()
 将行为体标记为已死亡并开始其生命周期。
 
void SetCollisions (bool enabled=true)
 启用或禁用该行为体的碰撞。
 
void SetEnableGravity (bool enabled=true)
 启用或禁用该行为体的重力。
 
void SetLocation (const geom::Location &location)
 将行为体传送到 location。
 
void SetSimulatePhysics (bool enabled=true)
 启用或禁用该行为体的物理模拟。
 
void SetTargetAngularVelocity (const geom::Vector3D &vector)
 在应用物理之前设置行为体的角速度。
 
void SetTargetVelocity (const geom::Vector3D &vector)
 在应用物理之前设置行为体的速度。
 
void SetTransform (const geom::Transform &transform)
 将行为体传送并旋转到 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
 

额外继承的成员函数

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

详细描述

在文件 TrafficLight.h18 行定义.

构造及析构函数说明

◆ TrafficLight()

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

在文件 TrafficLight.h22 行定义.

成员函数说明

◆ Freeze()

void carla::client::TrafficLight::Freeze ( bool freeze)

在文件 TrafficLight.cpp65 行定义.

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

+ 函数调用图:

◆ GetAffectedLaneWaypoints()

std::vector< SharedPtr< Waypoint > > carla::client::TrafficLight::GetAffectedLaneWaypoints ( ) const

在文件 TrafficLight.cpp101 行定义.

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

+ 函数调用图:

◆ GetElapsedTime()

float carla::client::TrafficLight::GetElapsedTime ( ) const
注解
此函数不调用模拟器,它返回最后一个节拍中接收到的数据。// 获取交通灯从当前状态开始已经过去的时间的函数,返回一个float类型的时间值,表示交通灯处于当前状态已经持续的时长,同样依赖之前记录的数据,不向模拟器查询

在文件 TrafficLight.cpp60 行定义.

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

+ 函数调用图:

◆ GetGreenTime()

float carla::client::TrafficLight::GetGreenTime ( ) const
注解
此函数不调用模拟器,它返回最后一个节拍中接收到的数据。 // 获取交通灯绿灯持续时间的函数,返回一个float类型的时间值,表示当前交通灯绿灯的持续时间,同样该函数不会向模拟器发起请求,而是返回之前获取到的数据

在文件 TrafficLight.cpp35 行定义.

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

+ 函数调用图:

◆ GetGroupTrafficLights()

std::vector< SharedPtr< TrafficLight > > carla::client::TrafficLight::GetGroupTrafficLights ( )

返回该交通灯所属组中的所有交通灯。

注解
该函数调用模拟器

在文件 TrafficLight.cpp82 行定义.

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

+ 函数调用图:

◆ GetLightBoxes()

std::vector< geom::BoundingBox > carla::client::TrafficLight::GetLightBoxes ( ) const

在文件 TrafficLight.cpp130 行定义.

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

+ 函数调用图:

◆ GetOpenDRIVEID()

road::SignId carla::client::TrafficLight::GetOpenDRIVEID ( ) const

在文件 TrafficLight.cpp135 行定义.

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

被这些函数引用 GetAffectedLaneWaypoints().

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

◆ GetPoleIndex()

uint32_t carla::client::TrafficLight::GetPoleIndex ( )

返回交通信号灯组中灯杆的索引 // 获取交通信号灯组中灯杆的索引值的函数,返回一个uint32_t类型的索引值,用于标识交通灯在所属灯组中的具体位置等相关信息

在文件 TrafficLight.cpp76 行定义.

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

+ 函数调用图:

◆ GetRedTime()

float carla::client::TrafficLight::GetRedTime ( ) const
注解
此函数不调用模拟器,它返回最后一个节拍中接收到的数据。// 获取交通灯红灯持续时间的函数,返回一个float类型的时间值,表示当前交通灯红灯的持续时间,和前面类似,它是基于之前获取的数据返回结果,不会主动联系模拟器

在文件 TrafficLight.cpp55 行定义.

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

+ 函数调用图:

◆ GetState()

rpc::TrafficLightState carla::client::TrafficLight::GetState ( ) const

返回交通灯的当前状态。

注解
此函数不调用模拟器,它返回最后一个节拍中接收到的数据。 // 获取交通灯当前状态的函数,返回一个rpc::TrafficLightState类型的状态值,表示当前交通灯处于何种状态(红灯、绿灯或黄灯等),注意该函数不会主动向模拟器发送请求,只是返回之前接收到的数据

在文件 TrafficLight.cpp25 行定义.

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

+ 函数调用图:

◆ GetStopWaypoints()

std::vector< SharedPtr< Waypoint > > carla::client::TrafficLight::GetStopWaypoints ( ) const

◆ GetYellowTime()

float carla::client::TrafficLight::GetYellowTime ( ) const
注解
此函数不调用模拟器,它返回最后一个节拍中接收到的数据。// 获取交通灯黄灯持续时间的函数,返回一个float类型的时间值,表示当前交通灯黄灯的持续时间,该函数也只是返回之前记录的数据,不会与模拟器进行交互

在文件 TrafficLight.cpp45 行定义.

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

+ 函数调用图:

◆ IsFrozen()

bool carla::client::TrafficLight::IsFrozen ( ) const
注解
此函数不调用模拟器,它返回最后一个节拍中接收到的数据。// 判断交通灯是否处于冻结状态的函数,返回一个布尔值,表示交通灯当前是否被冻结,也是基于之前获取的数据来判断,不会向模拟器请求验证

在文件 TrafficLight.cpp71 行定义.

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

+ 函数调用图:

◆ ResetGroup()

void carla::client::TrafficLight::ResetGroup ( )

在文件 TrafficLight.cpp95 行定义.

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

+ 函数调用图:

◆ SetGreenTime()

void carla::client::TrafficLight::SetGreenTime ( float green_time)

在文件 TrafficLight.cpp30 行定义.

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

+ 函数调用图:

◆ SetRedTime()

void carla::client::TrafficLight::SetRedTime ( float red_time)

在文件 TrafficLight.cpp50 行定义.

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

+ 函数调用图:

◆ SetState()

void carla::client::TrafficLight::SetState ( rpc::TrafficLightState state)

在文件 TrafficLight.cpp19 行定义.

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

+ 函数调用图:

◆ SetYellowTime()

void carla::client::TrafficLight::SetYellowTime ( float yellow_time)

在文件 TrafficLight.cpp40 行定义.

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

+ 函数调用图:

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