Class that represent a grid of landmarks that measure the distance and relative orientation of the 4-wheel robot.
- Examples
- pf-nonlinear-complex-example.cpp, and ukf-nonlinear-complex-example.cpp.
Definition at line 461 of file ukf-nonlinear-complex-example.cpp.
◆ vpLandmarksGrid() [1/2]
◆ vpLandmarksGrid() [2/2]
vpLandmarksGrid::vpLandmarksGrid |
( |
const std::vector< vpLandmarkMeasurements > & |
landmarks, |
|
|
const double & |
distMaxAllowed |
|
) |
| |
|
inline |
◆ computePositionFromMeasurements()
void vpLandmarksGrid::computePositionFromMeasurements |
( |
const vpColVector & |
meas, |
|
|
double & |
x, |
|
|
double & |
y |
|
) |
| |
|
inline |
Compute the position that corresponds to a measurement. As the measurements can be noisy, we take the average position computed for each landmark individually.
- Parameters
-
[in] | meas | The measurement vector. |
[out] | x | The X-coordinate that corresponds to the measurement. |
[out] | y | The Y-coordinate that corresponds to the measurement. |
Definition at line 546 of file pf-nonlinear-complex-example.cpp.
◆ likelihood()
Compute the likelihood of a particle (value between 0. and 1.) knowing the measurements. The likelihood is computed using a Gaussian function that penalizes a particle whose position is "far" from the average position computed from the landmarks measurement.
- Parameters
-
[in] | particle | The particle state. |
[in] | meas | The measurements. |
- Returns
- double The likelihood of a particle (value between 0. and 1.)
- Examples
- pf-nonlinear-complex-example.cpp.
Definition at line 572 of file pf-nonlinear-complex-example.cpp.
◆ measureGT() [1/2]
Perfect measurement from each landmark of the range and relative orientation of the robot located at pos.
- Parameters
-
[in] | pos | The actual position of the robot (pos[0]: x, pos[1]: y, pos[2] = heading). |
- Returns
- vpColVector n x ([0] the range [1] the relative orientation of the robot), where n is the number of landmarks.
Definition at line 499 of file ukf-nonlinear-complex-example.cpp.
◆ measureGT() [2/2]
Perfect measurement from each landmark of the range and relative orientation of the robot located at pos.
- Parameters
-
[in] | pos | The actual position of the robot (pos[0]: x, pos[1]: y, pos[2] = heading). |
- Returns
- vpColVector n x ([0] the range [1] the relative orientation of the robot), where n is the number of landmarks.
Definition at line 507 of file pf-nonlinear-complex-example.cpp.
◆ measureWithNoise() [1/2]
Noisy measurement from each landmark of the range and relative orientation that correspond to pos.
- Parameters
-
[in] | pos | The actual position of the robot (pos[0]: x ; pos[1] = y ; pos[2] = heading). |
- Returns
- vpColVector n x ([0] the range [1] the relative orientation of the robot), where n is the number of landmarks.
Definition at line 519 of file ukf-nonlinear-complex-example.cpp.
◆ measureWithNoise() [2/2]
Noisy measurement from each landmark of the range and relative orientation that correspond to pos.
- Parameters
-
[in] | pos | The actual position of the robot (pos[0]: x ; pos[1] = y ; pos[2] = heading). |
- Returns
- vpColVector n x ([0] the range [1] the relative orientation of the robot), where n is the number of landmarks.
Definition at line 526 of file pf-nonlinear-complex-example.cpp.
◆ state_to_measurement() [1/2]
◆ state_to_measurement() [2/2]