Struct ZonePacket¶
Defined in File packet.h
Inheritance Relationships¶
Base Type¶
public ouster::sdk::core::PacketStruct Packet
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
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
Public Static Attributes
-
static const PacketType MY_TYPE = PacketType::Zone¶
PacketType enum for this packet type.
-
ZonePacket()¶