44 #include <moveit_butterworth_parameters.hpp>
68 double filter(
double new_measurement);
70 void reset(
const double data);
73 static constexpr std::size_t FILTER_LENGTH = 2;
74 std::array<double, FILTER_LENGTH> previous_measurements_;
75 double previous_filtered_measurement_;
78 double feedback_term_;
92 bool initialize(rclcpp::Node::SharedPtr node, moveit::core::RobotModelConstPtr robot_model,
93 size_t num_joints)
override;
100 bool doSmoothing(std::vector<double>& position_vector)
override;
107 bool reset(
const std::vector<double>& joint_positions)
override;
110 rclcpp::Node::SharedPtr node_;
111 std::vector<ButterworthFilter> position_filters_;
bool initialize(rclcpp::Node::SharedPtr node, moveit::core::RobotModelConstPtr robot_model, size_t num_joints) override
bool doSmoothing(std::vector< double > &position_vector) override
bool reset(const std::vector< double > &joint_positions) override
ButterworthFilter()=delete
double filter(double new_measurement)
void reset(const double data)