Fix camera aperture offset warning for negative offsets - #7268
Fix camera aperture offset warning for negative offsets#7268sylvesterkaczmarek wants to merge 5 commits into
Conversation
Greptile SummaryCorrects camera aperture-offset warning detection by comparing the absolute horizontal and vertical principal-point offsets independently.
Confidence Score: 5/5The PR appears safe to merge with no actionable correctness or security issues identified. The revised predicate matches the documented intent for both Python and NumPy scalar inputs, and the regression tests cover the corrected negative-offset behavior and centered case. Important Files Changed
Reviews (1): Last reviewed commit: "Add camera offset warning changelog" | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
The PR correctly fixes the warning predicate by applying abs() to each principal-point offset, making detection symmetric around the image center. Focused regression tests and the required isaaclab changelog fragment are included.
- Design and architecture: The change remains confined to the existing advisory warning in
isaaclab.utils.sensors; package boundaries, dependencies, and module responsibilities are unchanged. - API: The function signature, defaults, return structure, and calculated USD camera parameters remain unchanged. The only observable behavior change is that negative principal-point offsets now emit the same unsupported-offset warning as positive offsets.
- Implementation: The revised condition independently compares the absolute horizontal and vertical offsets against the existing tolerance. The tests cover negative offsets on each axis and confirm that a centered principal point remains silent. No material implementation issue is evident from the changed paths.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
There was a problem hiding this comment.
AI review disclosure: This review was produced with assistance from multiple AI systems.
Thank you for putting this PR together.
Assessment: Predicate fix is correct and tests cover negative and centered offsets.
Findings: Invalid .patch.rst filename and fragment content lacks a recognized Fixed heading/bullet.
Requested changes: Rename to .rst; format as Fixed/carets/bullet; run changelog gate.
Changelog filename: Rename the current <slug>.patch.rst fragment to <slug>.rst for this patch-level change. IsaacLab accepts <slug>.rst (patch), <slug>.minor.rst, and <slug>.major.rst; it does not accept a .patch.rst suffix.
Test scope: Focused predicate tests are sufficient; do not expand them.
Documentation / AI skills: No additional documentation update is required: changelog is the appropriate release-note surface. No AI-skill update is required.
Description
Fixes the unsupported camera aperture-offset warning in
convert_camera_intrinsics_to_usd().The current condition applies
abs()to the result of a boolean expression rather than to the signed principal-point offsets themselves. As a result, positive deviations ofc_x/c_yfrom image center trigger the warning, while equally valid negative deviations silently do not.This change applies the absolute value to each offset before comparing it with the tolerance, so unsupported principal-point offsets are detected symmetrically on either side of image center.
Type of change
Validation
pytest.mark.unitregression coverage for negative horizontal and vertical principal-point offsets.isaaclabchangelog fragment.Checklist