#include <TrafficLight.h>
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::BoundingBox > | GetLightBoxes () 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) | |
![]() | |
carla::road::SignId | GetSignId () const |
const geom::BoundingBox & | GetTriggerVolume () const |
TrafficSign (ActorInitializer init) | |
![]() | |
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::Transform > | GetBoneRelativeTransforms () const |
std::vector< geom::Transform > | GetBoneWorldTransforms () 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::Transform > | GetSocketRelativeTransforms () const |
std::vector< geom::Transform > | GetSocketWorldTransforms () 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 |
![]() | |
const std::vector< ActorAttributeValue > & | GetAttributes () const |
const std::string & | GetDisplayId () const |
ActorId | GetId () const |
SharedPtr< Actor > | GetParent () const |
ActorId | GetParentId () const |
const std::vector< uint8_t > & | GetSemanticTags () const |
const std::string & | GetTypeId () const |
World | GetWorld () const |
额外继承的成员函数 | |
![]() | |
ActorState (rpc::Actor description, EpisodeProxy episode) | |
const rpc::Actor & | GetActorDescription () const |
const geom::BoundingBox & | GetBoundingBox () const |
EpisodeProxy & | GetEpisode () |
const EpisodeProxy & | GetEpisode () const |
在文件 TrafficLight.h 第 18 行定义.
|
inlineexplicit |
在文件 TrafficLight.h 第 22 行定义.
void carla::client::TrafficLight::Freeze | ( | bool | freeze | ) |
在文件 TrafficLight.cpp 第 65 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
float carla::client::TrafficLight::GetElapsedTime | ( | ) | const |
在文件 TrafficLight.cpp 第 60 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
float carla::client::TrafficLight::GetGreenTime | ( | ) | const |
在文件 TrafficLight.cpp 第 35 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
std::vector< SharedPtr< TrafficLight > > carla::client::TrafficLight::GetGroupTrafficLights | ( | ) |
返回该交通灯所属组中的所有交通灯。
在文件 TrafficLight.cpp 第 82 行定义.
引用了 carla::client::World::GetActors(), carla::client::detail::ActorState::GetEpisode(), carla::client::detail::ActorState::GetWorld() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
std::vector< geom::BoundingBox > carla::client::TrafficLight::GetLightBoxes | ( | ) | const |
road::SignId carla::client::TrafficLight::GetOpenDRIVEID | ( | ) | const |
在文件 TrafficLight.cpp 第 135 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
被这些函数引用 GetAffectedLaneWaypoints().
uint32_t carla::client::TrafficLight::GetPoleIndex | ( | ) |
返回交通信号灯组中灯杆的索引 // 获取交通信号灯组中灯杆的索引值的函数,返回一个uint32_t类型的索引值,用于标识交通灯在所属灯组中的具体位置等相关信息
在文件 TrafficLight.cpp 第 76 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
float carla::client::TrafficLight::GetRedTime | ( | ) | const |
在文件 TrafficLight.cpp 第 55 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
rpc::TrafficLightState carla::client::TrafficLight::GetState | ( | ) | const |
返回交通灯的当前状态。
在文件 TrafficLight.cpp 第 25 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
在文件 TrafficLight.cpp 第 140 行定义.
引用了 carla::geom::BoundingBox::extent, carla::client::detail::ActorState::GetEpisode(), carla::geom::Transform::GetForwardVector(), carla::client::Actor::GetTransform(), carla::client::TrafficSign::GetTriggerVolume(), carla::geom::BoundingBox::location, carla::client::detail::EpisodeProxyImpl< PointerT >::Lock(), carla::geom::Transform::TransformPoint() , 以及 carla::geom::Vector3D::x.
float carla::client::TrafficLight::GetYellowTime | ( | ) | const |
在文件 TrafficLight.cpp 第 45 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
bool carla::client::TrafficLight::IsFrozen | ( | ) | const |
在文件 TrafficLight.cpp 第 71 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
void carla::client::TrafficLight::ResetGroup | ( | ) |
在文件 TrafficLight.cpp 第 95 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
void carla::client::TrafficLight::SetGreenTime | ( | float | green_time | ) |
在文件 TrafficLight.cpp 第 30 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
void carla::client::TrafficLight::SetRedTime | ( | float | red_time | ) |
在文件 TrafficLight.cpp 第 50 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
void carla::client::TrafficLight::SetState | ( | rpc::TrafficLightState | state | ) |
在文件 TrafficLight.cpp 第 19 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().
void carla::client::TrafficLight::SetYellowTime | ( | float | yellow_time | ) |
在文件 TrafficLight.cpp 第 40 行定义.
引用了 carla::client::detail::ActorState::GetEpisode() , 以及 carla::client::detail::EpisodeProxyImpl< PointerT >::Lock().