We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ddbe62e + 7bdaff3 commit 3b4eeebCopy full SHA for 3b4eeeb
timing/timeLago.cpp
@@ -41,11 +41,11 @@ int main(int argc, char *argv[]) {
41
42
// add noise to create initial estimate
43
Values initial;
44
- Sampler sampler(42u);
45
Values::ConstFiltered<Pose2> poses = solution->filter<Pose2>();
46
SharedDiagonal noise = noiseModel::Diagonal::Sigmas((Vector(3) << 0.5, 0.5, 15.0 * M_PI / 180.0).finished());
+ Sampler sampler(noise);
47
for(const Values::ConstFiltered<Pose2>::KeyValuePair& it: poses)
48
- initial.insert(it.key, it.value.retract(sampler.sampleNewModel(noise)));
+ initial.insert(it.key, it.value.retract(sampler.sample()));
49
50
// Add prior on the pose having index (key) = 0
51
noiseModel::Diagonal::shared_ptr priorModel = //
0 commit comments