7 for (
size_t i = 1;
i < poses.size(); ++
i) {
10 NonlinearFactorGraph
graph;
11 for (
size_t j = 0;
j < points.size(); ++
j) {
13 GenericProjectionFactor<Pose3, Point3, Cal3_S2>
14 (
z[
i][
j], noise,Symbol(
'x',
i), Symbol(
'l', j),
K)
20 initialEstimate.insert(Symbol(
'x',
i), initial_x[
i]);
23 isam.update(graph, initialEstimate);
static Cal3_S2 K(500, 500, 0.1, 640/2, 480/2)
NonlinearFactorGraph graph
NonlinearISAM isam(relinearizeInterval)
std::vector< float > Values