-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change how camera intrinsics are used for creation and update #1624
base: main
Are you sure you want to change the base?
Conversation
@pascal-roth here is that camera intrinsic PR I was talking about. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job to remove the code duplication.
I don't know if the focal length of 1/width is a common standard in the literature. What is your source for that? Otherwise, picking that as a default seems a bit arbitrary.
The intrinsic matrix is used to set the following parameters to the USD camera: | ||
|
||
- ``focal_length``: The focal length of the camera. | ||
- ``horizontal_aperture``: The horizontal aperture of the camera. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the case, isn't it? The focal_length
is not set over the intrinsic matrix but just over the width. We should rephrase that to prevent confusion
@@ -129,7 +130,8 @@ def from_intrinsic_matrix( | |||
width: Width of the image (in pixels). | |||
height: Height of the image (in pixels). | |||
clipping_range: Near and far clipping distances (in m). Defaults to (0.01, 1e6). | |||
focal_length: Perspective focal length (in cm). Defaults to 24.0 cm. | |||
focal_length: Perspective focal length (in cm) used to calculate pixel size. Defaults to None. If None | |||
focal_length will be calculated 1 / width. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pascal-roth Sorry that was a mistype. pixel_size will be 1/width instead of calculated from focal_length. We actually shouldn't need focal length because the intrinsic matrix has all the info we need. I left focal length in there so it doesn't break backwards compatibility.
focal_length will be calculated 1 / width. | |
pixel_size will be calculated 1 / width. |
Description
This PR changes how the camera intrinsic matrix:
Fixes # (issue)
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there