You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
project_points reverses batched and unbatched output ranks #8032
Specula found this at IsaacLab commit 24fd31827ee878c6fe68850aa06a7a60f490e209.
The public project_points() contract preserves an unbatched (P, 3) shape and a batched (N, P, 3) shape. Its is_batched predicate is reversed, so unbatched input gains a dimension and a single-item batch loses one. Downstream perception or control code can fail or silently broadcast along the wrong axis.
Current sequence
T0: Call project_points() with a valid (P, 3) point set.
T1: The function records rank two as is_batched=True and adds a temporary batch.
T2: It skips the final squeeze and returns (1, P, 3).
T3: Conversely, a valid (1, P, 3) batch returns (P, 3).
Proposed sequence
T0: Call project_points() with either documented input shape.
T1: Record whether the original input has rank three.
T2: Normalize rank-two input internally, then remove only its temporary dimension.
T3: Return the documented rank for unbatched and batched callers.
The exact TorchScript CPU witness returns (1, 2, 3) for (2, 3) and (2, 3) for (1, 2, 3); projected values are otherwise correct. It does not launch Isaac Sim or exercise a downstream camera pipeline.
Correct the predicate and cover unbatched, one-item, and multi-item batches. @Mayankm96 is the most likely owner from blame and the introducing commit. Please feel free to assign this to someone else if another owner is closer.
Activity
Fix batched output shape in project_points (#8050)
Fix batched output shape in project_points (#8050)
Junnosuke/code stable (#27)
Junnosuke/rough terrain locomotion (#29)