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

File encoder.hpp

Core API objects - encoder.

template<typename T>
struct TypeTraits<T, typename enable_if_is_base_of<EncoderInterface, T>::type>
#include <encoder.hpp>

Public Static Attributes

static constexpr ObjectType EnumType = ObjectType::Encoder
namespace slamcore

Main namespace for the Slamcore public API

Helper conversion methods

slamcore::ImageFormat \(\leftrightarrow\) BytesPerChannel

Get information about the client library

class EncoderInterface : public MeasurementPoint<odometry_clock>
#include <encoder.hpp>

Representing a single encoder measurement.

Public Types

using Ptr = std::shared_ptr<EncoderInterface>
using CPtr = std::shared_ptr<const EncoderInterface>
using MeasurementPointT = MeasurementPoint<odometry_clock>

Public Functions

virtual ~EncoderInterface() = default
virtual const int64_t &getMeasurement() const = 0

Returns the number of ticks.

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

Public Static Attributes

static constexpr ObjectType EnumType = ObjectType::Encoder