Class Point2DFixedLandmark

Inheritance Relationships

Base Type

Class Documentation

class Point2DFixedLandmark : public fuse_variables::FixedSizeVariable<2>

Variable representing a 2D point landmark that exists across time.

This is commonly used to represent locations of visual features. The UUID of this class is constant after construction and dependent on a user input database id. As such, the database id cannot be altered after construction.

Public Types

enum [anonymous]

Can be used to directly index variables in the data array.

Values:

enumerator X
enumerator Y

Public Functions

Point2DFixedLandmark() = default

Default constructor.

explicit Point2DFixedLandmark(const uint64_t &landmark_id)

Construct a point 2D variable given a landmarks id.

Parameters:

landmark_id[in] The id associated to a landmark

inline double &x()

Read-write access to the X-axis position.

inline const double &x() const

Read-only access to the X-axis position.

inline double &y()

Read-write access to the Y-axis position.

inline const double &y() const

Read-only access to the Y-axis position.

inline const uint64_t &id() const

Read-only access to the id.

void print(std::ostream &stream = std::cout) const override

Print a human-readable description of the variable to the provided stream.

Parameters:

stream[out] The stream to write to. Defaults to stdout.

bool holdConstant() const override

Specifies if the value of the variable should not be changed during optimization.

Friends

friend class boost::serialization::access