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 ()
 Return all traffic lights in the group this one belongs to.
 
std::vector< geom::BoundingBoxGetLightBoxes () const
 
road::SignId GetOpenDRIVEID () const
 
uint32_t GetPoleIndex ()
 Returns the index of the pole in the traffic light group
 
float GetRedTime () const
 
rpc::TrafficLightState GetState () const
 Return the current state of the traffic light.
 
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)
 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
 

额外继承的成员函数

- 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.cpp53 行定义.

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

+ 函数调用图:

◆ GetAffectedLaneWaypoints()

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

在文件 TrafficLight.cpp81 行定义.

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

+ 函数调用图:

◆ GetElapsedTime()

float carla::client::TrafficLight::GetElapsedTime ( ) const
注解
This function does not call the simulator, it returns the data received in the last tick.

在文件 TrafficLight.cpp49 行定义.

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

+ 函数调用图:

◆ GetGreenTime()

float carla::client::TrafficLight::GetGreenTime ( ) const
注解
This function does not call the simulator, it returns the data received in the last tick.

在文件 TrafficLight.cpp29 行定义.

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

+ 函数调用图:

◆ GetGroupTrafficLights()

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

Return all traffic lights in the group this one belongs to.

注解
This function calls the simulator

在文件 TrafficLight.cpp67 行定义.

引用了 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.cpp107 行定义.

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

+ 函数调用图:

◆ GetOpenDRIVEID()

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

在文件 TrafficLight.cpp111 行定义.

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

被这些函数引用 GetAffectedLaneWaypoints().

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

◆ GetPoleIndex()

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

Returns the index of the pole in the traffic light group

在文件 TrafficLight.cpp62 行定义.

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

+ 函数调用图:

◆ GetRedTime()

float carla::client::TrafficLight::GetRedTime ( ) const
注解
This function does not call the simulator, it returns the data received in the last tick.

在文件 TrafficLight.cpp45 行定义.

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

+ 函数调用图:

◆ GetState()

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

Return the current state of the traffic light.

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

在文件 TrafficLight.cpp21 行定义.

引用了 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
注解
This function does not call the simulator, it returns the data received in the last tick.

在文件 TrafficLight.cpp37 行定义.

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

+ 函数调用图:

◆ IsFrozen()

bool carla::client::TrafficLight::IsFrozen ( ) const
注解
This function does not call the simulator, it returns the data received in the last tick.

在文件 TrafficLight.cpp58 行定义.

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

+ 函数调用图:

◆ ResetGroup()

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

在文件 TrafficLight.cpp77 行定义.

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

+ 函数调用图:

◆ SetGreenTime()

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

在文件 TrafficLight.cpp25 行定义.

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

+ 函数调用图:

◆ SetRedTime()

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

在文件 TrafficLight.cpp41 行定义.

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

+ 函数调用图:

◆ SetState()

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

在文件 TrafficLight.cpp17 行定义.

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

+ 函数调用图:

◆ SetYellowTime()

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

在文件 TrafficLight.cpp33 行定义.

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

+ 函数调用图:

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