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

File encoder_list.hpp

Core API objects - encoder list.

template<typename T>
struct TypeTraits<T, typename enable_if_is_base_of<EncoderListInterface, T>::type>
#include <encoder_list.hpp>

Public Static Attributes

static constexpr ObjectType EnumType = ObjectType::EncoderList
namespace slamcore

Main namespace for the Slamcore public API

Helper conversion methods

slamcore::ImageFormat \(\leftrightarrow\) BytesPerChannel

Get information about the client library

class EncoderListInterface
#include <encoder_list.hpp>

Representing a list of Encoder measurements.

Convenient access to measurement @a i.

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

range-for loops helpers.

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

Public Types

using Ptr = std::shared_ptr<EncoderListInterface>
using CPtr = std::shared_ptr<const EncoderListInterface>
using value_type = EncoderInterface
using iterator = RangeIterator<EncoderListInterface>

Public Functions

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

Number of samples in the list.

Protected Functions

virtual const EncoderInterface &getItemImpl(const std::size_t idx) const = 0

Actual implementation to get measurement idx.

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

Public Static Attributes

static constexpr ObjectType EnumType = ObjectType::EncoderList