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

Class slamcore::EncoderInterface

class EncoderInterface : public ObjectInterface, public virtual MeasurementPointInterface<odometry_clock>

Representing a single encoder measurement.

Public Types

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

Public Functions

inline virtual ObjectType type() const

Type of the object.

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

Returns the number of ticks.