Fix ur asset - #626
Fix ur asset#626
Conversation
|
| class TestUR5Solver(BaseSolverTest): | ||
| def setup_method(self) -> None: | ||
| self.setup_simulation("cpu", ur_type="ur5") |
There was a problem hiding this comment.
The new UR5 case inherits a solver-only FK → IK → FK round trip. Both sides use the same analytic solver, and the test never compares its pose with the URDF's simulated ee_link. Removing, retaining, or introducing an end-link offset in the asset would therefore produce the same assertions. This violates the repository requirement that bug fixes include a focused test proving the corrected behavior, so the requirement must be satisfied before merging.
Context Used: AGENTS.md (source)
Knowledge Base Used: Motion planning and kinematics
Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/sim/motion/solvers/test_ur_solver.py
Line: 212-214
Comment:
**UR5 Fix Remains Untested**
The new UR5 case inherits a solver-only FK → IK → FK round trip. Both sides use the same analytic solver, and the test never compares its pose with the URDF's simulated `ee_link`. Removing, retaining, or introducing an end-link offset in the asset would therefore produce the same assertions. This violates the repository requirement that bug fixes include a focused test proving the corrected behavior, so the requirement must be satisfied before merging.
**Context Used:** AGENTS.md ([source](https://github.com/dexforce/embodichain/blob/main/AGENTS.md))
**Knowledge Base Used:** [Motion planning and kinematics](https://app.greptile.com/dexforce/-/custom-context/knowledge-base/dexforce/embodichain/-/docs/motion-planning-and-kinematics.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Description
Type of change
Checklist
black .command to format the code base.python docs/scripts/check_api_docs.py), if applicable