CARLA
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
carla::multigpu::WorldGlobals Struct Reference

Frame data packet 28, on every frame: world-wide state a client can change on the primary that changes what sensors see or measure. More...

#include <worldState.h>

Public Member Functions

bool Read (std::istream &in, uint32_t size)
 
void Write (std::ostream &out) const
 

Public Attributes

bool day_night_cycle = true
 UCarlaLightSubsystem: whether street lights follow the sun, and the last day/night state it broadcast (if any).
 
bool has_day_time_state = false
 
float imu_gravity = 9.81f
 The IMU's gravity, m/s^2.
 
bool last_is_day = true
 
uint16_t map_layers = 0xFFFFu
 rpc::MapLayer bits of the layers loaded.
 
bool publish_tf = true
 ROS 2: whether TF frames are published.
 

Static Public Attributes

static constexpr uint8_t kPacketId = 28u
 
static constexpr uint32_t kPayloadSizeV1 = 12u
 

Detailed Description

Frame data packet 28, on every frame: world-wide state a client can change on the primary that changes what sensors see or measure.

Definition at line 26 of file worldState.h.

Member Function Documentation

◆ Read()

bool carla::multigpu::WorldGlobals::Read ( std::istream &  in,
uint32_t  size 
)
inline

◆ Write()

void carla::multigpu::WorldGlobals::Write ( std::ostream &  out) const
inline

Member Data Documentation

◆ day_night_cycle

bool carla::multigpu::WorldGlobals::day_night_cycle = true

UCarlaLightSubsystem: whether street lights follow the sun, and the last day/night state it broadcast (if any).

Definition at line 40 of file worldState.h.

Referenced by FFrameData::AddWorldState(), FFrameData::PlayWorldState(), Read(), TEST(), and Write().

◆ has_day_time_state

bool carla::multigpu::WorldGlobals::has_day_time_state = false

Definition at line 41 of file worldState.h.

Referenced by FFrameData::AddWorldState(), Read(), TEST(), and Write().

◆ imu_gravity

float carla::multigpu::WorldGlobals::imu_gravity = 9.81f

The IMU's gravity, m/s^2.

Definition at line 36 of file worldState.h.

Referenced by FFrameData::AddWorldState(), FFrameData::PlayWorldState(), Read(), TEST(), and Write().

◆ kPacketId

constexpr uint8_t carla::multigpu::WorldGlobals::kPacketId = 28u
staticconstexpr

Definition at line 28 of file worldState.h.

Referenced by Write().

◆ kPayloadSizeV1

constexpr uint32_t carla::multigpu::WorldGlobals::kPayloadSizeV1 = 12u
staticconstexpr

Definition at line 30 of file worldState.h.

Referenced by Read(), and Write().

◆ last_is_day

bool carla::multigpu::WorldGlobals::last_is_day = true

Definition at line 42 of file worldState.h.

Referenced by FFrameData::AddWorldState(), Read(), TEST(), and Write().

◆ map_layers

uint16_t carla::multigpu::WorldGlobals::map_layers = 0xFFFFu

rpc::MapLayer bits of the layers loaded.

Definition at line 33 of file worldState.h.

Referenced by FFrameData::AddWorldState(), Read(), TEST(), and Write().

◆ publish_tf

bool carla::multigpu::WorldGlobals::publish_tf = true

ROS 2: whether TF frames are published.

Definition at line 45 of file worldState.h.

Referenced by FFrameData::AddWorldState(), FFrameData::PlayWorldState(), Read(), TEST(), and Write().


The documentation for this struct was generated from the following file: