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

ZonePacket()

Construct a new empty Zone Packet.

Deprecated:

Use ZonePacket(std::shared_ptr<PacketFormat>) instead. The last supported version for this will be 1.0.0 .

ZonePacket(int size)

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

Deprecated:

Use ZonePacket(std::shared_ptr<PacketFormat>) instead. The last supported version for this will be 1.0.0 .

Parameters:

size[in] size in bytes to allocate

ZonePacket(std::shared_ptr<PacketFormat> format)

Construct a new Zone packet with a known format.

Parameters:

format[in] the packet format to use for parsing this packet.

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.