Function ouster::sensor::init_client(const std::string&, const std::string&, lidar_mode, timestamp_mode, int, int, int)

Function Documentation

std::shared_ptr<client> ouster::sensor::init_client(const std::string &hostname, const std::string &udp_dest_host, lidar_mode mode = MODE_UNSPEC, timestamp_mode ts_mode = TIME_FROM_UNSPEC, int lidar_port = 0, int imu_port = 0, int timeout_sec = 60)

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 or “” for automatic detection of destination

  • lidar_port – port on which the sensor will send lidar data

  • imu_port – port on which the sensor will send imu data

  • timeout_sec – how long to wait for the sensor to initialize

Returns:

pointer owning the resources associated with the connection