#include <consecutive_counter_filter.hpp>
◆ ConsecutiveCounterFilter()
◆ delete_landmarks()
| void ConsecutiveCounterFilter::delete_landmarks |
( |
const Eigen::VectorXd & |
some_landmarks | ) |
|
|
overridevirtual |
Used by SLAM to signal to the filter that the landmarks are already in SLAM's map, and they should no longer be returned by the filter as new.
- Parameters
-
| some_landmarks | landmarks to be deleted in the form of [x1, y1, x2, y2, ...] in the global frame |
Implements LandmarkFilter.
Definition at line 84 of file consecutive_counter_filter.cpp.
◆ filter()
| Eigen::VectorXd ConsecutiveCounterFilter::filter |
( |
const Eigen::VectorXd & |
observations, |
|
|
const Eigen::VectorXd & |
observation_confidences, |
|
|
Eigen::VectorXi & |
associations |
|
) |
| |
|
overridevirtual |
This function receives a new set of observations and returns a filtered set of landmarks in global coordinates that are ready to be added to be added to the map.
This filter keeps track of how many consecutive times an observation has been seen. If an observation has been seen more than minimum_observation_count_ times consecutively, it is added to the map and returned as a new landmark. If an observation is not seen in a given call to filter, its counter is reset.
- Parameters
-
| observations | Observations in the form of [x1, y1, x2, y2, ...] in the global frame |
| observation_confidences | Confidence in the observations in the same order as the observations |
- Returns
- Eigen::VectorXd the filtered observations in the form of [x1, y1, x2, y2, ...] in the global frame
Implements LandmarkFilter.
Definition at line 6 of file consecutive_counter_filter.cpp.
◆ ConsecutiveCounterFilter_TestCase1_Test
◆ counter
| Eigen::VectorXi ConsecutiveCounterFilter::counter |
|
private |
◆ map
| Eigen::VectorXd ConsecutiveCounterFilter::map |
|
private |
The documentation for this class was generated from the following files: