Function ouster::sdk::sensor::read_imu_packet(const Client&, ouster::sdk::core::ImuPacket&)
Defined in File client.h
Function Documentation
-
bool ouster::sdk::sensor::read_imu_packet(const Client &cli, ouster::sdk::core::ImuPacket &packet)
Read imu data from the sensor.
Will not block.
- Parameters:
cli[in] – client returned by init_client associated with the connection.
packet[out] – An ImuPacket to store imu data read from a sensor. Expects the packet to have correct number of bytes allocated for the packet. In addition, the ImuPacket’s host_timestamp attribute is also set.
- Returns:
true if an imu packet was successfully read.