Class PoseFilter

Class Documentation

class PoseFilter

Filter for a sequence of pose measurements.

Public Functions

PoseFilter(double coef, double timeout)

Create a pose filter instance.

Parameters:
  • coef – Filtering coefficient. Valid range is 0-1, where 0 means take the new measurement

  • timeout – If time between measurments exceeds this value, take the new measurement.

geometry_msgs::msg::PoseStamped update(const geometry_msgs::msg::PoseStamped &measurement)

Update the filter.

Parameters:

measurement – The new pose measurement.

Returns:

Filtered measurement

Protected Functions

void filter(double &filt, double meas)

Protected Attributes

double coef_
double timeout_
geometry_msgs::msg::PoseStamped pose_