34 using namespace gtsam;
98 starter.
insert(
Z, Vector::Constant(1, 2.0));
101 expected.insert(
X, Vector::Constant(1, 13.5));
102 expected.insert(
Y, Vector::Constant(1, 6.5));
103 expected.insert(
Z, Vector::Constant(1, -6.5));
115 expected_x0.
insert(1, Vector::Zero(2));
119 double expected_y0 = 0.0;
142 xy0.
insert(yKey, Vector::Constant(1,
y0));
145 expected_init.
insert(1, Vector::Ones(2));
146 expected_init.
insert(2, Vector::Constant(1, -1));
176 graph.
add(1, I_1x1, 2, I_1x1,
kOne, noiseModel::Constrained::All(1));
177 graph.
add(1, I_1x1, 2, -I_1x1, 5 *
kOne, noiseModel::Constrained::All(1));
178 graph.
add(1, I_1x1, 2, 2 * I_1x1, 6 *
kOne, noiseModel::Constrained::All(1));
190 init.insert(1, Vector::Zero(2));
195 expected_x1.
insert(1, Vector::Ones(2));
226 double expectedError = 44.0;