Function ouster::sdk::sensor::read_lidar_packet(const Client&, uint8_t *, size_t)
Defined in File client.h
Function Documentation
-
bool ouster::sdk::sensor::read_lidar_packet(const Client &cli, uint8_t *buf, size_t bytes)
Read lidar data from the sensor.
Will not block.
- Parameters:
cli[in] – client returned by init_client associated with the connection.
buf[out] – buffer to which to write lidar data. Must be at least
bytes + 1bytes.bytes[in] – expected number of bytes in the packet
- Returns:
true if a lidar packet was successfully read.