Class MovementDetectorPlugin

Inheritance Relationships

Derived Types

Class Documentation

class MovementDetectorPlugin

Base class for movement detection algorithms.

Subclassed by navtk::inertial::MovementDetectorImu, navtk::inertial::MovementDetectorPos

Public Functions

virtual MovementStatus process(not_null<std::shared_ptr<aspn_xtensor::AspnBase>> data) = 0

Take the provided data and use to determine whether movement is occurring.

Parameters

data – Movement algorithm data

Returns

An enum with the algorithm’s determined movement status.

virtual ~MovementDetectorPlugin() = default

Default destructor.

inline virtual MovementStatus get_status()

Return latest movement status.

Returns

An enum with the algorithm’s determined movement status.

virtual aspn_xtensor::TypeTimestamp get_time() = 0

Time of latest measurement.

Returns

The time of the last valid measurement received by process(). Only valid if return of get_status() is not MovementStatus::INVALID.

Protected Attributes

MovementStatus last_status = MovementStatus::INVALID

Last known movement status of the movement algorithm.