-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hello, I have been trying to port a bunch of helper functions to build optimisation problems in continuous time from Sophus 1 to Sophus 2. In Sophus 1, there is a PR here: strasdat/Sophus#557 even though the message says it won't be applied.
The sophus 2 code is here https://github.com/cedricpradalier/farm-ng-core/tree/porting_spline_error
The goal of these helper functions is to apply seemlessly functors f(g) with g a Lie Group object on a spline sampled at t, without having to manage the knot selection at the user level. Example:
addResidualFunction0<Functor,kDof>(problem,t,spline,functor);
The Sophus 1 code is working well. The Sophus 2 code for cartesian splines is also working ok, but in the lie group spline code, I end up having groups with invalid parameters. In Sophus 1, I solved that by calling the normalize function after each ceres iteration, but this does not exist in Sophus 2 (and theoretically, we should not need that with the manifold parametrization).
Is there a code example somewhere showing continuous-time optimisation with Sophus 2 to check what I'm doing wrong?
Thanks