Skip to content

Adds warp dependency to TiledCamera - #4728

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
bareya:pbarejko/fix-tiled-camera
Feb 25, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
bareya:pbarejko/fix-tiled-camera

Conversation

@bareya

@bareya bareya commented Feb 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

#4707 broke tiled camera

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Feb 25, 2026
@kellyguo11 kellyguo11 changed the title Bugfix: Add warp dependency to TiledCamera Adds warp dependency to TiledCamera Feb 25, 2026
@greptile-apps

greptile-apps Bot commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a missing import bug in TiledCamera by adding import warp as wp. The file uses wp.array type annotations (lines 125, 201) and calls wp.to_torch() (lines 134, 202) but was missing the warp import, which would have caused a NameError at runtime when these code paths were executed.

  • Adds import warp as wp to match the parent Camera class pattern
  • Resolves runtime errors when reset() or _update_buffers_impl() methods are called with warp array parameters

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • Single-line import addition that fixes a clear bug - the code uses wp namespace throughout but was missing the import statement. This matches the pattern in the parent Camera class.
  • No files require special attention

Important Files Changed

Filename Overview
source/isaaclab/isaaclab/sensors/camera/tiled_camera.py Adds missing warp import required for wp.array type hints and wp.to_torch() calls used throughout the file

Last reviewed commit: 2bc75ce

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@kellyguo11
kellyguo11 merged commit c50fb09 into isaac-sim:develop Feb 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants