moveit2
The MoveIt Motion Planning Framework for ROS 2.
Public Member Functions | List of all members
online_signal_smoothing::ButterworthFilter Class Reference

#include <butterworth_filter.h>

Public Member Functions

 ButterworthFilter (double low_pass_filter_coeff)
 
 ButterworthFilter ()=delete
 
double filter (double new_measurement)
 
void reset (const double data)
 

Detailed Description

Class ButterworthFilter - Implementation of a signal filter to soften jerks. This is a first-order Butterworth low-pass filter. First-order was chosen for 2 reasons:

Definition at line 56 of file butterworth_filter.h.

Constructor & Destructor Documentation

◆ ButterworthFilter() [1/2]

online_signal_smoothing::ButterworthFilter::ButterworthFilter ( double  low_pass_filter_coeff)

Constructor.

Parameters
low_pass_filter_coeffLarger filter_coeff-> more smoothing of servo commands, but more lag. Rough plot, with cutoff frequency on the y-axis: https://www.wolframalpha.com/input/?i=plot+arccot(c)

Definition at line 50 of file butterworth_filter.cpp.

◆ ButterworthFilter() [2/2]

online_signal_smoothing::ButterworthFilter::ButterworthFilter ( )
delete

Member Function Documentation

◆ filter()

double online_signal_smoothing::ButterworthFilter::filter ( double  new_measurement)

Definition at line 75 of file butterworth_filter.cpp.

Here is the caller graph for this function:

◆ reset()

void online_signal_smoothing::ButterworthFilter::reset ( const double  data)

Definition at line 87 of file butterworth_filter.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: