Function OS1::poll_client
Defined in File OS1.hpp
Function Documentation
-
inline ros2_ouster::ClientState OS1::poll_client(const client &c, const int timeout_sec = 1)
Block for up to timeout_sec until either data is ready or an error occurs.
- Parameters
cli – client returned by init_client associated with the connection
timeout_sec – seconds to block while waiting for data
- Returns
ClientState s where (s & ERROR) is true if an error occured, (s & LIDAR_DATA) is true if lidar data is ready to read, and (s & IMU_DATA) is true if imu data is ready to read