Migrate examples to use Manifolds

Also change NULL to nullptr.

Change-Id: I80a2328185d7891f61e07e64d5c1b59e74588ac7
This commit is contained in:
Sameer Agarwal
2022-01-18 16:26:47 -08:00
parent 19eef54fc2
commit 77c0c4d09c
23 changed files with 121 additions and 113 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ int main(int argc, char** argv) {
// numeric differentiation to obtain the derivative (jacobian).
CostFunction* cost_function =
new NumericDiffCostFunction<CostFunctor, CENTRAL, 1, 1>(new CostFunctor);
problem.AddResidualBlock(cost_function, NULL, &x);
problem.AddResidualBlock(cost_function, nullptr, &x);
// Run the solver!
Solver::Options options;