Public Member Functions | Private Attributes | List of all members
beluga::policies::detail::on_motion_policy< Pose > Struct Template Reference

Base implementation for the on_motion_policy algorithm. More...

#include <on_motion.hpp>

Inheritance diagram for beluga::policies::detail::on_motion_policy< Pose >:
Inheritance graph
[legend]

Public Member Functions

constexpr bool operator() (const Pose &pose)
 Return true if motion has been detected. More...
 

Private Attributes

std::optional< Pose > latest_pose_
 The latest pose for motion comparison. More...
 

Detailed Description

template<class Pose>
struct beluga::policies::detail::on_motion_policy< Pose >

Base implementation for the on_motion_policy algorithm.

Template Parameters
PoseThe pose type to check for motion.

Definition at line 78 of file on_motion.hpp.

Member Function Documentation

◆ operator()()

template<class Pose >
constexpr bool beluga::policies::detail::on_motion_policy< Pose >::operator() ( const Pose &  pose)
inlineconstexpr

Return true if motion has been detected.

Definition at line 84 of file on_motion.hpp.

Member Data Documentation

◆ latest_pose_

template<class Pose >
std::optional<Pose> beluga::policies::detail::on_motion_policy< Pose >::latest_pose_
private

The latest pose for motion comparison.

Definition at line 99 of file on_motion.hpp.


The documentation for this struct was generated from the following file:


beluga
Author(s):
autogenerated on Tue Jul 16 2024 02:59:54