Function ouster::sensor::read_lidar_packet

Function Documentation

bool ouster::sensor::read_lidar_packet(const client &cli, uint8_t *buf, const packet_format &pf)

Read lidar data from the sensor. Will not block.

Parameters:
  • cli – client returned by init_client associated with the connection

  • buf – buffer to which to write lidar data. Must be at least lidar_packet_bytes + 1 bytes

Returns:

true if a lidar packet was successfully read