Skip to content

[BUG FIX] Fix draw_debug tutorial types#1413

Merged
YilingQiao merged 6 commits intoGenesis-Embodied-AI:mainfrom
RaiaN:main
Jul 18, 2025
Merged

[BUG FIX] Fix draw_debug tutorial types#1413
YilingQiao merged 6 commits intoGenesis-Embodied-AI:mainfrom
RaiaN:main

Conversation

@RaiaN
Copy link
Contributor

@RaiaN RaiaN commented Jul 14, 2025

Description

Simple fix for draw_debug tutorial types as it currently seems to be broken due to the following error:

assert trans.shape[:-1] == R.shape[:-2]
AttributeError: 'tuple' object has no attribute 'shape'

Motivation and Context

Looking to contribute to Genesis development. First step is to ensure all tutorials are working fine.

How Has This Been / Can This Be Tested?

Run draw_debug script without errors.

@YilingQiao
Copy link
Collaborator

Thanks, I will merge it after a few other PRs are merged. Then I can update it to the main branch.

Copy link
Collaborator

@duburcqa duburcqa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rather modify draw_debug_line to systematically cast input to numpy using np.asarray(start, dtype=np.float32) (same for end and probably color?).

@duburcqa duburcqa changed the title [BUG FIX] [MISC] Fix draw_debug tutorial types [BUG FIX] Fix draw_debug tutorial types Jul 16, 2025
@duburcqa duburcqa closed this Jul 18, 2025
@YilingQiao YilingQiao reopened this Jul 18, 2025
@YilingQiao YilingQiao enabled auto-merge (squash) July 18, 2025 20:17
@YilingQiao YilingQiao dismissed duburcqa’s stale review July 18, 2025 20:18

The PR is modified following the review.

@YilingQiao YilingQiao merged commit 5cd71cb into Genesis-Embodied-AI:main Jul 18, 2025
13 checks passed
chris-la-humalab pushed a commit to HumaLab/Genesis that referenced this pull request Aug 1, 2025
LeonLiu4 pushed a commit to LeonLiu4/Genesis that referenced this pull request Aug 7, 2025
YilingQiao added a commit to YilingQiao/Genesis that referenced this pull request Aug 22, 2025
winnieyangwannan pushed a commit to winnieyangwannan/Genesis that referenced this pull request Sep 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments