Skip to content

project_points reverses batched and unbatched output ranks #8032

Closed

Description

@dvasquezlopez

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

  1. added a commit that references this issue on Sep 26, 2026
    1e7d4dc
  2. added a commit that references this issue on Sep 26, 2026
    76d839c
  3. added 2 commits that reference this issue on Oct 10, 2026
    cf8447d
    33193f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions