docs: add a kinematics conventions chapter - #4454
Closed
grandixximo wants to merge 1 commit into
Closed
Conversation
grandixximo
force-pushed
the
kins-conventions
branch
2 times, most recently
from
August 23, 2026 06:14
5726b8f to
6c4521d
Compare
grandixximo
marked this pull request as draft
August 23, 2026 06:32
A kinematics module reports the controlled point and nothing else, so everything needing the rest of the machine geometry rebuilds it. For xyzacb-trsrn the same chain is written three times: closed-form in xyzacb_trsrn.comp, as homogeneous matrices in the config's remap_funcs_twp.py, and as signed HalRotate calls in the vismach model. The Python copy is kept in step by a comment saying its matrices "must be the same as the ones used to derive the kinematic model". Write down the vocabulary they would need to share: the four frames and which one kinematicsForward() reports in, the rotation sense already stated under Rotational Axes and its ISO 841 equivalent, what conventional-directions costs at its default, and the definition of the tool frame. Tool x is the part worth stating as a rule rather than a formula. The virtual rotation about tool z supplies what a five-axis machine cannot, and the convention is that it leaves tool x parallel to the machine xy-plane; the formula follows from the machine's own secondary rotation matrix, which is why the two nutating configs in tree have different ones. Also anchor the Rotational Axes section so it can be referenced.
grandixximo
force-pushed
the
kins-conventions
branch
from
August 23, 2026 07:05
6c4521d to
aa285ba
Compare
Contributor
Author
|
Superseded by #4455, which carries this chapter together with the entry point it describes. The chapter names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A kinematics module reports the controlled point and nothing else, so everything that needs the rest of the machine geometry rebuilds it. For
xyzacb-trsrnthe same chain is written three times: closed-form inxyzacb_trsrn.comp, as homogeneous matrices in the config'sremap_funcs_twp.py, and as signedHalRotatecalls in the vismach model. The only thing keeping them in step is a comment in the Python saying its matrices "must be the same as the ones used to derive the kinematic model".This adds a chapter writing down the vocabulary those three would need to share, so a second module can be written from the same drawing and give the same answers:
kinematicsForward()reports in the workpiece-attached one;conventional-directionscosts at its default of false, including that the rotary values come back as raw joint values while the translations in the same call use the flipped sign, so the returned pose does not describe its own orientation;Tool x is stated as a rule rather than a formula on purpose. A five-axis machine cannot set rotation about the tool axis, so a virtual rotation supplies it, and the formula for the default follows from that machine's own secondary rotation matrix. The two nutating configs in tree have different formulas for that reason alone. Applying either to the other machine gives a frame turned a quarter turn, with the tool still pointing where it was asked to point, and nothing in tree would catch it.
Docs only. Also anchors the Rotational Axes section so it can be referenced.
Part of the multiaxis kinematics work in #4374, item 3. Independent of the rest of it.