File sparse_map.hpp

Core API objects - sparse map.

template<typename T>
struct TypeTraits<T, typename enable_if_is_base_of<SparseMapInterface, T>::type>
#include <sparse_map.hpp>

Public Static Attributes

static constexpr ObjectType EnumType = ObjectType::SparseMap
namespace slamcore

Helper conversion methods

slamcore::ImageFormat \(\leftrightarrow\) BytesPerChannel

Get information about the client library

class SparseMapInterface : public MeasurementPoint<camera_clock>
#include <sparse_map.hpp>

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.

Protected Functions

virtual const LandmarkInterface &getLandmarkImpl(std::size_t idx) const = 0

Actual implementation to get landmark idx.

template<typename T> type >
#include <sparse_map.hpp>

Public Static Attributes

static constexpr ObjectType EnumType = ObjectType::SparseMap