ov_type::LandmarkRepresentation class

Class has useful feature representation types.

Public types

enum Representation { GLOBAL_3D, GLOBAL_FULL_INVERSE_DEPTH, ANCHORED_3D, ANCHORED_FULL_INVERSE_DEPTH, ANCHORED_MSCKF_INVERSE_DEPTH, ANCHORED_INVERSE_DEPTH_SINGLE, UNKNOWN }
What feature representation our state can use.

Public static functions

static auto as_string(Representation feat_representation) -> std::string
Returns a string representation of this enum value. Used to debug print out what the user has selected as the representation.
static auto from_string(const std::string& feat_representation) -> Representation
Returns a string representation of this enum value. Used to debug print out what the user has selected as the representation.
static auto is_relative_representation(Representation feat_representation) -> bool
Helper function that checks if the passed feature representation is a relative or global.

Function documentation

static std::string ov_type::LandmarkRepresentation::as_string(Representation feat_representation)

Returns a string representation of this enum value. Used to debug print out what the user has selected as the representation.

Parameters
feat_representation Representation we want to check
Returns String version of the passed enum

static Representation ov_type::LandmarkRepresentation::from_string(const std::string& feat_representation)

Returns a string representation of this enum value. Used to debug print out what the user has selected as the representation.

Parameters
feat_representation String we want to find the enum of
Returns Representation, will be "unknown" if we coun't parse it

static bool ov_type::LandmarkRepresentation::is_relative_representation(Representation feat_representation)

Helper function that checks if the passed feature representation is a relative or global.

Parameters
feat_representation Representation we want to check
Returns True if it is a relative representation