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