Repository navigation
Conversation
|
Thanks, this check is worth having: requiring the joints back, not just the pose, is something none of the existing kins tests do. I read Bertho's point in #4867 differently, though. I don't think he was asking for the kins-unwrap directory layout to be copied. I think he was asking for one test frame in place of a separate test per bug. This PR adds a fourth checker next to paritycheck, jaccheck and walkcheck, which is the thing he questioned. roundcheck's joints-first flow is a one-step walk from a random point with a nearby seed, which walkcheck already does along a path. Could it be a mode of walkcheck in kins-unwrap now, not later? Fanning out also costs more than it gains here. Each of the 21 directories runs |
|
Yes, in this PR. roundcheck's joints-first check is walkcheck's step with a different seed (the drawn joints a cycle off, not the walk's previous answer), so roundcheck goes and walkcheck gains a second way to pick points: at random from a box, with a fixed seed. It brings a joint count past six, every kinematics type, the tool offset, and the pose-first flow for the parallel machines and gantry, which has no walk counterpart. Its compare also catches a NaN joint, which walkcheck's Layout: one test, one compile, a loop over the case files. They stay hal files, since 18 of the 30 need setp lines or module arguments that On the race: under |
5c17cef to
c604b87
Compare
|
You're right about the race, I missed the tmp-overlay of TOPDIR under The plan sounds good to me: one checker, one compile, hal case files. |
|
Also fetch and pull master and rebase, the CI mirror was too slow and was timing out, I improved CI update mirror selection. |
|
Being able to run tests in parallel has priority, I guess. Each test is fully isolated as if it is a "copy" of the tree anyway. Having to compile the test-frame several times is compensated by running all of them in parallel. The kernel does a great job at caching, so the actual time it takes is not too bad. |
|
Fair enough, parallel first. Keeping the single walkcheck with one directory per module works for me, and the |
Most kinematics tests check a module at a few hand-picked points. kins-unwrap's walkcheck now also checks 21 modules at 2000 points per case and kinematics type, drawn from a fixed random seed in a box in each module's working range. For serial machines it draws joints, takes their pose from the forward, and calls the inverse with that pose, the forward's flags and joints 1e-3 off, as motion does on the next servo cycle: the walk's check, seeded a cycle off the joints instead of with the step before. The inverse must return the same joints, not another branch or a joint a whole turn away. For the parallel machines and the gantry it draws a pose instead, takes its joints from the inverse, and requires the forward, seeded 1e-3 off the pose, to return it. walkcheck now takes a joint count past six and a tool offset, runs every kinematics type of the module, and fails a NaN joint, which the old > compare let through. Each case is now a hal file in its module's directory, the walks included, since 18 of the 30 box cases need setp lines or module arguments. All 40 pass with rseed=1 to 25; the scarakins and three21kins cases fail with LinuxCNC#4867 reverted, and the pumakins cases with its unwrap taken out. genserkins and rosekins are left out until their fixes land.
c604b87 to
cd7e4de
Compare
|
Reworked: one directory per module again, each compiling walkcheck, and |
Round-trips 21 kinematics modules at 2000 random points of a box in each one's working range, calling them as motion does. For serial machines the inverse, seeded a servo cycle off, must return the joints, not only the pose: a joint a whole turn away, or on another branch, gives the same pose, so a pose round trip like the one that found #4546's fixes cannot see it. Parallel machines and the gantry go the other way: the forward must return the pose. This found the scarakins and three21kins bugs fixed in #4867.
It is a mode of kins-unwrap's walkcheck, and roundcheck is gone; walkcheck also gains a joint count past six, every kinematics type and a tool offset, and a NaN joint now fails its compare. As discussed below, each module keeps its own directory, so
runtests -jruns them side by side: 21 of them, each with the sharedtest.sh,checkresultandskipby symlink, compiling walkcheck for itself. Each case is a hal file there, 40 with the 10 walks. All pass on master under seeds 1 to 25 (addrseed=Nto a box'swalkcheckline); every pumakins case fails with its unwrap taken out, and every scarakins and three21kins case with #4867 reverted.scripts/runtests tests/kins-unwrap/pumakinsruns one module.Two boxes are held back from where the forward, seeded a cycle off, can land on another pose with the same strut lengths: pentakins below a = 5, and genhexkins with a screw lead below y = 1. genserkins and rosekins follow in their own PRs, with their fixes; userkins and switchkinscomp, the two templates, are left to kins-params.
🤖 Generated with Claude Code