MeanFilter

The MeanFilter calculates the output for N one-dimensional digital filters. Where the input, x, is a (N x 1) vector of inputs and the output, y, is a (N x 1) vector of outputs. The filter is described by number of observations, obs, and implemented using the standard difference equation:

  • y[n] = (x[n] + x[n-1] + ... + x[n-obs])/obs

ROS API

Parameters

~name (string, default: Required)
  • Name of the filter
~type () (string, default: Required)
  • The filter's typename as declared in it's pluginlib registration: MultiChannelMeanFilterDouble or MeanFilterDouble
~params/number_of_observations (int, default: Required)
  • The order of the filter

Example Configuration:

FifthOrder:
  name: my_filter
  type: MultiChannelMeanFilterDouble
  params:
    number_of_observations: 5

Wiki: filters/MeanFilter (last edited 2021-06-17 06:35:46 by TullyFoote)