Class ClientEvent

Class Documentation

class ClientEvent

Represents an event from the SensorPacketSource.

Contains the result of polling the sensor client, such as received packets, timeouts, and errors.

Public Types

enum EventType

Types of events that can occur.

Values:

enumerator ERR

An error occurred in the SensorClient, it may no longer function.

enumerator EXIT

The client has been closed and will not return any more packets.

enumerator POLL_TIMEOUT

get_packet has timed out waiting for an event/packet

enumerator PACKET

An packet from a sensor.

enumerator Error = ERR

Deprecated alias for ERR.

enumerator Exit = EXIT

Deprecated alias for EXIT.

enumerator PollTimeout = POLL_TIMEOUT

Deprecated alias for POLL_TIMEOUT.

enumerator Packet = PACKET

Deprecated alias for PACKET.

Public Functions

ClientEvent()
inline ouster::sdk::core::Packet &packet()

Access the packet associated with this event.

Returns:

Reference to the packet associated with the event.

Public Members

int source

negative if not applicable to a source, like PollTimeout or Error

EventType type

The type of event that occurred.