CARLA
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Public 属性 | 所有成员列表
carla::rpc::VehicleLightState类 参考

Defines the physical appearance of a vehicle whitch is obtained by the sensors. 更多...

#include <VehicleLightState.h>

+ carla::rpc::VehicleLightState 的协作图:

Public 类型

using flag_type = uint32_t
 
enum class  LightState : flag_type {
  None = 0 , Position = 0x1 , LowBeam = 0x1 << 1 , HighBeam = 0x1 << 2 ,
  Brake = 0x1 << 3 , RightBlinker = 0x1 << 4 , LeftBlinker = 0x1 << 5 , Reverse = 0x1 << 6 ,
  Fog = 0x1 << 7 , Interior = 0x1 << 8 , Special1 = 0x1 << 9 , Special2 = 0x1 << 10 ,
  All = 0xFFFFFFFF
}
 Can be used as flags 更多...
 

Public 成员函数

flag_type GetLightStateAsValue () const
 Returns the current light state as a value type
 
LightState GetLightStateEnum () const
 Returns the current light state as an enum type
 
 operator FVehicleLightState () const
 
 VehicleLightState ()=default
 
 VehicleLightState (const FVehicleLightState &InLightState)
 
 VehicleLightState (flag_type light_state)
 
 VehicleLightState (LightState light_state)
 

Public 属性

flag_type light_state = static_cast<flag_type>(LightState::None)
 Lights state flag, all turned off by default
 

详细描述

Defines the physical appearance of a vehicle whitch is obtained by the sensors.

在文件 LibCarla/source/carla/rpc/VehicleLightState.h26 行定义.

成员类型定义说明

◆ flag_type

成员枚举类型说明

◆ LightState

Can be used as flags

枚举值
None 
Position 
LowBeam 
HighBeam 
Brake 
RightBlinker 
LeftBlinker 
Reverse 
Fog 
Interior 
Special1 
Special2 
All 

在文件 LibCarla/source/carla/rpc/VehicleLightState.h32 行定义.

构造及析构函数说明

◆ VehicleLightState() [1/4]

carla::rpc::VehicleLightState::VehicleLightState ( )
default

◆ VehicleLightState() [2/4]

carla::rpc::VehicleLightState::VehicleLightState ( LightState light_state)
inline

◆ VehicleLightState() [3/4]

carla::rpc::VehicleLightState::VehicleLightState ( flag_type light_state)
inline

◆ VehicleLightState() [4/4]

carla::rpc::VehicleLightState::VehicleLightState ( const FVehicleLightState & InLightState)
inline

成员函数说明

◆ GetLightStateAsValue()

flag_type carla::rpc::VehicleLightState::GetLightStateAsValue ( ) const
inline

Returns the current light state as a value type

在文件 LibCarla/source/carla/rpc/VehicleLightState.h97 行定义.

引用了 light_state.

◆ GetLightStateEnum()

LightState carla::rpc::VehicleLightState::GetLightStateEnum ( ) const
inline

Returns the current light state as an enum type

在文件 LibCarla/source/carla/rpc/VehicleLightState.h92 行定义.

引用了 light_state.

◆ operator FVehicleLightState()

carla::rpc::VehicleLightState::operator FVehicleLightState ( ) const
inline

类成员变量说明

◆ light_state

flag_type carla::rpc::VehicleLightState::light_state = static_cast<flag_type>(LightState::None)

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