@automovie/engine 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/IAutoMovieFormationPlacement.d.ts +4 -3
- package/lib/analysis/index.d.ts +5 -0
- package/lib/analysis/index.js +5 -0
- package/lib/analysis/index.js.map +1 -1
- package/lib/anthropometry/AutoMovieHandAnthropometry.d.ts +47 -0
- package/lib/anthropometry/AutoMovieHandAnthropometry.js +53 -0
- package/lib/anthropometry/AutoMovieHandAnthropometry.js.map +1 -0
- package/lib/anthropometry/index.d.ts +1 -0
- package/lib/anthropometry/index.js +18 -0
- package/lib/anthropometry/index.js.map +1 -0
- package/lib/architecture/appendBuiltRegionDefects.d.ts +1 -1
- package/lib/architecture/appendBuiltRegionDefects.js +3 -3
- package/lib/architecture/appendBuiltRegionDefects.js.map +1 -1
- package/lib/architecture/builtOutlineIsClosed.d.ts +1 -1
- package/lib/architecture/builtOutlineIsClosed.js +3 -3
- package/lib/architecture/builtOutlineIsClosed.js.map +1 -1
- package/{src/architecture/constants/PLANAR_EPSILON.ts → lib/architecture/constants/BUILT_PLANAR_EPSILON.d.ts} +1 -1
- package/lib/architecture/constants/{PLANAR_EPSILON.js → BUILT_PLANAR_EPSILON.js} +3 -3
- package/lib/architecture/constants/BUILT_PLANAR_EPSILON.js.map +1 -0
- package/lib/architecture/constants/index.d.ts +1 -1
- package/lib/architecture/constants/index.js +1 -1
- package/lib/architecture/constants/index.js.map +1 -1
- package/lib/architecture/index.d.ts +157 -117
- package/lib/architecture/index.js +171 -158
- package/lib/architecture/index.js.map +1 -1
- package/lib/cache/index.d.ts +9 -0
- package/lib/cache/index.js +26 -0
- package/lib/cache/index.js.map +1 -0
- package/lib/composition/AutoMovieComposition.d.ts +25 -6
- package/lib/composition/AutoMovieComposition.js +4 -3
- package/lib/composition/AutoMovieComposition.js.map +1 -1
- package/lib/composition/AutoMovieScheduleCut.d.ts +53 -0
- package/lib/composition/AutoMovieScheduleCut.js +99 -0
- package/lib/composition/AutoMovieScheduleCut.js.map +1 -0
- package/lib/composition/AutoMovieScheduleError.d.ts +79 -0
- package/lib/composition/AutoMovieScheduleError.js +51 -0
- package/lib/composition/AutoMovieScheduleError.js.map +1 -0
- package/lib/composition/AutoMovieSchedulePlace.d.ts +56 -0
- package/lib/composition/AutoMovieSchedulePlace.js +185 -0
- package/lib/composition/AutoMovieSchedulePlace.js.map +1 -0
- package/lib/composition/AutoMovieScheduleWalk.d.ts +121 -0
- package/lib/composition/AutoMovieScheduleWalk.js +161 -0
- package/lib/composition/AutoMovieScheduleWalk.js.map +1 -0
- package/lib/composition/IAutoMovieIntent.d.ts +9 -6
- package/lib/composition/index.d.ts +12 -7
- package/lib/composition/index.js +12 -2
- package/lib/composition/index.js.map +1 -1
- package/lib/composition/markAutoMovieContacts.d.ts +29 -0
- package/lib/composition/markAutoMovieContacts.js +69 -0
- package/lib/composition/markAutoMovieContacts.js.map +1 -0
- package/lib/composition/resolveAutoMovieContactEvents.d.ts +56 -7
- package/lib/composition/resolveAutoMovieContactEvents.js +89 -18
- package/lib/composition/resolveAutoMovieContactEvents.js.map +1 -1
- package/lib/composition/resolveAutoMovieMutualGoal.d.ts +45 -29
- package/lib/composition/resolveAutoMovieMutualGoal.js +123 -60
- package/lib/composition/resolveAutoMovieMutualGoal.js.map +1 -1
- package/lib/composition/resolveAutoMovieSchedule.d.ts +69 -11
- package/lib/composition/resolveAutoMovieSchedule.js +32 -103
- package/lib/composition/resolveAutoMovieSchedule.js.map +1 -1
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +2 -0
- package/lib/constants/index.js.map +1 -1
- package/lib/createAutoMovieGeometryActorReader.js +2 -1
- package/lib/createAutoMovieGeometryActorReader.js.map +1 -1
- package/lib/describeAutoMovieInstanceSetSubject.js +2 -5
- package/lib/describeAutoMovieInstanceSetSubject.js.map +1 -1
- package/lib/drawing/index.d.ts +12 -0
- package/lib/drawing/index.js +12 -0
- package/lib/drawing/index.js.map +1 -1
- package/lib/effectRuntime/index.d.ts +7 -0
- package/lib/effectRuntime/index.js +7 -0
- package/lib/effectRuntime/index.js.map +1 -1
- package/lib/film/compileAttach.js +2 -5
- package/lib/film/compileAttach.js.map +1 -1
- package/lib/film/compileLaunch.d.ts +2 -2
- package/lib/film/compileLaunch.js +4 -3
- package/lib/film/compileLaunch.js.map +1 -1
- package/lib/film/constants/index.d.ts +3 -0
- package/lib/film/constants/index.js +3 -0
- package/lib/film/constants/index.js.map +1 -1
- package/lib/film/index.d.ts +61 -6
- package/lib/film/index.js +61 -12
- package/lib/film/index.js.map +1 -1
- package/lib/film/propAnchorFrame.js +6 -9
- package/lib/film/propAnchorFrame.js.map +1 -1
- package/lib/film/stageScene.js +3 -10
- package/lib/film/stageScene.js.map +1 -1
- package/lib/film/staging/index.d.ts +11 -0
- package/lib/film/staging/index.js +28 -0
- package/lib/film/staging/index.js.map +1 -0
- package/lib/film/staging/lowerLightPlacement.js +4 -7
- package/lib/film/staging/lowerLightPlacement.js.map +1 -1
- package/lib/formationSlotPosition.d.ts +6 -1
- package/lib/formationSlotPosition.js +38 -3
- package/lib/formationSlotPosition.js.map +1 -1
- package/lib/geometry/IAutoMovieMark.d.ts +99 -0
- package/lib/geometry/IAutoMovieMark.js +3 -0
- package/lib/geometry/IAutoMovieMark.js.map +1 -0
- package/lib/geometry/IAutoMovieMeshDefect.d.ts +33 -0
- package/lib/geometry/IAutoMovieMeshDefect.js +3 -0
- package/lib/geometry/IAutoMovieMeshDefect.js.map +1 -0
- package/lib/geometry/constants/index.d.ts +2 -0
- package/lib/geometry/constants/index.js +2 -0
- package/lib/geometry/constants/index.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionAdmission.js +72 -10
- package/lib/geometry/construction/AutoMovieConstructionAdmission.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionBridgeRealize.d.ts +35 -0
- package/lib/geometry/construction/AutoMovieConstructionBridgeRealize.js +155 -0
- package/lib/geometry/construction/AutoMovieConstructionBridgeRealize.js.map +1 -0
- package/lib/geometry/construction/AutoMovieConstructionContinuationRealize.js +4 -0
- package/lib/geometry/construction/AutoMovieConstructionContinuationRealize.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionPortRealize.d.ts +1 -1
- package/lib/geometry/construction/AutoMovieConstructionPortRealize.js +38 -14
- package/lib/geometry/construction/AutoMovieConstructionPortRealize.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSeeds.d.ts +6 -6
- package/lib/geometry/construction/AutoMovieConstructionSeeds.js +34 -11
- package/lib/geometry/construction/AutoMovieConstructionSeeds.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSplitBand.d.ts +107 -2
- package/lib/geometry/construction/AutoMovieConstructionSplitBand.js +452 -16
- package/lib/geometry/construction/AutoMovieConstructionSplitBand.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSplitRealize.js +262 -0
- package/lib/geometry/construction/AutoMovieConstructionSplitRealize.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSplitSeam.d.ts +28 -2
- package/lib/geometry/construction/AutoMovieConstructionSplitSeam.js +51 -12
- package/lib/geometry/construction/AutoMovieConstructionSplitSeam.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionState.d.ts +11 -0
- package/lib/geometry/construction/AutoMovieConstructionState.js +5 -0
- package/lib/geometry/construction/AutoMovieConstructionState.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftCapRead.js +3 -2
- package/lib/geometry/construction/AutoMovieLoftCapRead.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftCapSource.js +21 -1
- package/lib/geometry/construction/AutoMovieLoftCapSource.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftJet.js +7 -5
- package/lib/geometry/construction/AutoMovieLoftJet.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftPoint.js +7 -4
- package/lib/geometry/construction/AutoMovieLoftPoint.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftRelief.d.ts +25 -0
- package/lib/geometry/construction/AutoMovieLoftRelief.js +37 -0
- package/lib/geometry/construction/AutoMovieLoftRelief.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftViewRead.js +29 -7
- package/lib/geometry/construction/AutoMovieLoftViewRead.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftViewSource.js +4 -2
- package/lib/geometry/construction/AutoMovieLoftViewSource.js.map +1 -1
- package/lib/geometry/construction/AutoMovieNaturalSpline.d.ts +20 -0
- package/lib/geometry/construction/AutoMovieNaturalSpline.js +37 -0
- package/lib/geometry/construction/AutoMovieNaturalSpline.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidBlendChain.d.ts +9 -1
- package/lib/geometry/construction/AutoMovieSolidBlendChain.js +13 -8
- package/lib/geometry/construction/AutoMovieSolidBlendChain.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidBodyMerge.js +2 -0
- package/lib/geometry/construction/AutoMovieSolidBodyMerge.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidClip.d.ts +15 -1
- package/lib/geometry/construction/AutoMovieSolidClip.js +306 -38
- package/lib/geometry/construction/AutoMovieSolidClip.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidCycle.d.ts +20 -5
- package/lib/geometry/construction/AutoMovieSolidCycle.js +68 -16
- package/lib/geometry/construction/AutoMovieSolidCycle.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidIntersectionWalk.js +89 -41
- package/lib/geometry/construction/AutoMovieSolidIntersectionWalk.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidJoin.d.ts +13 -0
- package/lib/geometry/construction/AutoMovieSolidJoin.js +23 -2
- package/lib/geometry/construction/AutoMovieSolidJoin.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshConstraints.d.ts +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshConstraints.js +28 -3
- package/lib/geometry/construction/AutoMovieSolidMeshConstraints.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshLoop.d.ts +4 -4
- package/lib/geometry/construction/AutoMovieSolidMeshLoop.js +42 -4
- package/lib/geometry/construction/AutoMovieSolidMeshLoop.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshPlan.d.ts +2 -1
- package/lib/geometry/construction/AutoMovieSolidMeshPlan.js +57 -25
- package/lib/geometry/construction/AutoMovieSolidMeshPlan.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidRail.d.ts +40 -0
- package/lib/geometry/construction/AutoMovieSolidRail.js +101 -31
- package/lib/geometry/construction/AutoMovieSolidRail.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidRailSolve.d.ts +7 -3
- package/lib/geometry/construction/AutoMovieSolidRailSolve.js +115 -18
- package/lib/geometry/construction/AutoMovieSolidRailSolve.js.map +1 -1
- package/lib/geometry/construction/AutoMovieViewLoft.js +9 -0
- package/lib/geometry/construction/AutoMovieViewLoft.js.map +1 -1
- package/lib/geometry/construction/IAutoMovieConstructionCurve.d.ts +37 -0
- package/lib/geometry/construction/IAutoMovieConstructionCurve.js +3 -0
- package/lib/geometry/construction/IAutoMovieConstructionCurve.js.map +1 -0
- package/lib/geometry/construction/IAutoMovieLoftChain.d.ts +6 -0
- package/lib/geometry/construction/IAutoMovieLoftRelief.d.ts +10 -0
- package/lib/geometry/construction/IAutoMovieViewPart.d.ts +9 -1
- package/lib/geometry/construction/faceAutoMovieSolidMesh.d.ts +3 -3
- package/lib/geometry/construction/faceAutoMovieSolidMesh.js +65 -16
- package/lib/geometry/construction/faceAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/fairAutoMovieSolidMesh.d.ts +45 -0
- package/lib/geometry/construction/fairAutoMovieSolidMesh.js +270 -0
- package/lib/geometry/construction/fairAutoMovieSolidMesh.js.map +1 -0
- package/lib/geometry/construction/gridAutoMovieSolidMesh.d.ts +18 -1
- package/lib/geometry/construction/gridAutoMovieSolidMesh.js +139 -7
- package/lib/geometry/construction/gridAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/index.d.ts +82 -2
- package/lib/geometry/construction/index.js +82 -2
- package/lib/geometry/construction/index.js.map +1 -1
- package/lib/geometry/construction/legalizeAutoMovieSolidMesh.d.ts +14 -1
- package/lib/geometry/construction/legalizeAutoMovieSolidMesh.js +26 -4
- package/lib/geometry/construction/legalizeAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/markAutoMovieConstructionCurves.d.ts +33 -0
- package/lib/geometry/construction/markAutoMovieConstructionCurves.js +51 -0
- package/lib/geometry/construction/markAutoMovieConstructionCurves.js.map +1 -0
- package/lib/geometry/construction/orientAutoMovieSolidChart.d.ts +1 -1
- package/lib/geometry/construction/orientAutoMovieSolidChart.js +28 -4
- package/lib/geometry/construction/orientAutoMovieSolidChart.js.map +1 -1
- package/lib/geometry/construction/probeAutoMovieSolidMesh.d.ts +11 -5
- package/lib/geometry/construction/probeAutoMovieSolidMesh.js +41 -28
- package/lib/geometry/construction/probeAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/realizeAutoMovieConstruction.js +45 -1
- package/lib/geometry/construction/realizeAutoMovieConstruction.js.map +1 -1
- package/lib/geometry/construction/sampleAutoMovieConstructionCurves.d.ts +31 -0
- package/lib/geometry/construction/sampleAutoMovieConstructionCurves.js +234 -0
- package/lib/geometry/construction/sampleAutoMovieConstructionCurves.js.map +1 -0
- package/lib/geometry/curve/index.d.ts +48 -25
- package/lib/geometry/curve/index.js +48 -25
- package/lib/geometry/curve/index.js.map +1 -1
- package/lib/geometry/extract/index.d.ts +0 -1
- package/lib/geometry/extract/index.js +0 -1
- package/lib/geometry/extract/index.js.map +1 -1
- package/lib/geometry/index.d.ts +87 -53
- package/lib/geometry/index.js +87 -50
- package/lib/geometry/index.js.map +1 -1
- package/lib/geometry/markAutoMovieMeshClearance.d.ts +32 -0
- package/lib/geometry/markAutoMovieMeshClearance.js +53 -0
- package/lib/geometry/markAutoMovieMeshClearance.js.map +1 -0
- package/lib/geometry/measureAutoMovieMeshDefects.d.ts +31 -0
- package/lib/geometry/measureAutoMovieMeshDefects.js +244 -0
- package/lib/geometry/measureAutoMovieMeshDefects.js.map +1 -0
- package/lib/geometry/sweep/index.d.ts +54 -15
- package/lib/geometry/sweep/index.js +54 -1
- package/lib/geometry/sweep/index.js.map +1 -1
- package/lib/index.d.ts +41 -450
- package/lib/index.js +41 -660
- package/lib/index.js.map +1 -1
- package/lib/kinematics/AutoMovieHumanoidDigitSurfaces.d.ts +36 -0
- package/lib/kinematics/AutoMovieHumanoidDigitSurfaces.js +67 -0
- package/lib/kinematics/AutoMovieHumanoidDigitSurfaces.js.map +1 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceExtents.d.ts +28 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceExtents.js +52 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceExtents.js.map +1 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRays.d.ts +55 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRays.js +191 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRays.js.map +1 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRegions.d.ts +49 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRegions.js +147 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRegions.js.map +1 -0
- package/lib/kinematics/IAutoMovieHingedArticulation.d.ts +17 -3
- package/lib/kinematics/IAutoMoviePoseRig.d.ts +31 -0
- package/lib/kinematics/IAutoMoviePoseRig.js +3 -0
- package/lib/kinematics/IAutoMoviePoseRig.js.map +1 -0
- package/lib/kinematics/IAutoMovieSwivelNear.d.ts +25 -0
- package/lib/kinematics/IAutoMovieSwivelNear.js +3 -0
- package/lib/kinematics/IAutoMovieSwivelNear.js.map +1 -0
- package/lib/kinematics/IAutoMovieSwivelSeed.d.ts +18 -0
- package/lib/kinematics/IAutoMovieSwivelSeed.js +3 -0
- package/lib/kinematics/IAutoMovieSwivelSeed.js.map +1 -0
- package/lib/kinematics/alternateRigJointAngles.d.ts +27 -0
- package/lib/kinematics/alternateRigJointAngles.js +34 -0
- package/lib/kinematics/alternateRigJointAngles.js.map +1 -0
- package/lib/kinematics/boxExcludedSwivels.d.ts +64 -0
- package/lib/kinematics/boxExcludedSwivels.js +187 -0
- package/lib/kinematics/boxExcludedSwivels.js.map +1 -0
- package/lib/kinematics/constants/HUMANOID_JOINT_AXES.d.ts +16 -2
- package/lib/kinematics/constants/HUMANOID_JOINT_AXES.js +19 -4
- package/lib/kinematics/constants/HUMANOID_JOINT_AXES.js.map +1 -1
- package/lib/kinematics/curlChainUntilContact.d.ts +16 -0
- package/lib/kinematics/curlChainUntilContact.js +45 -5
- package/lib/kinematics/curlChainUntilContact.js.map +1 -1
- package/lib/kinematics/decomposeJointRotation.d.ts +5 -2
- package/lib/kinematics/decomposeJointRotation.js +10 -131
- package/lib/kinematics/decomposeJointRotation.js.map +1 -1
- package/lib/kinematics/decomposeJointRotationOnBasis.d.ts +36 -0
- package/lib/kinematics/decomposeJointRotationOnBasis.js +228 -0
- package/lib/kinematics/decomposeJointRotationOnBasis.js.map +1 -0
- package/lib/kinematics/fitDigitDescent.d.ts +66 -0
- package/lib/kinematics/fitDigitDescent.js +142 -0
- package/lib/kinematics/fitDigitDescent.js.map +1 -0
- package/lib/kinematics/fitDigitToTarget.d.ts +125 -0
- package/lib/kinematics/fitDigitToTarget.js +251 -0
- package/lib/kinematics/fitDigitToTarget.js.map +1 -0
- package/lib/kinematics/hingedArmArticulation.d.ts +55 -7
- package/lib/kinematics/hingedArmArticulation.js +273 -84
- package/lib/kinematics/hingedArmArticulation.js.map +1 -1
- package/lib/kinematics/hingedArmSwivel.d.ts +141 -0
- package/lib/kinematics/hingedArmSwivel.js +196 -0
- package/lib/kinematics/hingedArmSwivel.js.map +1 -0
- package/lib/kinematics/index.d.ts +30 -7
- package/lib/kinematics/index.js +30 -5
- package/lib/kinematics/index.js.map +1 -1
- package/lib/kinematics/jointRomOvershoot.d.ts +13 -9
- package/lib/kinematics/jointRomOvershoot.js +21 -17
- package/lib/kinematics/jointRomOvershoot.js.map +1 -1
- package/lib/kinematics/jointToQuaternion.d.ts +2 -2
- package/lib/kinematics/jointToQuaternion.js +4 -19
- package/lib/kinematics/jointToQuaternion.js.map +1 -1
- package/lib/kinematics/jointToQuaternionOnBasis.d.ts +34 -0
- package/lib/kinematics/jointToQuaternionOnBasis.js +50 -0
- package/lib/kinematics/jointToQuaternionOnBasis.js.map +1 -0
- package/lib/kinematics/markAutoMovieBalance.d.ts +32 -0
- package/lib/kinematics/markAutoMovieBalance.js +65 -0
- package/lib/kinematics/markAutoMovieBalance.js.map +1 -0
- package/lib/kinematics/markAutoMovieRomOvershoot.d.ts +25 -0
- package/lib/kinematics/markAutoMovieRomOvershoot.js +43 -0
- package/lib/kinematics/markAutoMovieRomOvershoot.js.map +1 -0
- package/lib/kinematics/measureAutoMovieHumanoidBody.js +16 -5
- package/lib/kinematics/measureAutoMovieHumanoidBody.js.map +1 -1
- package/lib/kinematics/normalizeJointAxes.d.ts +15 -7
- package/lib/kinematics/normalizeJointAxes.js +52 -12
- package/lib/kinematics/normalizeJointAxes.js.map +1 -1
- package/lib/kinematics/poseJointCodec.d.ts +71 -0
- package/lib/kinematics/poseJointCodec.js +70 -0
- package/lib/kinematics/poseJointCodec.js.map +1 -0
- package/lib/kinematics/resolveAutoMovieBalanceOutcome.d.ts +112 -0
- package/lib/kinematics/resolveAutoMovieBalanceOutcome.js +168 -0
- package/lib/kinematics/resolveAutoMovieBalanceOutcome.js.map +1 -0
- package/lib/kinematics/resolveAutoMovieCenterOfMass.d.ts +29 -4
- package/lib/kinematics/resolveAutoMovieCenterOfMass.js +42 -8
- package/lib/kinematics/resolveAutoMovieCenterOfMass.js.map +1 -1
- package/lib/kinematics/resolveAutoMovieHumanoidRingModules.d.ts +75 -0
- package/lib/kinematics/resolveAutoMovieHumanoidRingModules.js +228 -0
- package/lib/kinematics/resolveAutoMovieHumanoidRingModules.js.map +1 -0
- package/lib/kinematics/resolveAutoMovieHumanoidSurfaces.d.ts +90 -10
- package/lib/kinematics/resolveAutoMovieHumanoidSurfaces.js +183 -258
- package/lib/kinematics/resolveAutoMovieHumanoidSurfaces.js.map +1 -1
- package/lib/kinematics/resolveAutoMovieMomentum.d.ts +112 -0
- package/lib/kinematics/resolveAutoMovieMomentum.js +153 -0
- package/lib/kinematics/resolveAutoMovieMomentum.js.map +1 -0
- package/lib/kinematics/swingTwistBasis.d.ts +108 -0
- package/lib/kinematics/swingTwistBasis.js +116 -0
- package/lib/kinematics/swingTwistBasis.js.map +1 -0
- package/lib/kinematics/swingTwistExcludedSwivels.d.ts +65 -0
- package/lib/kinematics/swingTwistExcludedSwivels.js +138 -0
- package/lib/kinematics/swingTwistExcludedSwivels.js.map +1 -0
- package/lib/kinematics/swingTwistRange.d.ts +246 -0
- package/lib/kinematics/swingTwistRange.js +322 -0
- package/lib/kinematics/swingTwistRange.js.map +1 -0
- package/lib/kinematics/swingTwistRegion.d.ts +50 -0
- package/lib/kinematics/swingTwistRegion.js +212 -0
- package/lib/kinematics/swingTwistRegion.js.map +1 -0
- package/lib/kinematics/swivelArcs.d.ts +166 -0
- package/lib/kinematics/swivelArcs.js +200 -0
- package/lib/kinematics/swivelArcs.js.map +1 -0
- package/lib/math/Quaternion.d.ts +29 -2
- package/lib/math/Quaternion.js +33 -2
- package/lib/math/Quaternion.js.map +1 -1
- package/lib/math/Transform.d.ts +50 -0
- package/lib/math/Transform.js +58 -0
- package/lib/math/Transform.js.map +1 -0
- package/lib/math/assignAutoMovieMinimumCost.d.ts +18 -0
- package/lib/math/assignAutoMovieMinimumCost.js +86 -0
- package/lib/math/assignAutoMovieMinimumCost.js.map +1 -0
- package/lib/math/bracketedBisection.d.ts +33 -0
- package/lib/math/bracketedBisection.js +52 -0
- package/lib/math/bracketedBisection.js.map +1 -0
- package/lib/math/bracketedRoot.d.ts +32 -0
- package/lib/math/bracketedRoot.js +76 -0
- package/lib/math/bracketedRoot.js.map +1 -0
- package/lib/math/constants/index.d.ts +1 -0
- package/lib/math/constants/index.js +18 -0
- package/lib/math/constants/index.js.map +1 -0
- package/lib/math/index.d.ts +64 -5
- package/lib/math/index.js +64 -5
- package/lib/math/index.js.map +1 -1
- package/lib/math/nearestAngleAlias.d.ts +27 -0
- package/lib/math/nearestAngleAlias.js +44 -0
- package/lib/math/nearestAngleAlias.js.map +1 -0
- package/lib/math/solveAutoMovieHalfPlaneProgram.d.ts +68 -0
- package/lib/math/solveAutoMovieHalfPlaneProgram.js +199 -0
- package/lib/math/solveAutoMovieHalfPlaneProgram.js.map +1 -0
- package/lib/math/tetrahedralizeAutoMovieDelaunay.d.ts +82 -0
- package/lib/math/tetrahedralizeAutoMovieDelaunay.js +187 -0
- package/lib/math/tetrahedralizeAutoMovieDelaunay.js.map +1 -0
- package/lib/measureAutoMovieGeometryReach.js +2 -4
- package/lib/measureAutoMovieGeometryReach.js.map +1 -1
- package/lib/motion/AirborneTakeoffLinear.d.ts +22 -0
- package/lib/motion/AirborneTakeoffLinear.js +58 -0
- package/lib/motion/AirborneTakeoffLinear.js.map +1 -0
- package/lib/motion/IAutoMovieCrowdAgent.d.ts +113 -0
- package/lib/motion/IAutoMovieCrowdAgent.js +3 -0
- package/lib/motion/IAutoMovieCrowdAgent.js.map +1 -0
- package/lib/motion/IAutoMovieSeededChainFit.d.ts +32 -0
- package/lib/motion/IAutoMovieSeededChainFit.js +3 -0
- package/lib/motion/IAutoMovieSeededChainFit.js.map +1 -0
- package/lib/motion/IAutoMovieSolvedChainPlant.d.ts +20 -0
- package/lib/motion/IFitChainToTargetProps.d.ts +59 -0
- package/lib/motion/MotionTrajectoryStepper.d.ts +100 -0
- package/lib/motion/MotionTrajectoryStepper.js +357 -0
- package/lib/motion/MotionTrajectoryStepper.js.map +1 -0
- package/lib/motion/basisOf.d.ts +18 -0
- package/lib/motion/basisOf.js +25 -0
- package/lib/motion/basisOf.js.map +1 -0
- package/lib/motion/carriedAcceleration.d.ts +43 -0
- package/lib/motion/carriedAcceleration.js +55 -0
- package/lib/motion/carriedAcceleration.js.map +1 -0
- package/lib/motion/carriedRate.d.ts +48 -0
- package/lib/motion/carriedRate.js +60 -0
- package/lib/motion/carriedRate.js.map +1 -0
- package/lib/motion/constants/PLANT_RESIDUAL_EPSILON.d.ts +10 -0
- package/lib/motion/constants/PLANT_RESIDUAL_EPSILON.js +14 -0
- package/lib/motion/constants/PLANT_RESIDUAL_EPSILON.js.map +1 -0
- package/lib/motion/constants/index.d.ts +1 -0
- package/lib/motion/constants/index.js +1 -0
- package/lib/motion/constants/index.js.map +1 -1
- package/lib/motion/fitChainBend.d.ts +23 -0
- package/lib/motion/fitChainBend.js +293 -0
- package/lib/motion/fitChainBend.js.map +1 -0
- package/lib/motion/fitChainToTarget.d.ts +11 -13
- package/lib/motion/fitChainToTarget.js +12 -283
- package/lib/motion/fitChainToTarget.js.map +1 -1
- package/lib/motion/fitHingedChainCandidate.d.ts +16 -4
- package/lib/motion/fitHingedChainCandidate.js +186 -76
- package/lib/motion/fitHingedChainCandidate.js.map +1 -1
- package/lib/motion/fitHingedRotationError.d.ts +31 -0
- package/lib/motion/fitHingedRotationError.js +107 -0
- package/lib/motion/fitHingedRotationError.js.map +1 -0
- package/lib/motion/fitSeededChainToTarget.d.ts +20 -0
- package/lib/motion/fitSeededChainToTarget.js +32 -0
- package/lib/motion/fitSeededChainToTarget.js.map +1 -0
- package/lib/motion/gaitMotion.js +7 -13
- package/lib/motion/gaitMotion.js.map +1 -1
- package/lib/motion/gestureMotion.js +2 -5
- package/lib/motion/gestureMotion.js.map +1 -1
- package/lib/motion/importedNodeClipToAutoMovieMotion.js +6 -9
- package/lib/motion/importedNodeClipToAutoMovieMotion.js.map +1 -1
- package/lib/motion/index.d.ts +40 -9
- package/lib/motion/index.js +40 -12
- package/lib/motion/index.js.map +1 -1
- package/lib/motion/inertializeOffset.d.ts +15 -2
- package/lib/motion/inertializeOffset.js +16 -3
- package/lib/motion/inertializeOffset.js.map +1 -1
- package/lib/motion/inertializePose.d.ts +36 -13
- package/lib/motion/inertializePose.js +122 -43
- package/lib/motion/inertializePose.js.map +1 -1
- package/lib/motion/integrateAirborneRotation.d.ts +151 -0
- package/lib/motion/integrateAirborneRotation.js +204 -0
- package/lib/motion/integrateAirborneRotation.js.map +1 -0
- package/lib/motion/integrateMotionTrajectory.d.ts +117 -0
- package/lib/motion/integrateMotionTrajectory.js +156 -0
- package/lib/motion/integrateMotionTrajectory.js.map +1 -0
- package/lib/motion/orientChainEffector.d.ts +1 -1
- package/lib/motion/orientChainEffector.js +15 -7
- package/lib/motion/orientChainEffector.js.map +1 -1
- package/lib/motion/resolveHydrodynamicForce.d.ts +85 -0
- package/lib/motion/resolveHydrodynamicForce.js +100 -0
- package/lib/motion/resolveHydrodynamicForce.js.map +1 -0
- package/lib/motion/sampleMotion.js +2 -5
- package/lib/motion/sampleMotion.js.map +1 -1
- package/lib/motion/samplePoseVelocity.d.ts +76 -13
- package/lib/motion/samplePoseVelocity.js +126 -38
- package/lib/motion/samplePoseVelocity.js.map +1 -1
- package/lib/motion/smoothMinimum.d.ts +29 -0
- package/lib/motion/smoothMinimum.js +40 -0
- package/lib/motion/smoothMinimum.js.map +1 -0
- package/lib/motion/solveAirborneTakeoff.d.ts +150 -0
- package/lib/motion/solveAirborneTakeoff.js +324 -0
- package/lib/motion/solveAirborneTakeoff.js.map +1 -0
- package/lib/motion/solveDistalTwist.d.ts +62 -0
- package/lib/motion/solveDistalTwist.js +152 -0
- package/lib/motion/solveDistalTwist.js.map +1 -0
- package/lib/motion/speedProfile.d.ts +175 -0
- package/lib/motion/speedProfile.js +261 -0
- package/lib/motion/speedProfile.js.map +1 -0
- package/lib/motion/splitDistalTwist.d.ts +12 -17
- package/lib/motion/splitDistalTwist.js +37 -40
- package/lib/motion/splitDistalTwist.js.map +1 -1
- package/lib/motion/steerAutoMovieCrowd.d.ts +74 -0
- package/lib/motion/steerAutoMovieCrowd.js +249 -0
- package/lib/motion/steerAutoMovieCrowd.js.map +1 -0
- package/lib/motion/steerAutoMovieCrowdGeometry.d.ts +241 -0
- package/lib/motion/steerAutoMovieCrowdGeometry.js +470 -0
- package/lib/motion/steerAutoMovieCrowdGeometry.js.map +1 -0
- package/lib/perform/index.d.ts +10 -0
- package/lib/perform/index.js +10 -0
- package/lib/perform/index.js.map +1 -1
- package/lib/physics/AutoMovieAir.d.ts +21 -0
- package/lib/physics/AutoMovieAir.js +26 -0
- package/lib/physics/AutoMovieAir.js.map +1 -0
- package/lib/physics/AutoMovieGravity.d.ts +22 -0
- package/lib/physics/AutoMovieGravity.js +30 -0
- package/lib/physics/AutoMovieGravity.js.map +1 -0
- package/lib/physics/IAutoMovieHit.d.ts +11 -7
- package/lib/physics/IAutoMovieProjectile.d.ts +65 -6
- package/lib/physics/IAutoMovieProjectileState.d.ts +6 -4
- package/lib/physics/admitMotionGeometry.js +12 -0
- package/lib/physics/admitMotionGeometry.js.map +1 -1
- package/lib/physics/bindPhysicalWorld.js +16 -4
- package/lib/physics/bindPhysicalWorld.js.map +1 -1
- package/lib/physics/combinePhysicalMassProperties.d.ts +2 -1
- package/lib/physics/combinePhysicalMassProperties.js +8 -90
- package/lib/physics/combinePhysicalMassProperties.js.map +1 -1
- package/lib/physics/deriveCenterOfMass.js +2 -5
- package/lib/physics/deriveCenterOfMass.js.map +1 -1
- package/lib/physics/derivePhysicalProfile.js +7 -5
- package/lib/physics/derivePhysicalProfile.js.map +1 -1
- package/lib/physics/index.d.ts +155 -2
- package/lib/physics/index.js +155 -2
- package/lib/physics/index.js.map +1 -1
- package/lib/physics/markAutoMovieSkeleton.d.ts +33 -0
- package/lib/physics/markAutoMovieSkeleton.js +62 -0
- package/lib/physics/markAutoMovieSkeleton.js.map +1 -0
- package/lib/physics/physicalHullErode.d.ts +25 -0
- package/lib/physics/physicalHullErode.js +54 -0
- package/lib/physics/physicalHullErode.js.map +1 -0
- package/lib/physics/physicalHullFaces.d.ts +56 -0
- package/lib/physics/physicalHullFaces.js +151 -0
- package/lib/physics/physicalHullFaces.js.map +1 -0
- package/lib/physics/physicalHullMass.d.ts +32 -0
- package/lib/physics/physicalHullMass.js +80 -0
- package/lib/physics/physicalHullMass.js.map +1 -0
- package/lib/physics/physicalHullNearest.d.ts +37 -0
- package/lib/physics/physicalHullNearest.js +178 -0
- package/lib/physics/physicalHullNearest.js.map +1 -0
- package/lib/physics/physicalHullSegment.d.ts +34 -0
- package/lib/physics/physicalHullSegment.js +276 -0
- package/lib/physics/physicalHullSegment.js.map +1 -0
- package/lib/physics/physicalInertiaTensor.d.ts +28 -0
- package/lib/physics/physicalInertiaTensor.js +58 -0
- package/lib/physics/physicalInertiaTensor.js.map +1 -0
- package/lib/physics/physicalNativeShape.d.ts +1 -1
- package/lib/physics/physicalNativeShape.js +15 -4
- package/lib/physics/physicalNativeShape.js.map +1 -1
- package/lib/physics/physicalPrincipalAxes.d.ts +28 -0
- package/lib/physics/physicalPrincipalAxes.js +96 -0
- package/lib/physics/physicalPrincipalAxes.js.map +1 -0
- package/lib/physics/physicalShapeBounds.d.ts +2 -1
- package/lib/physics/physicalShapeBounds.js +26 -2
- package/lib/physics/physicalShapeBounds.js.map +1 -1
- package/lib/physics/physicalShapeNearest.d.ts +70 -0
- package/lib/physics/physicalShapeNearest.js +201 -0
- package/lib/physics/physicalShapeNearest.js.map +1 -0
- package/lib/physics/physicalShapeNormal.d.ts +26 -0
- package/lib/physics/physicalShapeNormal.js +70 -0
- package/lib/physics/physicalShapeNormal.js.map +1 -0
- package/lib/physics/physicalShapePairDistance.d.ts +32 -0
- package/lib/physics/physicalShapePairDistance.js +124 -0
- package/lib/physics/physicalShapePairDistance.js.map +1 -0
- package/lib/physics/physicalShapeSegmentDistance.d.ts +16 -20
- package/lib/physics/physicalShapeSegmentDistance.js +18 -70
- package/lib/physics/physicalShapeSegmentDistance.js.map +1 -1
- package/lib/physics/physicalShapeSpan.d.ts +21 -0
- package/lib/physics/physicalShapeSpan.js +55 -0
- package/lib/physics/physicalShapeSpan.js.map +1 -0
- package/lib/physics/physicalShapeSurfaceAnchor.d.ts +1 -1
- package/lib/physics/physicalShapeSurfaceAnchor.js +24 -5
- package/lib/physics/physicalShapeSurfaceAnchor.js.map +1 -1
- package/lib/physics/projectileAt.d.ts +14 -12
- package/lib/physics/projectileAt.js +46 -16
- package/lib/physics/projectileAt.js.map +1 -1
- package/lib/physics/projectileContinue.d.ts +114 -0
- package/lib/physics/projectileContinue.js +189 -0
- package/lib/physics/projectileContinue.js.map +1 -0
- package/lib/physics/projectileDragFlight.d.ts +72 -0
- package/lib/physics/projectileDragFlight.js +166 -0
- package/lib/physics/projectileDragFlight.js.map +1 -0
- package/lib/physics/projectileFirstContact.d.ts +105 -0
- package/lib/physics/projectileFirstContact.js +174 -0
- package/lib/physics/projectileFirstContact.js.map +1 -0
- package/lib/physics/projectileTrajectory.js +3 -2
- package/lib/physics/projectileTrajectory.js.map +1 -1
- package/lib/physics/solveBallisticLaunch.js +2 -1
- package/lib/physics/solveBallisticLaunch.js.map +1 -1
- package/lib/physics/solveMovingLaunch.js +2 -1
- package/lib/physics/solveMovingLaunch.js.map +1 -1
- package/lib/physics/validatePhysicalProfile.js +18 -1
- package/lib/physics/validatePhysicalProfile.js.map +1 -1
- package/lib/populationRuntime/index.d.ts +6 -0
- package/lib/populationRuntime/index.js +6 -0
- package/lib/populationRuntime/index.js.map +1 -1
- package/lib/populationRuntime/materializeCompiledFormation.js +2 -5
- package/lib/populationRuntime/materializeCompiledFormation.js.map +1 -1
- package/lib/random/index.d.ts +1 -1
- package/lib/random/index.js +1 -0
- package/lib/random/index.js.map +1 -1
- package/lib/render/index.d.ts +20 -11
- package/lib/render/index.js +20 -11
- package/lib/render/index.js.map +1 -1
- package/lib/resolve/index.d.ts +7 -2
- package/lib/resolve/index.js +7 -5
- package/lib/resolve/index.js.map +1 -1
- package/lib/resolve/lowerSkeletonNodes.js +3 -10
- package/lib/resolve/lowerSkeletonNodes.js.map +1 -1
- package/lib/rom/clampJointRom.d.ts +11 -3
- package/lib/rom/clampJointRom.js +43 -3
- package/lib/rom/clampJointRom.js.map +1 -1
- package/lib/rom/clampJointToSkeleton.d.ts +25 -2
- package/lib/rom/clampJointToSkeleton.js +39 -8
- package/lib/rom/clampJointToSkeleton.js.map +1 -1
- package/lib/rom/constants/ANKLE_DORSIFLEXION.d.ts +18 -0
- package/lib/rom/constants/ANKLE_DORSIFLEXION.js +22 -0
- package/lib/rom/constants/ANKLE_DORSIFLEXION.js.map +1 -0
- package/lib/rom/constants/DEFAULT_HUMANOID_ROM.d.ts +28 -0
- package/lib/rom/constants/DEFAULT_HUMANOID_ROM.js +129 -39
- package/lib/rom/constants/DEFAULT_HUMANOID_ROM.js.map +1 -1
- package/lib/rom/constants/ROM_TOLERANCE.d.ts +8 -0
- package/lib/rom/constants/ROM_TOLERANCE.js +12 -0
- package/lib/rom/constants/ROM_TOLERANCE.js.map +1 -0
- package/lib/rom/constants/index.d.ts +2 -0
- package/lib/rom/constants/index.js +2 -0
- package/lib/rom/constants/index.js.map +1 -1
- package/lib/rom/index.d.ts +1 -0
- package/lib/rom/index.js +1 -0
- package/lib/rom/index.js.map +1 -1
- package/lib/rom/scanJointRom.d.ts +62 -0
- package/lib/rom/scanJointRom.js +117 -0
- package/lib/rom/scanJointRom.js.map +1 -0
- package/lib/rom/validateJointRom.d.ts +4 -2
- package/lib/rom/validateJointRom.js +23 -45
- package/lib/rom/validateJointRom.js.map +1 -1
- package/lib/service/index.d.ts +9 -0
- package/lib/service/index.js +9 -0
- package/lib/service/index.js.map +1 -1
- package/lib/soft/IAutoMovieSoftBodyBoundarySample.d.ts +2 -0
- package/lib/soft/IAutoMovieSoftBodyObserver.d.ts +30 -0
- package/lib/soft/IAutoMovieSoftBodyObserver.js +3 -0
- package/lib/soft/IAutoMovieSoftBodyObserver.js.map +1 -0
- package/lib/soft/applySoftBodyFriction.d.ts +34 -0
- package/lib/soft/applySoftBodyFriction.js +52 -0
- package/lib/soft/applySoftBodyFriction.js.map +1 -0
- package/lib/soft/index.d.ts +22 -0
- package/lib/soft/index.js +22 -0
- package/lib/soft/index.js.map +1 -1
- package/lib/soft/projectSoftCordSelfContact.d.ts +53 -0
- package/lib/soft/projectSoftCordSelfContact.js +172 -0
- package/lib/soft/projectSoftCordSelfContact.js.map +1 -0
- package/lib/soft/simulateSoftBodyCore.d.ts +6 -3
- package/lib/soft/simulateSoftBodyCore.js +108 -16
- package/lib/soft/simulateSoftBodyCore.js.map +1 -1
- package/lib/soft/simulateSoftBodyWithBoundaries.d.ts +3 -2
- package/lib/soft/simulateSoftBodyWithBoundaries.js +10 -3
- package/lib/soft/simulateSoftBodyWithBoundaries.js.map +1 -1
- package/lib/soft/softBodyBudget.js +7 -0
- package/lib/soft/softBodyBudget.js.map +1 -1
- package/lib/soft/softBodyHeldLoads.d.ts +34 -0
- package/lib/soft/softBodyHeldLoads.js +69 -0
- package/lib/soft/softBodyHeldLoads.js.map +1 -0
- package/lib/soft/solveSoftBodyCompliantSweep.d.ts +48 -0
- package/lib/soft/solveSoftBodyCompliantSweep.js +86 -0
- package/lib/soft/solveSoftBodyCompliantSweep.js.map +1 -0
- package/lib/soft/validateSoftAnchors.d.ts +24 -0
- package/lib/soft/validateSoftAnchors.js +74 -0
- package/lib/soft/validateSoftAnchors.js.map +1 -0
- package/lib/soft/validateSoftBodyDomain.js +6 -48
- package/lib/soft/validateSoftBodyDomain.js.map +1 -1
- package/lib/soft/validateSoftBounded.d.ts +20 -0
- package/lib/soft/validateSoftBounded.js +27 -0
- package/lib/soft/validateSoftBounded.js.map +1 -0
- package/lib/soft/validateSoftCompliance.d.ts +30 -0
- package/lib/soft/validateSoftCompliance.js +54 -0
- package/lib/soft/validateSoftCompliance.js.map +1 -0
- package/lib/sound/index.d.ts +2 -0
- package/lib/sound/index.js +2 -0
- package/lib/sound/index.js.map +1 -1
- package/lib/text/index.d.ts +1 -0
- package/lib/text/index.js +1 -0
- package/lib/text/index.js.map +1 -1
- package/lib/validation/AffordanceArticulation.d.ts +69 -0
- package/lib/validation/AffordanceArticulation.js +142 -0
- package/lib/validation/AffordanceArticulation.js.map +1 -0
- package/lib/validation/affordanceFollowedTravel.d.ts +19 -0
- package/lib/validation/affordanceFollowedTravel.js +43 -0
- package/lib/validation/affordanceFollowedTravel.js.map +1 -0
- package/lib/validation/affordanceLeadingTravel.d.ts +21 -0
- package/lib/validation/affordanceLeadingTravel.js +99 -0
- package/lib/validation/affordanceLeadingTravel.js.map +1 -0
- package/lib/validation/affordanceTravelRange.d.ts +21 -0
- package/lib/validation/affordanceTravelRange.js +39 -0
- package/lib/validation/affordanceTravelRange.js.map +1 -0
- package/lib/validation/appendShotEventsArtifact.js +12 -0
- package/lib/validation/appendShotEventsArtifact.js.map +1 -1
- package/lib/validation/constants/index.d.ts +3 -3
- package/lib/validation/constants/index.js +3 -3
- package/lib/validation/constants/index.js.map +1 -1
- package/lib/validation/detectFreeFall.js +2 -1
- package/lib/validation/detectFreeFall.js.map +1 -1
- package/lib/validation/index.d.ts +52 -4
- package/lib/validation/index.js +52 -6
- package/lib/validation/index.js.map +1 -1
- package/lib/validation/markAutoMovieSlip.d.ts +26 -0
- package/lib/validation/markAutoMovieSlip.js +52 -0
- package/lib/validation/markAutoMovieSlip.js.map +1 -0
- package/lib/validation/validateAffordance.d.ts +3 -3
- package/lib/validation/validateAffordance.js +21 -3
- package/lib/validation/validateAffordance.js.map +1 -1
- package/lib/validation/validateAffordanceArticulation.d.ts +19 -0
- package/lib/validation/validateAffordanceArticulation.js +183 -0
- package/lib/validation/validateAffordanceArticulation.js.map +1 -0
- package/lib/validation/validateBalanceSupport.d.ts +1 -2
- package/lib/validation/validateBalanceSupport.js.map +1 -1
- package/lib/validation/validateBody.d.ts +2 -2
- package/lib/validation/validateBody.js +27 -3
- package/lib/validation/validateBody.js.map +1 -1
- package/lib/validation/validateFootSkate.d.ts +1 -2
- package/lib/validation/validateFootSkate.js.map +1 -1
- package/lib/validation/validateGroundContact.d.ts +1 -2
- package/lib/validation/validateGroundContact.js.map +1 -1
- package/lib/validation/validateJointConstraint.d.ts +1 -1
- package/lib/validation/validateJointConstraint.js +9 -1
- package/lib/validation/validateJointConstraint.js.map +1 -1
- package/lib/validation/validateModel.js +2 -0
- package/lib/validation/validateModel.js.map +1 -1
- package/lib/validation/validateSelfIntersection.d.ts +1 -2
- package/lib/validation/validateSelfIntersection.js.map +1 -1
- package/lib/worldBlock.js +6 -9
- package/lib/worldBlock.js.map +1 -1
- package/package.json +6 -6
- package/src/IAutoMovieFormationPlacement.ts +4 -3
- package/src/analysis/index.ts +5 -0
- package/src/anthropometry/AutoMovieHandAnthropometry.ts +65 -0
- package/src/anthropometry/index.ts +1 -0
- package/src/architecture/appendBuiltRegionDefects.ts +3 -3
- package/src/architecture/builtOutlineIsClosed.ts +3 -3
- package/{lib/architecture/constants/PLANAR_EPSILON.d.ts → src/architecture/constants/BUILT_PLANAR_EPSILON.ts} +1 -1
- package/src/architecture/constants/index.ts +1 -1
- package/src/architecture/index.ts +157 -117
- package/src/cache/index.ts +9 -0
- package/src/composition/AutoMovieComposition.ts +34 -7
- package/src/composition/AutoMovieScheduleCut.ts +141 -0
- package/src/composition/AutoMovieScheduleError.ts +108 -0
- package/src/composition/AutoMovieSchedulePlace.ts +253 -0
- package/src/composition/AutoMovieScheduleWalk.ts +215 -0
- package/src/composition/IAutoMovieIntent.ts +9 -7
- package/src/composition/index.ts +12 -7
- package/src/composition/markAutoMovieContacts.ts +79 -0
- package/src/composition/resolveAutoMovieContactEvents.ts +160 -19
- package/src/composition/resolveAutoMovieMutualGoal.ts +146 -72
- package/src/composition/resolveAutoMovieSchedule.ts +106 -145
- package/src/constants/index.ts +2 -0
- package/src/createAutoMovieGeometryActorReader.ts +2 -1
- package/src/describeAutoMovieInstanceSetSubject.ts +2 -5
- package/src/drawing/index.ts +12 -0
- package/src/effectRuntime/index.ts +7 -0
- package/src/film/compileAttach.ts +2 -5
- package/src/film/compileLaunch.ts +5 -4
- package/src/film/constants/index.ts +3 -0
- package/src/film/index.ts +61 -6
- package/src/film/propAnchorFrame.ts +3 -6
- package/src/film/stageScene.ts +3 -10
- package/src/film/staging/index.ts +11 -0
- package/src/film/staging/lowerLightPlacement.ts +3 -7
- package/src/formationSlotPosition.ts +54 -7
- package/src/geometry/IAutoMovieMark.ts +115 -0
- package/src/geometry/IAutoMovieMeshDefect.ts +39 -0
- package/src/geometry/constants/index.ts +2 -0
- package/src/geometry/construction/AutoMovieConstructionAdmission.ts +98 -13
- package/src/geometry/construction/AutoMovieConstructionBridgeRealize.ts +172 -0
- package/src/geometry/construction/AutoMovieConstructionContinuationRealize.ts +3 -0
- package/src/geometry/construction/AutoMovieConstructionPortRealize.ts +48 -16
- package/src/geometry/construction/AutoMovieConstructionSeeds.ts +54 -10
- package/src/geometry/construction/AutoMovieConstructionSplitBand.ts +509 -15
- package/src/geometry/construction/AutoMovieConstructionSplitRealize.ts +278 -0
- package/src/geometry/construction/AutoMovieConstructionSplitSeam.ts +50 -18
- package/src/geometry/construction/AutoMovieConstructionState.ts +13 -0
- package/src/geometry/construction/AutoMovieLoftCapRead.ts +3 -2
- package/src/geometry/construction/AutoMovieLoftCapSource.ts +34 -1
- package/src/geometry/construction/AutoMovieLoftJet.ts +10 -5
- package/src/geometry/construction/AutoMovieLoftPoint.ts +13 -4
- package/src/geometry/construction/AutoMovieLoftRelief.ts +42 -0
- package/src/geometry/construction/AutoMovieLoftViewRead.ts +34 -6
- package/src/geometry/construction/AutoMovieLoftViewSource.ts +4 -2
- package/src/geometry/construction/AutoMovieNaturalSpline.ts +44 -0
- package/src/geometry/construction/AutoMovieSolidBlendChain.ts +34 -20
- package/src/geometry/construction/AutoMovieSolidBodyMerge.ts +2 -0
- package/src/geometry/construction/AutoMovieSolidClip.ts +341 -54
- package/src/geometry/construction/AutoMovieSolidCycle.ts +104 -26
- package/src/geometry/construction/AutoMovieSolidIntersectionWalk.ts +100 -50
- package/src/geometry/construction/AutoMovieSolidJoin.ts +48 -2
- package/src/geometry/construction/AutoMovieSolidMeshConstraints.ts +35 -3
- package/src/geometry/construction/AutoMovieSolidMeshLoop.ts +55 -4
- package/src/geometry/construction/AutoMovieSolidMeshPlan.ts +79 -34
- package/src/geometry/construction/AutoMovieSolidRail.ts +124 -22
- package/src/geometry/construction/AutoMovieSolidRailSolve.ts +116 -25
- package/src/geometry/construction/AutoMovieViewLoft.ts +9 -0
- package/src/geometry/construction/IAutoMovieConstructionCurve.ts +42 -0
- package/src/geometry/construction/IAutoMovieLoftChain.ts +7 -0
- package/src/geometry/construction/IAutoMovieLoftRelief.ts +11 -0
- package/src/geometry/construction/IAutoMovieViewPart.ts +10 -1
- package/src/geometry/construction/faceAutoMovieSolidMesh.ts +76 -15
- package/src/geometry/construction/fairAutoMovieSolidMesh.ts +252 -0
- package/src/geometry/construction/gridAutoMovieSolidMesh.ts +173 -8
- package/src/geometry/construction/index.ts +82 -2
- package/src/geometry/construction/legalizeAutoMovieSolidMesh.ts +28 -2
- package/src/geometry/construction/markAutoMovieConstructionCurves.ts +58 -0
- package/src/geometry/construction/orientAutoMovieSolidChart.ts +32 -7
- package/src/geometry/construction/probeAutoMovieSolidMesh.ts +52 -30
- package/src/geometry/construction/realizeAutoMovieConstruction.ts +47 -5
- package/src/geometry/construction/sampleAutoMovieConstructionCurves.ts +307 -0
- package/src/geometry/curve/index.ts +48 -25
- package/src/geometry/extract/index.ts +0 -1
- package/src/geometry/index.ts +87 -53
- package/src/geometry/markAutoMovieMeshClearance.ts +69 -0
- package/src/geometry/measureAutoMovieMeshDefects.ts +327 -0
- package/src/geometry/sweep/index.ts +54 -15
- package/src/index.ts +41 -450
- package/src/kinematics/AutoMovieHumanoidDigitSurfaces.ts +110 -0
- package/src/kinematics/AutoMovieHumanoidSurfaceExtents.ts +81 -0
- package/src/kinematics/AutoMovieHumanoidSurfaceRays.ts +286 -0
- package/src/kinematics/AutoMovieHumanoidSurfaceRegions.ts +189 -0
- package/src/kinematics/IAutoMovieHingedArticulation.ts +21 -3
- package/src/kinematics/IAutoMoviePoseRig.ts +39 -0
- package/src/kinematics/IAutoMovieSwivelNear.ts +26 -0
- package/src/kinematics/IAutoMovieSwivelSeed.ts +19 -0
- package/src/kinematics/alternateRigJointAngles.ts +41 -0
- package/src/kinematics/boxExcludedSwivels.ts +260 -0
- package/src/kinematics/constants/HUMANOID_JOINT_AXES.ts +19 -4
- package/src/kinematics/curlChainUntilContact.ts +35 -8
- package/src/kinematics/decomposeJointRotation.ts +15 -178
- package/src/kinematics/decomposeJointRotationOnBasis.ts +310 -0
- package/src/kinematics/fitDigitDescent.ts +253 -0
- package/src/kinematics/fitDigitToTarget.ts +425 -0
- package/src/kinematics/hingedArmArticulation.ts +402 -116
- package/src/kinematics/hingedArmSwivel.ts +295 -0
- package/src/kinematics/index.ts +30 -12
- package/src/kinematics/jointRomOvershoot.ts +30 -19
- package/src/kinematics/jointToQuaternion.ts +8 -43
- package/src/kinematics/jointToQuaternionOnBasis.ts +84 -0
- package/src/kinematics/markAutoMovieBalance.ts +75 -0
- package/src/kinematics/markAutoMovieRomOvershoot.ts +52 -0
- package/src/kinematics/measureAutoMovieHumanoidBody.ts +31 -9
- package/src/kinematics/normalizeJointAxes.ts +66 -12
- package/src/kinematics/poseJointCodec.ts +148 -0
- package/src/kinematics/resolveAutoMovieBalanceOutcome.ts +293 -0
- package/src/kinematics/resolveAutoMovieCenterOfMass.ts +63 -10
- package/src/kinematics/resolveAutoMovieHumanoidRingModules.ts +434 -0
- package/src/kinematics/resolveAutoMovieHumanoidSurfaces.ts +230 -356
- package/src/kinematics/resolveAutoMovieMomentum.ts +253 -0
- package/src/kinematics/swingTwistBasis.ts +162 -0
- package/src/kinematics/swingTwistExcludedSwivels.ts +204 -0
- package/src/kinematics/swingTwistRange.ts +460 -0
- package/src/kinematics/swingTwistRegion.ts +298 -0
- package/src/kinematics/swivelArcs.ts +245 -0
- package/src/math/Quaternion.ts +42 -2
- package/src/math/Transform.ts +65 -0
- package/src/math/assignAutoMovieMinimumCost.ts +86 -0
- package/src/math/bracketedBisection.ts +51 -0
- package/src/math/bracketedRoot.ts +72 -0
- package/src/math/constants/index.ts +1 -0
- package/src/math/index.ts +64 -5
- package/src/math/nearestAngleAlias.ts +43 -0
- package/src/math/solveAutoMovieHalfPlaneProgram.ts +288 -0
- package/src/math/tetrahedralizeAutoMovieDelaunay.ts +264 -0
- package/src/measureAutoMovieGeometryReach.ts +2 -4
- package/src/motion/AirborneTakeoffLinear.ts +70 -0
- package/src/motion/IAutoMovieCrowdAgent.ts +121 -0
- package/src/motion/IAutoMovieSeededChainFit.ts +32 -0
- package/src/motion/IAutoMovieSolvedChainPlant.ts +20 -0
- package/src/motion/IFitChainToTargetProps.ts +67 -0
- package/src/motion/MotionTrajectoryStepper.ts +478 -0
- package/src/motion/basisOf.ts +29 -0
- package/src/motion/carriedAcceleration.ts +56 -0
- package/src/motion/carriedRate.ts +61 -0
- package/src/motion/constants/PLANT_RESIDUAL_EPSILON.ts +10 -0
- package/src/motion/constants/index.ts +1 -0
- package/src/motion/fitChainBend.ts +491 -0
- package/src/motion/fitChainToTarget.ts +13 -485
- package/src/motion/fitHingedChainCandidate.ts +281 -148
- package/src/motion/fitHingedRotationError.ts +164 -0
- package/src/motion/fitSeededChainToTarget.ts +34 -0
- package/src/motion/gaitMotion.ts +6 -10
- package/src/motion/gestureMotion.ts +2 -5
- package/src/motion/importedNodeClipToAutoMovieMotion.ts +3 -6
- package/src/motion/index.ts +40 -9
- package/src/motion/inertializeOffset.ts +16 -2
- package/src/motion/inertializePose.ts +158 -53
- package/src/motion/integrateAirborneRotation.ts +334 -0
- package/src/motion/integrateMotionTrajectory.ts +309 -0
- package/src/motion/orientChainEffector.ts +19 -13
- package/src/motion/resolveHydrodynamicForce.ts +143 -0
- package/src/motion/sampleMotion.ts +2 -5
- package/src/motion/samplePoseVelocity.ts +168 -41
- package/src/motion/smoothMinimum.ts +36 -0
- package/src/motion/solveAirborneTakeoff.ts +471 -0
- package/src/motion/solveDistalTwist.ts +256 -0
- package/src/motion/speedProfile.ts +470 -0
- package/src/motion/splitDistalTwist.ts +55 -64
- package/src/motion/steerAutoMovieCrowd.ts +381 -0
- package/src/motion/steerAutoMovieCrowdGeometry.ts +592 -0
- package/src/perform/index.ts +10 -0
- package/src/physics/AutoMovieAir.ts +22 -0
- package/src/physics/AutoMovieGravity.ts +28 -0
- package/src/physics/IAutoMovieHit.ts +13 -7
- package/src/physics/IAutoMovieProjectile.ts +82 -6
- package/src/physics/IAutoMovieProjectileState.ts +10 -4
- package/src/physics/admitMotionGeometry.ts +16 -0
- package/src/physics/bindPhysicalWorld.ts +22 -11
- package/src/physics/combinePhysicalMassProperties.ts +9 -117
- package/src/physics/deriveCenterOfMass.ts +2 -5
- package/src/physics/derivePhysicalProfile.ts +3 -1
- package/src/physics/index.ts +155 -2
- package/src/physics/markAutoMovieSkeleton.ts +69 -0
- package/src/physics/physicalHullErode.ts +72 -0
- package/src/physics/physicalHullFaces.ts +215 -0
- package/src/physics/physicalHullMass.ts +99 -0
- package/src/physics/physicalHullNearest.ts +210 -0
- package/src/physics/physicalHullSegment.ts +338 -0
- package/src/physics/physicalInertiaTensor.ts +75 -0
- package/src/physics/physicalNativeShape.ts +31 -9
- package/src/physics/physicalPrincipalAxes.ts +114 -0
- package/src/physics/physicalShapeBounds.ts +24 -2
- package/src/physics/physicalShapeNearest.ts +287 -0
- package/src/physics/physicalShapeNormal.ts +105 -0
- package/src/physics/physicalShapePairDistance.ts +153 -0
- package/src/physics/physicalShapeSegmentDistance.ts +18 -92
- package/src/physics/physicalShapeSpan.ts +75 -0
- package/src/physics/physicalShapeSurfaceAnchor.ts +33 -14
- package/src/physics/projectileAt.ts +61 -20
- package/src/physics/projectileContinue.ts +287 -0
- package/src/physics/projectileDragFlight.ts +208 -0
- package/src/physics/projectileFirstContact.ts +286 -0
- package/src/physics/projectileTrajectory.ts +6 -5
- package/src/physics/solveBallisticLaunch.ts +2 -1
- package/src/physics/solveMovingLaunch.ts +2 -1
- package/src/physics/validatePhysicalProfile.ts +20 -1
- package/src/populationRuntime/index.ts +6 -0
- package/src/populationRuntime/materializeCompiledFormation.ts +3 -6
- package/src/random/index.ts +1 -1
- package/src/render/index.ts +20 -11
- package/src/resolve/index.ts +7 -2
- package/src/resolve/lowerSkeletonNodes.ts +3 -10
- package/src/rom/clampJointRom.ts +59 -2
- package/src/rom/clampJointToSkeleton.ts +52 -15
- package/src/rom/constants/ANKLE_DORSIFLEXION.ts +20 -0
- package/src/rom/constants/DEFAULT_HUMANOID_ROM.ts +148 -37
- package/src/rom/constants/ROM_TOLERANCE.ts +8 -0
- package/src/rom/constants/index.ts +2 -0
- package/src/rom/index.ts +1 -0
- package/src/rom/scanJointRom.ts +169 -0
- package/src/rom/validateJointRom.ts +69 -74
- package/src/service/index.ts +9 -0
- package/src/soft/IAutoMovieSoftBodyBoundarySample.ts +3 -0
- package/src/soft/IAutoMovieSoftBodyObserver.ts +36 -0
- package/src/soft/applySoftBodyFriction.ts +65 -0
- package/src/soft/index.ts +22 -0
- package/src/soft/projectSoftCordSelfContact.ts +239 -0
- package/src/soft/simulateSoftBodyCore.ts +127 -15
- package/src/soft/simulateSoftBodyWithBoundaries.ts +16 -2
- package/src/soft/softBodyBudget.ts +11 -0
- package/src/soft/softBodyHeldLoads.ts +85 -0
- package/src/soft/solveSoftBodyCompliantSweep.ts +107 -0
- package/src/soft/validateSoftAnchors.ts +143 -0
- package/src/soft/validateSoftBodyDomain.ts +5 -124
- package/src/soft/validateSoftBounded.ts +42 -0
- package/src/soft/validateSoftCompliance.ts +102 -0
- package/src/sound/index.ts +2 -0
- package/src/text/index.ts +1 -0
- package/src/validation/AffordanceArticulation.ts +173 -0
- package/src/validation/affordanceFollowedTravel.ts +40 -0
- package/src/validation/affordanceLeadingTravel.ts +108 -0
- package/src/validation/affordanceTravelRange.ts +42 -0
- package/src/validation/appendShotEventsArtifact.ts +26 -0
- package/src/validation/constants/index.ts +3 -3
- package/src/validation/detectFreeFall.ts +3 -2
- package/src/validation/index.ts +52 -4
- package/src/validation/markAutoMovieSlip.ts +65 -0
- package/src/validation/validateAffordance.ts +38 -3
- package/src/validation/validateAffordanceArticulation.ts +311 -0
- package/src/validation/validateBalanceSupport.ts +2 -5
- package/src/validation/validateBody.ts +80 -3
- package/src/validation/validateFootSkate.ts +1 -1
- package/src/validation/validateGroundContact.ts +2 -5
- package/src/validation/validateJointConstraint.ts +19 -1
- package/src/validation/validateModel.ts +7 -0
- package/src/validation/validateSelfIntersection.ts +2 -5
- package/src/worldBlock.ts +3 -6
- package/lib/architecture/constants/PLANAR_EPSILON.js.map +0 -1
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.solveAirborneTakeoff = solveAirborneTakeoff;
|
|
4
|
+
const AutoMovieSolidVector_1 = require("../geometry/construction/AutoMovieSolidVector");
|
|
5
|
+
const Quaternion_1 = require("../math/Quaternion");
|
|
6
|
+
const Vector3_1 = require("../math/Vector3");
|
|
7
|
+
const AirborneTakeoffLinear_1 = require("./AirborneTakeoffLinear");
|
|
8
|
+
const integrateAirborneRotation_1 = require("./integrateAirborneRotation");
|
|
9
|
+
const integrateMotionTrajectory_1 = require("./integrateMotionTrajectory");
|
|
10
|
+
/**
|
|
11
|
+
* The take-off angular momentum that turns a body in flight through the
|
|
12
|
+
* requested somersault and twist and lands it with no tilt (#3426), for a
|
|
13
|
+
* given shape history and flight.
|
|
14
|
+
*
|
|
15
|
+
* The flight's attitude is read as somersault, tilt and twist angles, the
|
|
16
|
+
* convention #3416 names after Yeadon 1993 ("The biomechanics of twisting
|
|
17
|
+
* somersaults", J Sports Sci 11, not yet read at the source; the order here
|
|
18
|
+
* is this module's own): the body's attitude seen in the frame's axes `F`
|
|
19
|
+
* relative to its take-off, `(q0 F)⁻¹ q(t) F`, the identity at take-off
|
|
20
|
+
* whatever the frame, is `Rx(φ) Rz(θ) Ry(ψ)`, a somersault `φ` about the frame's
|
|
21
|
+
* lateral axis X, then a tilt `θ` about its forward axis Z, then a twist `ψ`
|
|
22
|
+
* about the body's long axis Y (`angles`). The somersault and the twist are
|
|
23
|
+
* unwrapped across the integrator's knots, so a whole turn reads 2π and not
|
|
24
|
+
* zero. The residual at touchdown is `[φ - 2π somersault, θ, ψ - 2π twist]`.
|
|
25
|
+
*
|
|
26
|
+
* The linearized start is `(∫ I⁻¹ dt)⁻¹ (turns + ∫ I⁻¹ h dt)`, the
|
|
27
|
+
* integrals by Simpson's rule on the integration grid. Newton's Jacobian
|
|
28
|
+
* is the forward sensitivity of that same flight, integrated with the
|
|
29
|
+
* orientation (`s' = f_y s + f_p`, SUNDIALS CVODES, section 4.2.6,
|
|
30
|
+
* https://sundials.readthedocs.io/en/latest/cvodes/Mathematics_link.html),
|
|
31
|
+
* carried into the derivatives of Yeadon's angles. It does not difference
|
|
32
|
+
* separately adapted integrations at machine-epsilon momentum offsets.
|
|
33
|
+
* Continuation scales the whole turn request: a missed stage is halved,
|
|
34
|
+
* an accepted stage advances and doubles the next increment (Allgower and
|
|
35
|
+
* Georg, Introduction to Numerical Continuation Methods), down to the
|
|
36
|
+
* request's angular tolerance. Newton's starts and trial steps are projected
|
|
37
|
+
* onto the momentum ball when a ceiling is given, and a projected trial is
|
|
38
|
+
* accepted only if it lowers the residual (projected search, Bertsekas 1982,
|
|
39
|
+
* https://web.mit.edu/dimitrib/www/ProjectedNewton.pdf). The ceiling bounds
|
|
40
|
+
* the search as well as the answer; a projected point outside the angular
|
|
41
|
+
* tolerance remains a miss. The returned flight
|
|
42
|
+
* is the one whose residual was judged, so playback never reintegrates the
|
|
43
|
+
* answer on a different adaptive mesh.
|
|
44
|
+
*
|
|
45
|
+
* @param props The shape's history, the flight, the take-off frame, the request and its bounds.
|
|
46
|
+
* @returns The momentum, its residual and whether the request is met.
|
|
47
|
+
* @throws {Error} When the flight is not positive.
|
|
48
|
+
*
|
|
49
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the angle convention with its source, the unwrapping, the residual, the start, the iteration with its globalization, determinism and the miss.
|
|
50
|
+
* @evidence contracts/development/implementation.md#principled-implementation Newton's method with the flight's forward sensitivity and analytic Euler-angle derivatives, step-halving line search (Dennis and Schnabel, ch. 6), and continuation in both requested turns; an Euler-angle singularity can still prevent a solve and is reported as a miss.
|
|
51
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A residual over one integration, a linearized start, then a fixed loop of Jacobian, solve and backtrack.
|
|
52
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A request the flight cannot meet is reported as a miss with its residual; the caller refuses it.
|
|
53
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One flight with nine sensitivity states per residual, at most ITERATIONS Newton steps and HALVINGS backtracks per stage. Continuation adds stages until the request is reached or its increment falls below the angular tolerance; adaptive trial meshes can require distinct full-body history evaluations, and real-body completion cost remains unresolved.
|
|
54
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shape does not depend on momentum, so every trial reads the same history. Only exactly equal times reuse a cached instant; different adaptive meshes add new instants.
|
|
55
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Keeps the current and last accepted trial flights during the search; the returned flight escapes for playback and other trials lose their references. The caller's history retains every distinct evaluation instant across those trials with no fixed population bound.
|
|
56
|
+
*/
|
|
57
|
+
function solveAirborneTakeoff(props) {
|
|
58
|
+
const flight = props.t1 - props.t0;
|
|
59
|
+
if (!(flight > 0))
|
|
60
|
+
throw new Error(`The take-off needs a positive flight, got ${flight}`);
|
|
61
|
+
const axes = props.frame ?? Quaternion_1.Quaternion.identity();
|
|
62
|
+
const frame = Quaternion_1.Quaternion.normalize(Quaternion_1.Quaternion.multiply(props.q0, axes));
|
|
63
|
+
const tolerance = props.tolerance ?? solveAirborneTakeoff.TOLERANCE;
|
|
64
|
+
const directions = [0, 1, 2].map((i) => Quaternion_1.Quaternion.rotateVector(frame, {
|
|
65
|
+
x: i === 0 ? 1 : 0,
|
|
66
|
+
y: i === 1 ? 1 : 0,
|
|
67
|
+
z: i === 2 ? 1 : 0,
|
|
68
|
+
}));
|
|
69
|
+
// The touchdown residual of a momentum given in the frame's axes, against
|
|
70
|
+
// a request of somersault and twist turns.
|
|
71
|
+
const residual = (local, target) => {
|
|
72
|
+
const turned = (0, integrateAirborneRotation_1.integrateAirborneRotation)({
|
|
73
|
+
history: props.history,
|
|
74
|
+
t0: props.t0,
|
|
75
|
+
t1: props.t1,
|
|
76
|
+
q0: props.q0,
|
|
77
|
+
momentum: Quaternion_1.Quaternion.rotateVector(frame, {
|
|
78
|
+
x: local[0],
|
|
79
|
+
y: local[1],
|
|
80
|
+
z: local[2],
|
|
81
|
+
}),
|
|
82
|
+
h: props.h,
|
|
83
|
+
tolerance: props.integration,
|
|
84
|
+
variations: directions,
|
|
85
|
+
});
|
|
86
|
+
// The body seen in the frame's axes, `q F`, so the take-off reads zero.
|
|
87
|
+
const end = solveAirborneTakeoff.unwrapped({
|
|
88
|
+
...turned,
|
|
89
|
+
orientation: (t) => Quaternion_1.Quaternion.multiply(turned.orientation(t), axes),
|
|
90
|
+
}, frame);
|
|
91
|
+
const columns = turned
|
|
92
|
+
.variations(props.t1)
|
|
93
|
+
.map((eta) => {
|
|
94
|
+
const v = Quaternion_1.Quaternion.rotateVector(Quaternion_1.Quaternion.inverse(axes), eta);
|
|
95
|
+
const phi = (Math.cos(end.twist) * v.x + Math.sin(end.twist) * v.z) /
|
|
96
|
+
Math.cos(end.tilt);
|
|
97
|
+
return [
|
|
98
|
+
phi,
|
|
99
|
+
-Math.sin(end.twist) * v.x + Math.cos(end.twist) * v.z,
|
|
100
|
+
v.y + Math.sin(end.tilt) * phi,
|
|
101
|
+
];
|
|
102
|
+
});
|
|
103
|
+
return {
|
|
104
|
+
r: [
|
|
105
|
+
end.somersault - target[0],
|
|
106
|
+
end.tilt - target[1],
|
|
107
|
+
end.twist - target[2],
|
|
108
|
+
],
|
|
109
|
+
jacobian: [0, 1, 2].map((i) => columns.map((column) => column[i])),
|
|
110
|
+
flight: turned,
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
const norm = (r) => Math.hypot(...r);
|
|
114
|
+
/** Euclidean projection onto the admitted momentum ball, used only for search points. */
|
|
115
|
+
const projected = (values) => {
|
|
116
|
+
const magnitude = norm(values);
|
|
117
|
+
const maximum = props.maximum ?? Number.POSITIVE_INFINITY;
|
|
118
|
+
const scale = magnitude > maximum ? maximum / magnitude : 1;
|
|
119
|
+
return values.map((v) => scale * v);
|
|
120
|
+
};
|
|
121
|
+
// Newton from a start toward one request, backtracking by halves.
|
|
122
|
+
const newton = (start, target) => {
|
|
123
|
+
let local = projected(start);
|
|
124
|
+
let evaluated = residual(local, target);
|
|
125
|
+
for (let k = 0; k < solveAirborneTakeoff.ITERATIONS && norm(evaluated.r) > tolerance; k++) {
|
|
126
|
+
const delta = solve3(evaluated.jacobian, evaluated.r);
|
|
127
|
+
if (delta === null)
|
|
128
|
+
break;
|
|
129
|
+
// Backtrack: halve the step until it lowers the residual.
|
|
130
|
+
let scale = 1;
|
|
131
|
+
let next = local;
|
|
132
|
+
let after = evaluated;
|
|
133
|
+
for (let h = 0; h <= solveAirborneTakeoff.HALVINGS; h++) {
|
|
134
|
+
const trial = projected(local.map((v, i) => v - scale * delta[i]));
|
|
135
|
+
const tr = residual(trial, target);
|
|
136
|
+
if (norm(tr.r) < norm(evaluated.r)) {
|
|
137
|
+
next = trial;
|
|
138
|
+
after = tr;
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
scale /= 2;
|
|
142
|
+
}
|
|
143
|
+
if (next === local)
|
|
144
|
+
break;
|
|
145
|
+
local = next;
|
|
146
|
+
evaluated = after;
|
|
147
|
+
}
|
|
148
|
+
return { local, ...evaluated };
|
|
149
|
+
};
|
|
150
|
+
const { turning, lagging } = (0, AirborneTakeoffLinear_1.AirborneTakeoffLinear)(props, Quaternion_1.Quaternion.inverse(axes));
|
|
151
|
+
// Continue the whole request, since even a plain somersault can couple to tilt.
|
|
152
|
+
const linearized = (share) => {
|
|
153
|
+
const start = solve3(turning, [
|
|
154
|
+
2 * Math.PI * props.somersault * share + lagging[0],
|
|
155
|
+
2 * Math.PI * props.twist * share + lagging[1],
|
|
156
|
+
lagging[2],
|
|
157
|
+
]);
|
|
158
|
+
if (start === null)
|
|
159
|
+
throw new Error("The take-off's shape history gives no finite inertia over the flight");
|
|
160
|
+
return start;
|
|
161
|
+
};
|
|
162
|
+
const request = (share) => [
|
|
163
|
+
2 * Math.PI * props.somersault * share,
|
|
164
|
+
0,
|
|
165
|
+
2 * Math.PI * props.twist * share,
|
|
166
|
+
];
|
|
167
|
+
const smallest = tolerance / Math.max(tolerance, norm(request(1)));
|
|
168
|
+
let reached = 0;
|
|
169
|
+
let accepted = null;
|
|
170
|
+
let stage = 1;
|
|
171
|
+
let solved = newton(linearized(stage), request(stage));
|
|
172
|
+
for (;;) {
|
|
173
|
+
if (norm(solved.r) <= tolerance) {
|
|
174
|
+
accepted = solved;
|
|
175
|
+
reached += stage;
|
|
176
|
+
const left = 1 - reached;
|
|
177
|
+
if (Math.abs(left) <= 0)
|
|
178
|
+
break;
|
|
179
|
+
stage = Math.sign(left) * Math.min(Math.abs(left), 2 * Math.abs(stage));
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
stage /= 2;
|
|
183
|
+
if (Math.abs(stage) < smallest) {
|
|
184
|
+
solved = accepted ?? solved;
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
solved = newton(accepted === null ? linearized(reached + stage) : accepted.local, request(reached + stage));
|
|
189
|
+
}
|
|
190
|
+
if (accepted !== null && Math.abs(1 - reached) > 0)
|
|
191
|
+
solved = {
|
|
192
|
+
...accepted,
|
|
193
|
+
local: accepted.local,
|
|
194
|
+
r: accepted.r.map((v, i) => v + request(reached)[i] - request(1)[i]),
|
|
195
|
+
};
|
|
196
|
+
const { local, r } = solved;
|
|
197
|
+
const momentum = Quaternion_1.Quaternion.rotateVector(frame, {
|
|
198
|
+
x: local[0],
|
|
199
|
+
y: local[1],
|
|
200
|
+
z: local[2],
|
|
201
|
+
});
|
|
202
|
+
const magnitude = Vector3_1.Vector3.length(momentum);
|
|
203
|
+
return {
|
|
204
|
+
momentum,
|
|
205
|
+
residual: {
|
|
206
|
+
somersault: r[0] / (2 * Math.PI),
|
|
207
|
+
tilt: r[1] / (2 * Math.PI),
|
|
208
|
+
twist: r[2] / (2 * Math.PI),
|
|
209
|
+
},
|
|
210
|
+
met: norm(r) <= tolerance &&
|
|
211
|
+
magnitude <= (props.maximum ?? Number.POSITIVE_INFINITY),
|
|
212
|
+
flight: solved.flight,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Companion types, constants and attitude readings of
|
|
217
|
+
* {@link solveAirborneTakeoff}.
|
|
218
|
+
*
|
|
219
|
+
* @evidence contracts/development/common.md#meaningful-documentation Each member states its unit, frame and basis.
|
|
220
|
+
* @evidence contracts/development/design.md#principled-representation A request in turns about the take-off frame's axes, a momentum in world kg m²/s and a residual in revolutions; Yeadon's angles as the attitude.
|
|
221
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface What the flight pass (#3427) and the airborne rows (#3428) read: the request, the solution, the attitude angles and the search's fixed counts.
|
|
222
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts The flight is `integrateAirborneRotation`'s and the history its, not restated.
|
|
223
|
+
*/
|
|
224
|
+
(function (solveAirborneTakeoff) {
|
|
225
|
+
/** Newton iterations, at most: a work budget, not a physical value; from an in-basin start Newton's quadratic convergence meets the tolerance in a handful, and the search stops as soon as it does. */
|
|
226
|
+
solveAirborneTakeoff.ITERATIONS = 12;
|
|
227
|
+
/** Step halvings of the backtracking per iteration, at most: a work budget, shrinking a step to a thousandth before the search gives up on it. */
|
|
228
|
+
solveAirborneTakeoff.HALVINGS = 10;
|
|
229
|
+
/**
|
|
230
|
+
* The default tolerance on the residual's norm, radians: a hundredth of a
|
|
231
|
+
* revolution, a quarter of the 0.04 revolution of somersault by which
|
|
232
|
+
* #3416 reports Yeadon, Atha and Hales (1990) found their simulation model
|
|
233
|
+
* to differ from recorded performances (the paper not yet read at the
|
|
234
|
+
* source), so the solver's miss stays below the model's own error.
|
|
235
|
+
*/
|
|
236
|
+
solveAirborneTakeoff.TOLERANCE = 2 * Math.PI * 0.01;
|
|
237
|
+
/**
|
|
238
|
+
* Yeadon's somersault, tilt and twist of an orientation relative to a
|
|
239
|
+
* frame, radians, from `M = frame⁻¹ q = Rx(φ) Rz(θ) Ry(ψ)`: the long axis
|
|
240
|
+
* `M Y = (-sin θ, cos θ cos φ, cos θ sin φ)` gives the tilt and the
|
|
241
|
+
* somersault, and the lateral axis turned back by `(Rx(φ) Rz(θ))⁻¹` gives
|
|
242
|
+
* the twist. Each angle is in (-π, π]; the tilt in [-π/2, π/2].
|
|
243
|
+
*
|
|
244
|
+
* @param frame The reference frame, unit.
|
|
245
|
+
* @param q The orientation, unit.
|
|
246
|
+
* @returns The angles, radians.
|
|
247
|
+
*/
|
|
248
|
+
function angles(frame, q) {
|
|
249
|
+
const m = Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.inverse(frame), q);
|
|
250
|
+
const long = Quaternion_1.Quaternion.rotateVector(m, {
|
|
251
|
+
x: 0,
|
|
252
|
+
y: 1,
|
|
253
|
+
z: 0,
|
|
254
|
+
});
|
|
255
|
+
const tilt = -Math.asin(Math.max(-1, Math.min(1, long.x)));
|
|
256
|
+
const somersault = Math.atan2(long.z, long.y);
|
|
257
|
+
const degrees = 180 / Math.PI;
|
|
258
|
+
const back = Quaternion_1.Quaternion.inverse(Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.fromAxisAngle({ x: 1, y: 0, z: 0 }, somersault * degrees), Quaternion_1.Quaternion.fromAxisAngle({ x: 0, y: 0, z: 1 }, tilt * degrees)));
|
|
259
|
+
const lateral = Quaternion_1.Quaternion.rotateVector(Quaternion_1.Quaternion.multiply(back, m), { x: 1, y: 0, z: 0 });
|
|
260
|
+
return { somersault, tilt, twist: Math.atan2(-lateral.z, lateral.x) };
|
|
261
|
+
}
|
|
262
|
+
solveAirborneTakeoff.angles = angles;
|
|
263
|
+
/**
|
|
264
|
+
* A flight's attitude at touchdown with the somersault and the twist
|
|
265
|
+
* unwrapped across the integrator's default step from take-off, read
|
|
266
|
+
* between knots as the flight reads itself, radians, so whole turns
|
|
267
|
+
* accumulate: each instant's angle is taken on the branch nearest the
|
|
268
|
+
* previous one, which holds while a turn between instants stays under half
|
|
269
|
+
* a revolution (under 30 revolutions a second at a sixtieth of a second),
|
|
270
|
+
* however long an error-controlled step is.
|
|
271
|
+
*
|
|
272
|
+
* @param flight The flight.
|
|
273
|
+
* @param frame The reference frame the angles are read in.
|
|
274
|
+
* @returns The touchdown angles, radians.
|
|
275
|
+
*/
|
|
276
|
+
function unwrapped(flight, frame) {
|
|
277
|
+
let somersault = 0;
|
|
278
|
+
let twist = 0;
|
|
279
|
+
let tilt = 0;
|
|
280
|
+
const step = integrateMotionTrajectory_1.integrateMotionTrajectory.STEP;
|
|
281
|
+
const instants = Math.ceil((flight.t1 - flight.t0) / step) + 1;
|
|
282
|
+
for (let k = 0; k < instants; k++) {
|
|
283
|
+
const t = k === instants - 1 ? flight.t1 : flight.t0 + k * step;
|
|
284
|
+
const a = angles(frame, flight.orientation(t));
|
|
285
|
+
somersault = near(a.somersault, somersault);
|
|
286
|
+
twist = near(a.twist, twist);
|
|
287
|
+
tilt = a.tilt;
|
|
288
|
+
}
|
|
289
|
+
return { somersault, tilt, twist };
|
|
290
|
+
}
|
|
291
|
+
solveAirborneTakeoff.unwrapped = unwrapped;
|
|
292
|
+
/**
|
|
293
|
+
* The branch of an angle nearest a reference, radians.
|
|
294
|
+
*
|
|
295
|
+
* @param angle The angle.
|
|
296
|
+
* @param reference The previous unwrapped angle.
|
|
297
|
+
* @returns `angle` plus the whole turns that bring it nearest `reference`.
|
|
298
|
+
*/
|
|
299
|
+
function near(angle, reference) {
|
|
300
|
+
return (angle + 2 * Math.PI * Math.round((reference - angle) / (2 * Math.PI)));
|
|
301
|
+
}
|
|
302
|
+
})(solveAirborneTakeoff || (exports.solveAirborneTakeoff = solveAirborneTakeoff = {}));
|
|
303
|
+
/**
|
|
304
|
+
* Adapt row arrays to the engine's existing three-column linear solver.
|
|
305
|
+
*
|
|
306
|
+
* @param a The matrix's rows.
|
|
307
|
+
* @param b The right-hand side.
|
|
308
|
+
* @returns The solution, or null for a singular or non-finite matrix.
|
|
309
|
+
*/
|
|
310
|
+
function solve3(a, b) {
|
|
311
|
+
if (!a.flat().every(Number.isFinite) || !b.every(Number.isFinite))
|
|
312
|
+
return null;
|
|
313
|
+
const column = (c) => [
|
|
314
|
+
a[0][c],
|
|
315
|
+
a[1][c],
|
|
316
|
+
a[2][c],
|
|
317
|
+
];
|
|
318
|
+
return AutoMovieSolidVector_1.AutoMovieSolidVector.solve3(column(0), column(1), column(2), [
|
|
319
|
+
b[0],
|
|
320
|
+
b[1],
|
|
321
|
+
b[2],
|
|
322
|
+
]);
|
|
323
|
+
}
|
|
324
|
+
//# sourceMappingURL=solveAirborneTakeoff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solveAirborneTakeoff.js","sourceRoot":"","sources":["../../src/motion/solveAirborneTakeoff.ts"],"names":[],"mappings":";;;AAKA,wFAAqF;AACrF,mDAAgD;AAChD,6CAA0C;AAC1C,mEAAgE;AAChE,2EAAwE;AACxE,2EAAwE;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,8BACE,KAAkC;IAElC,MAAM,MAAM,GAAW,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IAC3C,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,6CAA6C,MAAM,EAAE,CAAC,CAAC;IACzE,MAAM,IAAI,G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AC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;QAC/D,OAAO,IAAI,CAAC;IACd,MAAM,MAAM,GAAG,CAAC,CAAS,EAA6B,EAAE,CAAC;QACvD,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE;QACT,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE;QACT,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE;KACV,CAAC;IACF,OAAO,2CAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE;QAClE,CAAC,CAAC,CAAC,CAAE;QACL,CAAC,CAAC,CAAC,CAAE;QACL,CAAC,CAAC,CAAC,CAAE;KACN,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { IAutoMovieJointAxes, IAutoMovieJointPose, IAutoMovieQuaternion, IAutoMovieSkeleton } from "@automovie/interface";
|
|
2
|
+
import type { IAutoMovieRestFrame } from "../rom/IAutoMovieRestFrame";
|
|
3
|
+
/**
|
|
4
|
+
* The twist a distally twisting mid bone (a forearm, which pronates and
|
|
5
|
+
* supinates about its own length beyond the elbow's hinge) takes so its
|
|
6
|
+
* effector (a wrist, which flexes and deviates but cannot twist) can reach a
|
|
7
|
+
* requested rotation.
|
|
8
|
+
*
|
|
9
|
+
* The effector reads its rotation as clinical angles in its own Euler
|
|
10
|
+
* convention, and the share it cannot take is that convention's twist. The
|
|
11
|
+
* mid bone's twist composes last in its own articulation, `A = Abd Flex
|
|
12
|
+
* T(u, r)`, so the effector's local rotation is `rest^-1 T(u, -r) K` with `K`
|
|
13
|
+
* fixed by the pose above and the request. The effector's rig twist is
|
|
14
|
+
* `atan2(P, Q)` of two components of that rotation applied to its flexion
|
|
15
|
+
* (and, for a distal effector, abduction) axis (`decomposeJointRotationOnBasis`),
|
|
16
|
+
* and each component of a vector turned about `u` by `-r` is
|
|
17
|
+
* `alpha + beta cos r + gamma sin r`. Asking the effector's twist to stand at
|
|
18
|
+
* its clinical zero is therefore one equation `A + B cos r + C sin r = 0`,
|
|
19
|
+
* solved in closed form: at most two forearm twists, the circle the hand
|
|
20
|
+
* turns on as the forearm twists crossing the rotations the wrist's two
|
|
21
|
+
* angles make. Of those inside the forearm's range, the range's two ends and
|
|
22
|
+
* the start, the one whose effector, clamped to its own range, shows the
|
|
23
|
+
* request most nearly is taken, and between equals the one nearest the
|
|
24
|
+
* start: the current twist plus the swing-twist share (`swingTwist`) of the
|
|
25
|
+
* change from the effector's current rotation to the requested one. So only
|
|
26
|
+
* the residual beyond the current pose moves, a request near the current
|
|
27
|
+
* hand rotation moves the forearm little, and a rotation the two joints can
|
|
28
|
+
* reach together is reached exactly.
|
|
29
|
+
*
|
|
30
|
+
* @param props The mid joint's and the effector's current clinical angles;
|
|
31
|
+
* `above`, the world rotation the mid joint's articulation composes after
|
|
32
|
+
* (its parent's world rotation and its rest); the mid and effector bases
|
|
33
|
+
* (normalized) and rest frames; the effector's rest rotation; the requested
|
|
34
|
+
* effector world rotation; the skeleton whose ranges clamp; and, from a
|
|
35
|
+
* caller that solves many candidates, the two joints' clamps resolved once
|
|
36
|
+
* on that skeleton (`clampJointToSkeleton.of`).
|
|
37
|
+
* @returns The mid joint with its twist solved, clamped to the rig's range.
|
|
38
|
+
*
|
|
39
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what the effector cannot take, the equation its twist makes, how it is solved, which solution is taken and the start that breaks a tie.
|
|
40
|
+
* @evidence contracts/development/implementation.md#principled-implementation The effector's twist is read exactly as its decomposition reads it, so the solution leaves it nothing to drop; a vector turned about an axis is Rodrigues' formula, linear in the cosine and sine of the turn, so the condition is a first-order trigonometric equation with a closed-form solution; every solution is weighed by the rotation the clamped effector then shows.
|
|
41
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One equation, its two solutions and one choice among a handful of candidates.
|
|
42
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every twist is clamped to the rig's range, so none past pronation or supination is returned; with no solution the range's nearer end or the start is taken by the same measure.
|
|
43
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work: a few compositions and at most five decompositions, cheap enough for every swivel the limb fit ranks; each distinct clamped twist is read once (the start not again, a candidate clamped onto a twist already read not at all), and a start the effector shows within `TIE` ends the search, since nothing can beat or tie it nearer.
|
|
44
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Composes and decomposes on the caller's normalized bases and reads the rig's own angle maps (`toRigAngle`, `toClinicalAngle`).
|
|
45
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains nothing.
|
|
46
|
+
*/
|
|
47
|
+
export declare function solveDistalTwist(props: {
|
|
48
|
+
joint: IAutoMovieJointPose;
|
|
49
|
+
effector: IAutoMovieJointPose;
|
|
50
|
+
above: IAutoMovieQuaternion;
|
|
51
|
+
lowerBasis: IAutoMovieJointAxes;
|
|
52
|
+
lowerFrame: IAutoMovieRestFrame | undefined;
|
|
53
|
+
effectorRest: IAutoMovieQuaternion;
|
|
54
|
+
effectorBasis: IAutoMovieJointAxes;
|
|
55
|
+
effectorFrame: IAutoMovieRestFrame | undefined;
|
|
56
|
+
rotation: IAutoMovieQuaternion;
|
|
57
|
+
skeleton: IAutoMovieSkeleton;
|
|
58
|
+
clamps?: {
|
|
59
|
+
lower: (joint: IAutoMovieJointPose) => IAutoMovieJointPose;
|
|
60
|
+
effector: (joint: IAutoMovieJointPose) => IAutoMovieJointPose;
|
|
61
|
+
};
|
|
62
|
+
}): IAutoMovieJointPose;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.solveDistalTwist = solveDistalTwist;
|
|
4
|
+
const decomposeJointRotationOnBasis_1 = require("../kinematics/decomposeJointRotationOnBasis");
|
|
5
|
+
const jointToQuaternionOnBasis_1 = require("../kinematics/jointToQuaternionOnBasis");
|
|
6
|
+
const Quaternion_1 = require("../math/Quaternion");
|
|
7
|
+
const Vector3_1 = require("../math/Vector3");
|
|
8
|
+
const swingTwist_1 = require("../math/swingTwist");
|
|
9
|
+
const clampJointToSkeleton_1 = require("../rom/clampJointToSkeleton");
|
|
10
|
+
const toClinicalAngle_1 = require("../rom/toClinicalAngle");
|
|
11
|
+
const toRigAngle_1 = require("../rom/toRigAngle");
|
|
12
|
+
/**
|
|
13
|
+
* The twist a distally twisting mid bone (a forearm, which pronates and
|
|
14
|
+
* supinates about its own length beyond the elbow's hinge) takes so its
|
|
15
|
+
* effector (a wrist, which flexes and deviates but cannot twist) can reach a
|
|
16
|
+
* requested rotation.
|
|
17
|
+
*
|
|
18
|
+
* The effector reads its rotation as clinical angles in its own Euler
|
|
19
|
+
* convention, and the share it cannot take is that convention's twist. The
|
|
20
|
+
* mid bone's twist composes last in its own articulation, `A = Abd Flex
|
|
21
|
+
* T(u, r)`, so the effector's local rotation is `rest^-1 T(u, -r) K` with `K`
|
|
22
|
+
* fixed by the pose above and the request. The effector's rig twist is
|
|
23
|
+
* `atan2(P, Q)` of two components of that rotation applied to its flexion
|
|
24
|
+
* (and, for a distal effector, abduction) axis (`decomposeJointRotationOnBasis`),
|
|
25
|
+
* and each component of a vector turned about `u` by `-r` is
|
|
26
|
+
* `alpha + beta cos r + gamma sin r`. Asking the effector's twist to stand at
|
|
27
|
+
* its clinical zero is therefore one equation `A + B cos r + C sin r = 0`,
|
|
28
|
+
* solved in closed form: at most two forearm twists, the circle the hand
|
|
29
|
+
* turns on as the forearm twists crossing the rotations the wrist's two
|
|
30
|
+
* angles make. Of those inside the forearm's range, the range's two ends and
|
|
31
|
+
* the start, the one whose effector, clamped to its own range, shows the
|
|
32
|
+
* request most nearly is taken, and between equals the one nearest the
|
|
33
|
+
* start: the current twist plus the swing-twist share (`swingTwist`) of the
|
|
34
|
+
* change from the effector's current rotation to the requested one. So only
|
|
35
|
+
* the residual beyond the current pose moves, a request near the current
|
|
36
|
+
* hand rotation moves the forearm little, and a rotation the two joints can
|
|
37
|
+
* reach together is reached exactly.
|
|
38
|
+
*
|
|
39
|
+
* @param props The mid joint's and the effector's current clinical angles;
|
|
40
|
+
* `above`, the world rotation the mid joint's articulation composes after
|
|
41
|
+
* (its parent's world rotation and its rest); the mid and effector bases
|
|
42
|
+
* (normalized) and rest frames; the effector's rest rotation; the requested
|
|
43
|
+
* effector world rotation; the skeleton whose ranges clamp; and, from a
|
|
44
|
+
* caller that solves many candidates, the two joints' clamps resolved once
|
|
45
|
+
* on that skeleton (`clampJointToSkeleton.of`).
|
|
46
|
+
* @returns The mid joint with its twist solved, clamped to the rig's range.
|
|
47
|
+
*
|
|
48
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what the effector cannot take, the equation its twist makes, how it is solved, which solution is taken and the start that breaks a tie.
|
|
49
|
+
* @evidence contracts/development/implementation.md#principled-implementation The effector's twist is read exactly as its decomposition reads it, so the solution leaves it nothing to drop; a vector turned about an axis is Rodrigues' formula, linear in the cosine and sine of the turn, so the condition is a first-order trigonometric equation with a closed-form solution; every solution is weighed by the rotation the clamped effector then shows.
|
|
50
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One equation, its two solutions and one choice among a handful of candidates.
|
|
51
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every twist is clamped to the rig's range, so none past pronation or supination is returned; with no solution the range's nearer end or the start is taken by the same measure.
|
|
52
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Constant work: a few compositions and at most five decompositions, cheap enough for every swivel the limb fit ranks; each distinct clamped twist is read once (the start not again, a candidate clamped onto a twist already read not at all), and a start the effector shows within `TIE` ends the search, since nothing can beat or tie it nearer.
|
|
53
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Composes and decomposes on the caller's normalized bases and reads the rig's own angle maps (`toRigAngle`, `toClinicalAngle`).
|
|
54
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains nothing.
|
|
55
|
+
*/
|
|
56
|
+
function solveDistalTwist(props) {
|
|
57
|
+
// Each joint's clamp, resolved once for the call or handed in by a sweep
|
|
58
|
+
// that resolved it once for all its candidates.
|
|
59
|
+
const clampLower = props.clamps?.lower ??
|
|
60
|
+
clampJointToSkeleton_1.clampJointToSkeleton.of(props.joint.bone, props.skeleton);
|
|
61
|
+
const clampEffector = props.clamps?.effector ??
|
|
62
|
+
clampJointToSkeleton_1.clampJointToSkeleton.of(props.effector.bone, props.skeleton);
|
|
63
|
+
const at = (twist) => clampLower({ ...props.joint, twist });
|
|
64
|
+
const effectorOf = (joint) => Quaternion_1.Quaternion.normalize(Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.inverse(props.effectorRest), Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.inverse(Quaternion_1.Quaternion.multiply(props.above, (0, jointToQuaternionOnBasis_1.jointToQuaternionOnBasis)(joint, props.lowerBasis, props.lowerFrame))), props.rotation)));
|
|
65
|
+
// How far the effector, clamped to its range, shows its asked rotation.
|
|
66
|
+
const missed = (twist) => {
|
|
67
|
+
const local = effectorOf(at(twist));
|
|
68
|
+
const a = (0, decomposeJointRotationOnBasis_1.decomposeJointRotationOnBasis)(local, props.effectorBasis, props.effectorFrame);
|
|
69
|
+
const shown = (0, jointToQuaternionOnBasis_1.jointToQuaternionOnBasis)(clampEffector({
|
|
70
|
+
bone: props.effector.bone,
|
|
71
|
+
flexion: a.flexion,
|
|
72
|
+
abduction: a.abduction,
|
|
73
|
+
twist: a.twist,
|
|
74
|
+
}), props.effectorBasis, props.effectorFrame);
|
|
75
|
+
return Quaternion_1.Quaternion.angle(Quaternion_1.Quaternion.normalize(shown), local);
|
|
76
|
+
};
|
|
77
|
+
// The start: the current twist plus the twist, about the mid bone's axis,
|
|
78
|
+
// of the change from the effector's current rotation to the requested one.
|
|
79
|
+
const articulated = (0, jointToQuaternionOnBasis_1.jointToQuaternionOnBasis)(props.joint, props.lowerBasis, props.lowerFrame);
|
|
80
|
+
const needed = Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.inverse(Quaternion_1.Quaternion.multiply(props.above, articulated)), props.rotation);
|
|
81
|
+
const held = Quaternion_1.Quaternion.multiply(props.effectorRest, (0, jointToQuaternionOnBasis_1.jointToQuaternionOnBasis)(props.effector, props.effectorBasis, props.effectorFrame));
|
|
82
|
+
const { twist } = (0, swingTwist_1.swingTwist)(Quaternion_1.Quaternion.normalize(Quaternion_1.Quaternion.multiply(needed, Quaternion_1.Quaternion.inverse(held))), props.lowerBasis.twist);
|
|
83
|
+
const start = at((0, decomposeJointRotationOnBasis_1.decomposeJointRotationOnBasis)(Quaternion_1.Quaternion.normalize(Quaternion_1.Quaternion.multiply(articulated, twist)), props.lowerBasis, props.lowerFrame).twist ?? 0).twist ?? 0;
|
|
84
|
+
// K: the request seen from the mid bone's articulation before its twist.
|
|
85
|
+
const untwisted = (0, jointToQuaternionOnBasis_1.jointToQuaternionOnBasis)({ ...props.joint, twist: (0, toClinicalAngle_1.toClinicalAngle)(0, props.lowerFrame?.twist) }, props.lowerBasis, props.lowerFrame);
|
|
86
|
+
const K = Quaternion_1.Quaternion.multiply(Quaternion_1.Quaternion.inverse(Quaternion_1.Quaternion.multiply(props.above, untwisted)), props.rotation);
|
|
87
|
+
const u = props.lowerBasis.twist;
|
|
88
|
+
const e = props.effectorBasis;
|
|
89
|
+
const flexion = Quaternion_1.Quaternion.rotateVector(props.effectorRest, e.flexion);
|
|
90
|
+
const abduction = Quaternion_1.Quaternion.rotateVector(props.effectorRest, e.abduction);
|
|
91
|
+
// n . T(u, -r) x = alpha + beta cos r + gamma sin r (Rodrigues).
|
|
92
|
+
const harmonic = (n, x) => {
|
|
93
|
+
const along = Vector3_1.Vector3.dot(n, u) * Vector3_1.Vector3.dot(u, x);
|
|
94
|
+
return [
|
|
95
|
+
along,
|
|
96
|
+
Vector3_1.Vector3.dot(n, x) - along,
|
|
97
|
+
-Vector3_1.Vector3.dot(n, Vector3_1.Vector3.cross(u, x)),
|
|
98
|
+
];
|
|
99
|
+
};
|
|
100
|
+
const x = Quaternion_1.Quaternion.rotateVector(K, e.flexion);
|
|
101
|
+
const y = Quaternion_1.Quaternion.rotateVector(K, e.abduction);
|
|
102
|
+
const [P, Q] = e.twistPlacement === "distal"
|
|
103
|
+
? [harmonic(abduction, x), harmonic(abduction, y)]
|
|
104
|
+
: [harmonic(abduction, x), harmonic(flexion, x)];
|
|
105
|
+
const handed = Vector3_1.Vector3.dot(e.twist, Vector3_1.Vector3.cross(e.flexion, e.abduction)) >= 0 ? 1 : -1;
|
|
106
|
+
const phi = (handed * ((0, toRigAngle_1.toRigAngle)(0, props.effectorFrame?.twist) ?? 0) * Math.PI) / 180;
|
|
107
|
+
const [A, B, C] = [0, 1, 2].map((i) => P[i] * Math.cos(phi) - Q[i] * Math.sin(phi));
|
|
108
|
+
// The forearm's range, and the clinical twist of each solution inside it.
|
|
109
|
+
const low = at(-1e6).twist ?? 0;
|
|
110
|
+
const high = at(1e6).twist ?? 0;
|
|
111
|
+
const candidates = [low, high, start];
|
|
112
|
+
const radius = Math.hypot(B, C);
|
|
113
|
+
if (radius > 1e-12 && Math.abs(A) <= radius) {
|
|
114
|
+
const centre = Math.atan2(C, B);
|
|
115
|
+
const spread = Math.acos(Math.max(-1, Math.min(1, -A / radius)));
|
|
116
|
+
for (const r of [centre + spread, centre - spread]) {
|
|
117
|
+
const clinical = (0, toClinicalAngle_1.toClinicalAngle)((r * 180) / Math.PI, props.lowerFrame?.twist) ?? 0;
|
|
118
|
+
// The alias of the solution nearest the range's middle.
|
|
119
|
+
const middle = (low + high) / 2;
|
|
120
|
+
candidates.push(clinical - 360 * Math.round((clinical - middle) / 360));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// The candidate whose clamped effector misses least; between equals, the
|
|
124
|
+
// nearest to the start.
|
|
125
|
+
let chosen = start;
|
|
126
|
+
let least = missed(start);
|
|
127
|
+
// A start the effector shows within TIE can be neither beaten, since no
|
|
128
|
+
// miss is below zero, nor tied by a twist nearer to itself.
|
|
129
|
+
if (least <= TIE && at(start).twist === start)
|
|
130
|
+
return at(start);
|
|
131
|
+
// A candidate that clamps to a twist already read is the same pose: the
|
|
132
|
+
// same miss, never strictly nearer, so it is not read again.
|
|
133
|
+
const read = new Set([at(start).twist ?? 0]);
|
|
134
|
+
for (const t of candidates) {
|
|
135
|
+
const clamped = at(t).twist ?? 0;
|
|
136
|
+
if (read.has(clamped))
|
|
137
|
+
continue;
|
|
138
|
+
read.add(clamped);
|
|
139
|
+
const m = missed(t);
|
|
140
|
+
if (m < least - TIE ||
|
|
141
|
+
(Math.abs(m - least) <= TIE &&
|
|
142
|
+
Math.abs((at(t).twist ?? 0) - start) <
|
|
143
|
+
Math.abs((at(chosen).twist ?? 0) - start))) {
|
|
144
|
+
chosen = t;
|
|
145
|
+
least = Math.min(least, m);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return at(chosen);
|
|
149
|
+
}
|
|
150
|
+
/** The difference, radians, under which two misses are equal: a few hundred times the rounding of the quaternion products a miss is read through, so a solution does not displace an exact start over rounding. */
|
|
151
|
+
const TIE = 1e-6;
|
|
152
|
+
//# sourceMappingURL=solveDistalTwist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solveDistalTwist.js","sourceRoot":"","sources":["../../src/motion/solveDistalTwist.ts"],"names":[],"mappings":";;;AAQA,+FAA4F;AAC5F,qFAAkF;AAClF,mDAAgD;AAChD,6CAA0C;AAC1C,mDAAgD;AAEhD,sEAAmE;AACnE,4DAAyD;AACzD,kDAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,0BAAiC,KAehC;IACC,yEAAyE;IACzE,gDAAgD;IAChD,MAAM,UAAU,GACd,KAAK,CAAC,MAAM,EAAE,KAAK;QACnB,2CAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,K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