Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KincoActuatorIsaacLab
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kevin
KincoActuatorIsaacLab
Commits
c87ffea0
Commit
c87ffea0
authored
Mar 22, 2024
by
Mayank Mittal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Runs pre-commit formatter over the code
parent
dcc33a26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.py
...omni.isaac.orbit/omni/isaac/orbit/sensors/camera/utils.py
+2
-2
No files found.
source/extensions/omni.isaac.orbit/omni/isaac/orbit/sensors/camera/utils.py
View file @
c87ffea0
...
@@ -144,9 +144,9 @@ def create_pointcloud_from_depth(
...
@@ -144,9 +144,9 @@ def create_pointcloud_from_depth(
depth_cloud
=
math_utils
.
unproject_depth
(
depth
,
intrinsic_matrix
)
depth_cloud
=
math_utils
.
unproject_depth
(
depth
,
intrinsic_matrix
)
# convert 3D points to world frame
# convert 3D points to world frame
depth_cloud
=
math_utils
.
transform_points
(
depth_cloud
,
position
,
orientation
)
depth_cloud
=
math_utils
.
transform_points
(
depth_cloud
,
position
,
orientation
)
# keep only valid entries if flag is set
if
not
keep_invalid
:
if
not
keep_invalid
:
# keep only valid entries
pts_idx_to_keep
=
torch
.
all
(
torch
.
logical_and
(
~
torch
.
isnan
(
depth_cloud
),
~
torch
.
isinf
(
depth_cloud
)),
dim
=
1
)
pts_idx_to_keep
=
torch
.
all
(
torch
.
logical_and
(
~
torch
.
isnan
(
depth_cloud
),
~
torch
.
isinf
(
depth_cloud
)),
dim
=
1
)
depth_cloud
=
depth_cloud
[
pts_idx_to_keep
,
...
]
depth_cloud
=
depth_cloud
[
pts_idx_to_keep
,
...
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment