Struct ZonePacket

Inheritance Relationships

Base Type

Struct Documentation

struct ZonePacket : public ouster::sdk::core::Packet

Encapsulate an imu packet buffer and attributes associated with it.

Public Functions

OUSTER_DIAGNOSTIC_POP ZonePacket()

Construct a new empty Zone Packet.

ZonePacket(int size)

Construct a new Imu packet with a pre-allocated size.

Parameters:

size[in] size in bytes to allocate

inline std::array<uint8_t, 32> live_zoneset_hash() const

Get live zoneset hash.

Returns:

256bit hash of zone config

inline uint64_t timestamp() const

Get zone timestamp.

Returns:

zone timestamp

Eigen::Array<ZoneState, Eigen::Dynamic, 1> zone_states() const

Get array of zone states.

Returns:

1d array of zone states

Public Static Attributes

static const PacketType MY_TYPE = PacketType::Zone

PacketType enum for this packet type.

static OUSTER_DIAGNOSTIC_PUSH OUSTER_DIAGNOSTIC_IGNORE_UNUSED const PacketType my_type   = PacketType::Zone

Deprecated:

Use MY_TYPE instead. This will be removed in a future release.