Create a set of helper classes to create ceres optimisation problems on splines #557
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a proposal of a set of tools that will help creating optimisation problems with Ceres and splines of Sophus objects, dealing with all the special cases of knot selection at the beginning and at the end of the knot vector, as well as the derivative
A functor can be optimized on the spline knots with a code as simple as:
`std::shared_ptr spline(new Splined(control_poses, -1.0, dt)));
ceres::Problem problem;
`
addResidualFunctions are provided for functor taking one or two points on the spline, or its first and second derivative, as well as functor depending on one or two other objects (for instance extrinsic or intrinsic calibrations).
Adding the KnotAndU class is critical to this code to easily recover the knots and u value corresponding to a specific time stamp.
I hope that can be useful. I find that these structures are strongly simplifying my writing.