CARLA
Loading...
Searching...
No Matches
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

Definition at line 61 of file worldState.h.

◆ Write()

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

Definition at line 47 of file worldState.h.

Member Data Documentation

◆ day_night_cycle

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.

◆ has_day_time_state

Definition at line 41 of file worldState.h.

◆ imu_gravity

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

Definition at line 36 of file worldState.h.

◆ kPacketId

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

Definition at line 28 of file worldState.h.

◆ kPayloadSizeV1

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

Definition at line 30 of file worldState.h.

◆ last_is_day

Definition at line 42 of file worldState.h.

◆ map_layers

rpc::MapLayer bits of the layers loaded.

Definition at line 33 of file worldState.h.

◆ publish_tf

ROS 2: whether TF frames are published.

Definition at line 45 of file worldState.h.


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