Function OS1::init_client(const std::string&, const std::string&, lidar_mode, timestamp_mode, int, int)
Defined in File OS1.hpp
Function Documentation
-
inline std::shared_ptr<client> OS1::init_client(const std::string &hostname, const std::string &udp_dest_host, lidar_mode mode = MODE_1024x10, timestamp_mode ts_mode = TIME_FROM_INTERNAL_OSC, int lidar_port = 7502, int imu_port = 7503)
Connect to and configure the sensor and start listening for data
- Parameters
hostname – hostname or ip of the sensor
udp_dest_host – hostname or ip where the sensor should send data
mode – lidar_mode defining azimuth resolution and rotation rate
ts_mode – method used to timestamp lidar measurements
lidar_port – port on which the sensor will send lidar data
imu_port – port on which the sensor will send imu data
- Returns
pointer owning the resources associated with the connection