Project: Make the description lie
A robot description is only as trustworthy as the checks that would notice it lying. Change the SO-101's profile in three small, wrong ways, one at a time, and for each one name the test that catches it. Then find a lie that nothing catches. That is the better result, because it is a test this project does not have yet.
The lies go into so101_follower.yaml, the overlay. Upstream's URDF is
fetched, not committed, so you cannot lie in it here; and the overlay
restates no geometry, so there is no length to make negative. What it
does say — poses, servo figures, bus ids, the gripper's travel — is
where the lies go.
Tasks
Run the suite once and write down its summary line, so you know what green looks like.
make testFirst lie: in
src/threevn_robot_description/config/so101_follower.yaml, raiselimit_derate.effortfrom0.68to1.2, so the joints may push harder than the servo can. Run the suite, write down the test that fails, and revert.make test git checkout src/threevn_robot_description/config/so101_follower.yamlSecond lie: set the gripper's
opento1.7, a few degrees short of the jaw's hard stop. Run the suite, write down the failing test, and revert.make test git checkout src/threevn_robot_description/config/so101_follower.yamlThird lie: delete the last value from the
readypose, leaving four positions for five joints. That is the bug that once stopped every scenario athome. Run the suite, write down the first failing test, and revert.make test git checkout src/threevn_robot_description/config/so101_follower.yamlNow invent a lie of your own that the suite does not catch. Make the change, confirm
make teststays green, and write two lines: what the lie is, and the test that would catch it. Revert.
Done when
- Three lies, each caught by a test you can name.
- One lie the suite does not catch, written down with the test that would catch it.
git statusshows the profile unchanged.
Which test caught it?
pytest prints a header for each failure with the test's name, and the assertion message usually names the link or joint. Read the first failure, not the summary.
Nothing failed
Check that you saved the file, and that the summary line shows the same number of tests as your green run. If it does, you may have found your uncaught lie early.