Repository navigation
refactor!: trim the generator, tests and README - #25
Merged
Merged
Conversation
T-K-233
marked this pull request as ready for review
October 10, 2026 08:02
T-K-233
force-pushed
the
refactor/cleanup
branch
from
October 10, 2026 08:03
cdb4eed to
c0777a0
Compare
The variant list needed a generator stage and a test to stay in sync. One install(DIRECTORY ... PATTERN cad EXCLUDE) needs neither. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HpFUBhqSfbDuibPRVhscr9
Regenerating every variant gives a zero diff. No joint_properties.json welds a joint, each ros2_control.json base_link names the CAD root, and each IMU has a real plugin, so that code only added branches. BREAKING-CHANGE: the finalize, mjcf and xacro commands, --package and robot dir paths are gone. Use lite-description-generate <variant> --only. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HpFUBhqSfbDuibPRVhscr9
The inertia symmetry tolerance was 0.01 kg m^2, above the largest link inertia, so the check could not fail. It is now 1e-5 kg m^2. The ROS job ran its own xacro loop, so the component-name and safety gpio tests ran nowhere. It now runs test_ros2_artifacts.py. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HpFUBhqSfbDuibPRVhscr9
Also fix the backend text: since #18, every backend has one block for each CAN bus. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HpFUBhqSfbDuibPRVhscr9
T-K-233
force-pushed
the
refactor/cleanup
branch
from
October 10, 2026 08:05
c0777a0 to
a15fff3
Compare
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.
Trims the generator, the tests and the README to what the variants use. The generated URDF, MJCF, xacro and foot hulls do not change: a regeneration of all six variants gives a zero diff.
robots/<variant>/withoutcad/. The variant list and thepackagestage that kept it in sync are gone.lite-description-generate --only),--package, the robot-dir path argument,weld_joints, thebase_linkofros2_control.json, the sim-only IMU path, and the defaults of keys that each variant sets.test_models.pyreplacesconftest.pyand four modules, and checks the same pairs and bodies. The inertia symmetry tolerance goes from 0.01 to 1e-5 kg m². The old value was above the largest link inertia, so the check could not fail.test_ros2_artifacts.py. Before, the tests of the component names and the mock safety gpio ran nowhere.Breaking: the removed commands,
--packageand the path argument. lite-motion-tracking, humanoid_control_ros2 and Lite-Motion-Retargeting use none of them.Verification
uv run pytest: 107 passed, 32 skipped (the xacro tests). Each commit passes.--keep-assetsand--convertrun. Not run against the Onshape API.🤖 Generated with Claude Code
https://claude.ai/code/session_01HpFUBhqSfbDuibPRVhscr9