You’re reading an older version of the Slamcore SDK documenation. The latest one is 23.04.

Class slamcore::SparseMapInterface

class SparseMapInterface : public MeasurementPoint<camera_clock>

Representing the whole sparse map.

Convenient access to landmark @a i.

inline const LandmarkInterface &operator[](const std::size_t i) const
inline const LandmarkInterface &operator()(const std::size_t i) const
inline const LandmarkInterface &get(const std::size_t i) const

range-for loops helpers.

inline iterator begin() const
inline iterator end() const

Public Types

enum class MapType : EnumBaseT

Values:

enumerator Active
enumerator Global
enumerator Count
using Ptr = std::shared_ptr<SparseMapInterface>
using CPtr = std::shared_ptr<const SparseMapInterface>
using value_type = LandmarkInterface
using iterator = RangeIterator<SparseMapInterface>

Public Functions

virtual ~SparseMapInterface() = default
virtual std::size_t size() const = 0

Number of landmarks in the map.

inline virtual MapType getMapType() const

Map type.