Function OS1::read_lidar_packet

Function Documentation

inline bool OS1::read_lidar_packet(const client &cli, uint8_t *buf)

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