Function ouster::sdk::sensor::read_lidar_packet(const Client&, uint8_t *, const ouster::sdk::core::PacketFormat&)
Defined in File client.h
Function Documentation
-
bool ouster::sdk::sensor::read_lidar_packet(const Client &cli, uint8_t *buf, const ouster::sdk::core::PacketFormat &pf)
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 lidar_packet_bytes + 1 bytes.
pf[in] – The packet format.
- Returns:
true if a lidar packet was successfully read.