libfranka 0.15.0
FCI C++ API
Loading...
Searching...
No Matches
lowpass_filter.h
Go to the documentation of this file.
1// Copyright (c) 2023 Franka Robotics GmbH
2// Use of this source code is governed by the Apache-2.0 license, see LICENSE
3#pragma once
4
5#include <array>
6#include <cmath>
7
13namespace franka {
17constexpr double kMaxCutoffFrequency = 1000.0;
21constexpr double kDefaultCutoffFrequency = 100.0;
37double lowpassFilter(double sample_time, double y, double y_last, double cutoff_frequency);
38
56std::array<double, 16> cartesianLowpassFilter(double sample_time,
57 std::array<double, 16> y,
58 std::array<double, 16> y_last,
59 double cutoff_frequency);
60} // namespace franka
std::array< double, 16 > cartesianLowpassFilter(double sample_time, std::array< double, 16 > y, std::array< double, 16 > y_last, double cutoff_frequency)
Applies a first-order low-pass filter to the translation and spherical linear interpolation to the ro...
double lowpassFilter(double sample_time, double y, double y_last, double cutoff_frequency)
Applies a first-order low-pass filter.
constexpr double kDefaultCutoffFrequency
Default cutoff frequency.
Definition lowpass_filter.h:21
constexpr double kMaxCutoffFrequency
Maximum cutoff frequency.
Definition lowpass_filter.h:17