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

定义车辆的物理外观,通过传感器获取 更多...

#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
}
 可以作为标志使用的枚举 更多...
 

Public 成员函数

flag_type GetLightStateAsValue () const
 返回当前灯光状态作为值类型
 
LightState GetLightStateEnum () const
 返回当前灯光状态作为枚举类型
 
 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)
 灯光状态标志,默认情况下全部关闭
 

详细描述

定义车辆的物理外观,通过传感器获取

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

成员类型定义说明

◆ flag_type

成员枚举类型说明

◆ LightState

可以作为标志使用的枚举

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

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

构造及析构函数说明

◆ 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

返回当前灯光状态作为值类型

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

引用了 light_state.

◆ GetLightStateEnum()

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

返回当前灯光状态作为枚举类型

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

引用了 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)

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