Function ouster::sdk::core::add_custom_profile(const std::string&, const std::vector<std::pair<std::string, FieldDecodeInfo>>&, size_t)

Function Documentation

UDPProfileLidar ouster::sdk::core::add_custom_profile(const std::string &name, const std::vector<std::pair<std::string, FieldDecodeInfo>> &fields, size_t chan_data_size)

Register a custom lidar profile, allocating a new profile enum value.

Parameters:
  • name[in] profile name

  • fields[in] field definitions for the profile

  • chan_data_size[in] channel data size in bytes

Throws:

std::runtime_error – when no profile slots are available (“Limit of lidar profiles has been reached”)

Returns:

allocated profile enum value