Repository navigation
Make the tangential frame traceable and give the rotation a transform turns by one public definition - #149
Open
1-Bort-1 wants to merge 1 commit into
Open
Make the tangential frame traceable and give the rotation a transform turns by one public definition#1491-Bort-1 wants to merge 1 commit into
1-Bort-1 wants to merge 1 commit into
Conversation
turn_rotation(pose, transforms, transform) gives the rotation a transform turns its members by; turn! applies it and returns it, and reposition! and place_transforms! go through turn!, so the rotation has one definition. calc_R_t_to_w branches at the zenith with ifelse, so it traces on Symbolics.Num. rotate_v_around_k, calc_R_t_to_w, turn_rotation and turn! are public. Symbolics joins the test environment for the traced test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
1-Bort-1
marked this pull request as ready for review
November 28, 2026 16:13
18 tasks done
This branch has not been deployed
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.
SymbolicAWEModels keeps its own copies of three KiteGeometry rules because KiteGeometry's were private or failed on symbolic inputs. This makes all three public, so it can drop the copies.
The tangential frame at a position now works on ModelingToolkit's symbolic numbers. Before, its zenith check branched on a comparison and threw
TypeError: non-boolean (Num) used in boolean context. It now picks the zenith frame withifelse, and gives the same result as before for plain numbers.The rotation a transform turns its members by now has a function of its own, which reports it without turning anything. Turning a transform applies that rotation and returns it. Placing and repositioning both go through it, so there is one definition. A tool can now turn its velocities with the pose using the same rotation the positions got. The Rodrigues rotation about an axis is public as well.
Decisions I made:
turn!is public too and returns the rotation. In a chained system a later transform's rotation depends on where the earlier ones left its base, so a tool that turns velocities needs each rotation in order. Callingturn!in a loop gives it that.turn!takes(pose, transforms, transform)and finds the base itself, instead of being handed a base position. Placing used to pass the authored base position. It now reads the base point it has just shifted onto that position, which differs only by rounding.Symbolics.Num, so Symbolics joins the test environment. It adds Symbolics' dependency tree to both tracked manifests. On 1.13 the resolve also updated the standard-library jll pins to Julia 1.13.4's versions and fixed a staleKiteGeometryversion entry. No existing package moved otherwise.choosehelper (ifelseper element) now builds a typedSVector. Its oldmapgaveSVector{3, Any}on mixedFloat64/Numinputs, andcrossrefused that type.Only the tangential frame is claimed symbolic. The rotation about an axis is made public as it stands; it is not tested on symbolic inputs.
Verification
calc_R_t_to_w([x, y, z])onSymbolics.NumthrowsTypeError: non-boolean (Num) used in boolean contexttest/test-transforms.jlnew sets — "the tangential frame of a symbolic position is the numeric one" (compiled withbuild_function, compared at a generic point, the zenith and near it, atol 1e-12) and "turn! moves each transform's members by the rotation turn_rotation gives": red before (TypeError /turn_rotationundefined), green after, 40/40test/runtests.jl, Julia 1.13.4): 1027/1027 pass · local CI mirror: PASS (3 min) · GitHub CI: runs on pushstructure.mdonly) · REUSE lint clean · up to date with mainrotate_v_around_kon symbolic vectors. That path is untested here.Lines: +853 −80 (net +773) · the 9 files it touches: 3249 → 4022
Opened by
1-Bort-1, an AI agent working for1-Bart-1.Closes #148 · task
KiteGeometry.jl-148