Function ouster::sdk::sensor::read_imu_packet(const Client&, uint8_t *, const ouster::sdk::core::PacketFormat&)

Function Documentation

bool ouster::sdk::sensor::read_imu_packet(const Client &cli, uint8_t *buf, const ouster::sdk::core::PacketFormat &pf)

Read imu 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 imu data. Must be at least imu_packet_bytes + 1 bytes.

  • pf[in] – The packet format.

Returns:

true if an imu packet was successfully read.