Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
|
Filter for a sequence of pose measurements. More...
#include <nav2_docking/opennav_docking/include/opennav_docking/pose_filter.hpp>
Public Member Functions | |
PoseFilter (double coef, double timeout) | |
Create a pose filter instance. More... | |
geometry_msgs::msg::PoseStamped | update (const geometry_msgs::msg::PoseStamped &measurement) |
Update the filter. More... | |
Protected Member Functions | |
void | filter (double &filt, double meas) |
Protected Attributes | |
double | coef_ |
double | timeout_ |
geometry_msgs::msg::PoseStamped | pose_ |
Filter for a sequence of pose measurements.
Definition at line 27 of file pose_filter.hpp.
opennav_docking::PoseFilter::PoseFilter | ( | double | coef, |
double | timeout | ||
) |
Create a pose filter instance.
coef | Filtering coefficient. Valid range is 0-1, where 0 means take the new measurement |
timeout | If time between measurements exceeds this value, take the new measurement. |
Definition at line 22 of file pose_filter.cpp.
geometry_msgs::msg::PoseStamped opennav_docking::PoseFilter::update | ( | const geometry_msgs::msg::PoseStamped & | measurement | ) |
Update the filter.
measurement | The new pose measurement. |
Definition at line 30 of file pose_filter.cpp.