SecondOrderButterworthFilter Class
Declaration
Included Headers
Public Constructors Index
| SecondOrderButterworthFilter (double cutoff_frequency_ratio) | |
Public Member Functions Index
| const Eigen::Vector6d & | apply (const Eigen::Vector6d &measurement) |
| void | resetState (const Eigen::Vector6d &state, const Eigen::Vector6d &prev_state, const Eigen::Vector6d &measured, const Eigen::Vector6d &prev_measured, const Eigen::Vector6d &measurement_offset) |
| void | setMeasurementOffset (const Eigen::Vector6d &measurement_offset) |
Private Member Attributes Index
| Eigen::Vector6d | filtered_state_ = Eigen::Vector6d::Zero() |
| Eigen::Vector6d | prev_filtered_state_ = Eigen::Vector6d::Zero() |
| Eigen::Vector6d | measured_state_ = Eigen::Vector6d::Zero() |
| Eigen::Vector6d | prev_measured_state_ = Eigen::Vector6d::Zero() |
| double | cutoff_frequency_ratio_ = 1.0 |
| Eigen::Vector6d | measurement_offset_ = Eigen::Vector6d::Zero() |
Definition at line 36 of file signal_processing.hpp.
Public Constructors
SecondOrderButterworthFilter()
| inline explicit |
Definition at line 42 of file signal_processing.hpp.
Public Member Functions
apply()
|
Calculates the filtered values given a new measurement. The filter is applied to each dimension independently.
- Parameters
-
[in] measurement new measurement.
- Returns
the new state after the filter is applied.
Declaration at line 55 of file signal_processing.hpp, definition at line 24 of file signal_processing.cpp.
resetState()
|
Sets the state of the filter to a given values.
- Parameters
-
[in] state the current filtered state.
[in] prev_state the previous filtered state.
[in] measured the current measured state.
[in] prev_measured the previous measured state.
[in] measurement_offset the offset to be added to the measurement.
Declaration at line 66 of file signal_processing.hpp, definition at line 51 of file signal_processing.cpp.
setMeasurementOffset()
|
Sets the measurement offset to be added to the measured values.
- Parameters
-
[in] measurement_offset the offset to be added to the measurement.
Declaration at line 74 of file signal_processing.hpp, definition at line 62 of file signal_processing.cpp.
Private Member Attributes
cutoff_frequency_ratio_
|
Definition at line 86 of file signal_processing.hpp.
filtered_state_
|
Definition at line 78 of file signal_processing.hpp.
measured_state_
|
Definition at line 82 of file signal_processing.hpp.
measurement_offset_
|
Definition at line 89 of file signal_processing.hpp.
prev_filtered_state_
|
Definition at line 80 of file signal_processing.hpp.
prev_measured_state_
|
Definition at line 84 of file signal_processing.hpp.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.