update the piper limits for j4, I have no idea where these weird non-…#78
Conversation
…symmetric numbers came from
Greptile SummaryThis PR updates the j4 joint limits for the
Confidence Score: 4/5Minimal two-number change; the reduction of the positive limit is conservative, but the extension of the negative limit should be verified against the hardware spec before merging. The change is intentional and consistent with how all other arm variants define j4 limits. The only open question is whether -1.85 is safe for the PIPER hardware given that the prior negative limit was a smaller magnitude (-1.745); if those numbers came from the manufacturer's URDF they may have been correct despite looking asymmetric. src/piper_control/piper_interface.py — specifically the new j4 min value (-1.85) should be confirmed against the robot's official joint limits. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[get_joint_limits called] --> B{arm_type?}
B -->|PIPER| C["j4: min=-1.85, max=+1.85\n(was -1.745 / +1.954)"]
B -->|PIPER_H| D["j4: min=-2.216, max=+2.216\n(unchanged)"]
B -->|PIPER_X| E["j4: min=-1.570, max=+1.570\n(unchanged)"]
B -->|PIPER_L| F["j4: min=-2.216, max=+2.216\n(unchanged)"]
B -->|other| G[raise ValueError]
C --> H[Return symmetric limits dict]
D --> H
E --> H
F --> H
Reviews (1): Last reviewed commit: "update the piper limits for j4, I have n..." | Re-trigger Greptile |
| "min": [-2.687, 0.0, -3.054, -1.85, -1.309, -2.967], | ||
| "max": [2.687, 3.403, 0.0, 1.85, 1.309, 2.967], |
There was a problem hiding this comment.
Extended negative range worth verifying against hardware
The j4 negative limit was extended from -1.745 to -1.85 rad (~6° more range), while the positive limit was reduced from 1.954 to 1.85 rad. If -1.745 reflected the actual hardware hard-stop (e.g. a mechanical constraint that made the joint inherently asymmetric), commanding the joint to -1.85 could drive it past its physical limit. Worth cross-checking against the Piper hardware datasheet or URDF before shipping.
…symmetric numbers came from