Clean up type parameters in feature structs#159
Merged
Conversation
- PointFeatures: Remove non-existent `S` param, add `# Fields` section - LineFeatures: Add missing `T′` param, remove non-existent `S` param Both docstrings now match their actual struct definitions. https://claude.ai/code/session_011bUdUe556jqRup9D3M58zZ
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.
Summary
This PR removes unused type parameters from the
PointFeaturesandLineFeaturesstruct definitions and improves documentation for thePointFeaturesstruct.Key Changes
S,M, andM′from the struct signature (now has 8 parameters instead of 11){T, T′′, S, WL, OL, CC, M, M′}to{T, T′, T′′, WL, OL, CC, M, M′}for consistencyPointFeaturesdocstring explaining:runway_corners: World space corner positionsobserved_corners: Image observation projectionscamconfig: Camera configurationcov: Observation error covariance matrixLinv: Inverted lower triangular covariance componentImplementation Details
These changes improve code clarity by removing unused type parameters that were likely artifacts from earlier refactoring. The corrected type parameter ordering in
LineFeaturesensures consistency with the actual struct definition. Enhanced documentation makes the purpose and structure of point feature observations clearer for users of the API.https://claude.ai/code/session_011bUdUe556jqRup9D3M58zZ