Scan Matcher based on the Monte Carlo method. The focus of the scan matcher is to compare a scan and a built map; in this class the method of scan comparison is performed by comparing corresponding scan costs.
More...
#include <monte_carlo_scan_matcher.h>
Scan Matcher based on the Monte Carlo method. The focus of the scan matcher is to compare a scan and a built map; in this class the method of scan comparison is performed by comparing corresponding scan costs.
Definition at line 30 of file monte_carlo_scan_matcher.h.
MonteCarloScanMatcher::MonteCarloScanMatcher |
( |
std::shared_ptr< ScanCostEstimator > |
estimator, |
|
|
unsigned |
failed_iter, |
|
|
unsigned |
max_iter |
|
) |
| |
|
inline |
Initializes the scan matcher with a certain scan cost estimator.
- Parameters
-
estimator | An estimator of Scan Cost. |
failed_iter | A limit of generated samples that have a higher cost comparing with the best estimated pose. |
max_iter | A maximum number of hypothesis to be tested. |
Definition at line 42 of file monte_carlo_scan_matcher.h.
void MonteCarloScanMatcher::do_for_each_observer |
( |
std::function< void(ObsPtr)> |
op | ) |
|
|
inlineprivate |
virtual unsigned MonteCarloScanMatcher::on_estimate_update |
( |
unsigned |
sample_num, |
|
|
unsigned |
sample_limit |
|
) |
| |
|
protectedpure virtual |
A callback invoked when a better estimate is found.
- Parameters
-
sample_num | Amount of tries that were complited. |
sample_limit | Totla amount of tries allowed. |
Implemented in TinyScanMatcher.
Estimates the most probable position according to a given scan; the greater this probability, the lower cost of the scan.
- Parameters
-
init_pose | The first approxiamtion of pose. |
scan | A current scan. |
map | A current GridMap. |
pose_delta | An output parameter of the best pose_delta. |
- Returns
- The lowest scan cost that corresponds to output pose_delta.
Implements GridScanMatcher.
Definition at line 56 of file monte_carlo_scan_matcher.h.
virtual void MonteCarloScanMatcher::sample_pose |
( |
RobotState & |
base_pose | ) |
|
|
protectedpure virtual |
Generates the pose of a robot in a vicinity of a base pose.
- Parameters
-
base_pose | A basical pose of a robot. |
Implemented in TinyScanMatcher.
unsigned MonteCarloScanMatcher::_failed_tries_limit |
|
private |
unsigned MonteCarloScanMatcher::_total_tries_limit |
|
private |
The documentation for this class was generated from the following file: