Nonlinear CCD - #72
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## main #72 +/- ##
==========================================
+ Coverage 95.11% 95.13% +0.01%
==========================================
Files 82 87 +5
Lines 7105 7251 +146
==========================================
+ Hits 6758 6898 +140
- Misses 347 353 +6
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR adds a generic implementation of the nonlinear CCD (of linear geometry) algorithm from [Ferguson et al. 2021].
Generic nonlinear trajectories are specified through a
NonlinearTrajectoryvirtual class. By default the maximum distance between the trajectory and a linearized version is computed using interval arithmetic. That iswhere$p$ is the point's position over time, $\mathrm{lerp}(a, b, t) := (b - a) t + a$ and $\sup([a,b]):=b$ . Because this can be an overly conservative approximation, users can override the
NonlinearTrajectory::max_distance_from_linearfunction to compute the max directly in closed form if known.We perform interval arithmetic using filib which has been shown to be "the only library that is correct, consistent, portable, and efficient" [Tang et al. 2022].
Type of change
How Has This Been Tested?
New unit tests checking for rotational trajectories.
Test Configuration:
Checklist: