◆ TranslationRecovery()
Construct a new Translation Recovery object.
- Parameters
-
relativeTranslations | the relative translations, in world coordinate frames, vector of BinaryMeasurements of Unit3, where each key of a measurement is a point in 3D. |
lmParams | (optional) gtsam::LavenbergMarquardtParams that can be used to modify the parameters for the LM optimizer. By default, uses the default LM parameters. |
◆ addPrior()
Add priors on ednpoints of first measurement edge.
- Parameters
-
scale | scale for first relative translation which fixes gauge. |
graph | factor graph to which prior is added. |
priorNoiseModel | the noise model to use with the prior. |
◆ buildGraph()
◆ initalizeRandomly()
Values TranslationRecovery::initalizeRandomly |
( |
| ) |
const |
Create random initial translations.
- Returns
- Values
◆ run()
Values TranslationRecovery::run |
( |
const double |
scale = 1.0 | ) |
const |
Build and optimize factor graph.
- Parameters
-
scale | scale for first relative translation which fixes gauge. |
- Returns
- Values
◆ SimulateMeasurements()
TranslationRecovery::TranslationEdges TranslationRecovery::SimulateMeasurements |
( |
const Values & |
poses, |
|
|
const std::vector< KeyPair > & |
edges |
|
) |
| |
|
static |
Simulate translation direction measurements.
- Parameters
-
poses | SE(3) ground truth poses stored as Values |
edges | pairs (a,b) for which a measurement w_aZb will be generated. |
- Returns
- TranslationEdges vector of binary measurements where the keys are the cameras and the measurement is the simulated Unit3 translation direction between the cameras.
The documentation for this class was generated from the following files: