Conversation
Member
Author
|
Update: I added 8 more classes, still a bit manual :-( takes me about 15 mins per class on average to check everything. The generated code was good to find out that several classes and/or methods were not yet wrapped, so that was part of the work. |
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.
@p-zach I was able to generate several more notebooks almost perfectly using Google AI studio, with Gemini 2.5. I uploaded the navigation directory using repomix (compressed code), and then also pasted the json from
AHRSFactor.ipynb. The prompt was then:The output was almost perfect. I used the text editor to paste the json, and had to correct one formula. I also corrected its code style, saying:
This is wild 🤯 ♊.
Also updated
navigation.mdwith an overview and mermaid diagrams. More editing there to my linking, but again ♊ magic 🪄 .classDiagram direction TD class PreintegrationBase { <<Abstract>> +imuBias::ConstantBias biasHat_ +double deltaTij_ +resetIntegration()* +integrateMeasurement()* +biasCorrectedDelta()* +predict() +computeError() } class ManifoldPreintegration { +NavState deltaXij_ +update() } ManifoldPreintegration --|> PreintegrationBase : implements class TangentPreintegration { +Vector9 preintegrated_ +update() } TangentPreintegration --|> PreintegrationBase : implements class PreintegratedImuMeasurements { +Matrix9 preintMeasCov_ } PreintegratedImuMeasurements --|> ManifoldPreintegration : inherits PreintegratedImuMeasurements --|> TangentPreintegration : inherits class PreintegratedCombinedMeasurements { +Matrix preintMeasCov_ (15x15) } PreintegratedCombinedMeasurements --|> ManifoldPreintegration : inherits PreintegratedCombinedMeasurements --|> TangentPreintegration : inherits class ImuFactor { Pose3, Vector3, Pose3, Vector3, ConstantBias +evaluateError(...) Vector9 } ImuFactor ..> PreintegratedImuMeasurements : uses class ImuFactor2 { NavState, NavState, ConstantBias +evaluateError(...) Vector9 } ImuFactor2 ..> PreintegratedImuMeasurements : uses class CombinedImuFactor { Pose3, Vector3, Pose3, Vector3, ConstantBias +evaluateError(...) Vector (15) } CombinedImuFactor ..> PreintegratedCombinedMeasurements : uses