pose_optimizer_enums.h
Enums
-
enum class ouster::mapping::SamplingMode
Sampling Mode for PoseOptimize get poses or timestamps.
Values:
-
enumerator KEY_FRAMES
Key frames sampling mode, selects poses or timestamps of every key frame in Pose Optimize
-
enumerator COLUMNS
Selects poses or timestamps corresponding to every column in each lidarscan.
-
enumerator KEY_FRAMES
Functions
-
inline LossFunction ouster::mapping::from_string(const std::string &name)
Converts a string to the corresponding LossFunction enum value.
This function takes a string representation of a loss function name and returns the matching LossFunction enum.
- Parameters:
name – [in] The string name of the loss function.
- Throws:
std::invalid_argument – If the provided name does not match any known LossFunction.
- Returns:
The corresponding LossFunction enum value.
-
inline std::string ouster::mapping::to_string(const LossFunction lf)
Converts a LossFunction enum value to its corresponding string.
This function takes a LossFunction enum and returns a string representation of that enum. Valid return values are: “HuberLoss”, “CauchyLoss”, “SoftLOneLoss”, “ArctanLoss”, and “TrivialLoss”.
- Parameters:
lf – [in] The LossFunction enum to convert.
- Returns:
A std::string containing the name of the loss function.