Conversation
Greptile SummaryThis PR addresses review feedback from the batch solver PR (#512) with three targeted cleanups: removing a redundant parenthetical phrase from a docstring, converting a Confidence Score: 5/5Safe to merge — all three changes are narrow, well-scoped cleanups with no new logic introduced. All findings are P2 or lower. The quaternion convention update is correct and consistent throughout the three files, aligning with Isaac Lab 3.0's XYZW-ordering change. Comment and docstring edits are cosmetic improvements. No behavioral regressions are expected. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["RotateAroundSolution.get_rotation_xyzw()"] -->|"quat_from_euler_xyz(roll, pitch, yaw)"| B["quat tensor — Lab 3.0 XYZW format"]
B -->|"tuple(quat.tolist())"| C["rotation_xyzw (x, y, z, w)"]
D["RandomAroundSolution.to_pose_range_centered_at(rotation_xyzw)"] -->|"torch.tensor([rotation_xyzw])"| E["quat tensor shape (1,4) XYZW"]
E -->|"euler_xyz_from_quat — Lab 3.0 expects XYZW"| F["roll, pitch, yaw"]
F --> G["PoseRange with RPY center ± half-extents"]
C --> H["ObjectPlacer._apply_positions"]
G --> H
H -->|"Pose(rotation_xyzw=...)"| I["object.set_initial_pose()"]
I -->|"init_state.rot = rotation_xyzw"| J["Isaac Lab 3.0 sim — expects XYZW"]
Reviews (1): Last reviewed commit: "address feedback" | Re-trigger Greptile |
cvolkcvolk
left a comment
There was a problem hiding this comment.
Thanks for the follow up!
kellyguo11
left a comment
There was a problem hiding this comment.
Clean follow-up to #512. All three changes are correct:
-
object_base.py— Docstring quaternion order fixed from(qw, qx, qy, qz)to(qx, qy, qz, qw). Matches the actualroot_pose_wdata layout in IsaacLab 3.0 and thePose.rotation_xyzwconvention used throughout the codebase. -
object_placer.py— Removed parenthetical "(useful for deterministic evaluation)" fromresult_per_envdocstring. This was flagged in review of #512 — the phrasing was misleading since the solver is already stochastic. -
relations.py—NOTE:→TODO(zhx06):on the deduplication caveat inNoCollision. Properly attributes ownership for the follow-up work.
LGTM.
Summary
Address the comments left in Batch Suport for Relation Solver
Detailed description