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
eb8d968d
Commit
eb8d968d
authored
Jun 26, 2024
by
Mayank Mittal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes substep parameter in cameras.py demo script
parent
ffec353e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
cameras.py
source/standalone/demos/cameras.py
+13
-5
No files found.
source/standalone/demos/cameras.py
View file @
eb8d968d
...
@@ -9,10 +9,10 @@ This script demonstrates the different camera sensors that can be attached to a
...
@@ -9,10 +9,10 @@ This script demonstrates the different camera sensors that can be attached to a
.. code-block:: bash
.. code-block:: bash
# Usage
# Usage
./isaaclab.sh -p source/standalone/demos/cameras.py
./isaaclab.sh -p source/standalone/demos/cameras.py
--disable_fabric
# Usage in headless mode
# Usage in headless mode
./isaaclab.sh -p source/standalone/demos/cameras.py --headless --enable_cameras
./isaaclab.sh -p source/standalone/demos/cameras.py --headless --enable_cameras
--disable_fabric
"""
"""
...
@@ -25,6 +25,7 @@ from omni.isaac.lab.app import AppLauncher
...
@@ -25,6 +25,7 @@ from omni.isaac.lab.app import AppLauncher
# add argparse arguments
# add argparse arguments
parser
=
argparse
.
ArgumentParser
(
description
=
"This script demonstrates the different camera sensor implementations."
)
parser
=
argparse
.
ArgumentParser
(
description
=
"This script demonstrates the different camera sensor implementations."
)
parser
.
add_argument
(
"--num_envs"
,
type
=
int
,
default
=
4
,
help
=
"Number of environments to spawn."
)
parser
.
add_argument
(
"--num_envs"
,
type
=
int
,
default
=
4
,
help
=
"Number of environments to spawn."
)
parser
.
add_argument
(
"--disable_fabric"
,
action
=
"store_true"
,
help
=
"Disable Fabric API and use USD instead."
)
# append AppLauncher cli args
# append AppLauncher cli args
AppLauncher
.
add_app_launcher_args
(
parser
)
AppLauncher
.
add_app_launcher_args
(
parser
)
# parse the arguments
# parse the arguments
...
@@ -276,10 +277,17 @@ def run_simulator(sim: sim_utils.SimulationContext, scene: InteractiveScene):
...
@@ -276,10 +277,17 @@ def run_simulator(sim: sim_utils.SimulationContext, scene: InteractiveScene):
def
main
():
def
main
():
"""Main function."""
"""Main function."""
# note: tile rendered cameras doesn't update the camera poses when using the GPU pipeline and Fabric.
# this is a bug which should be fixed in the future releases.
sim_cfg
=
sim_utils
.
SimulationCfg
(
dt
=
0.005
)
# check if fabric is enabled
if
args_cli
.
disable_fabric
:
sim_cfg
.
use_fabric
=
False
sim_cfg
.
device
=
"cpu"
sim_cfg
.
use_gpu_pipeline
=
False
sim_cfg
.
physx
.
use_gpu
=
False
# Initialize the simulation context
# Initialize the simulation context
# note: tile rendered cameras don't update the camera poses when using the GPU pipeline and Fabric
sim_cfg
=
sim_utils
.
SimulationCfg
(
dt
=
0.005
,
substeps
=
1
,
use_fabric
=
False
,
device
=
"cpu"
,
use_gpu_pipeline
=
False
)
sim_cfg
.
physx
.
use_gpu
=
False
sim
=
sim_utils
.
SimulationContext
(
sim_cfg
)
sim
=
sim_utils
.
SimulationContext
(
sim_cfg
)
# Set main camera
# Set main camera
sim
.
set_camera_view
(
eye
=
[
3.5
,
3.5
,
3.5
],
target
=
[
0.0
,
0.0
,
0.0
])
sim
.
set_camera_view
(
eye
=
[
3.5
,
3.5
,
3.5
],
target
=
[
0.0
,
0.0
,
0.0
])
...
...
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