You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug Report] Bug in rendering camera images in Gym environment #25
If so, the above changes will try loading the configuration file for Isaac Sim called "omni.isaac.sim.python.gym.headless.kit". This configuration file does not have the viewport extension enabled by default, which is needed for rendering camera images. We enable it explicitly in the RL environment if running in non-headless mode:
You can add these lines right after launching the simulator. They'll enable the extension manually.
fromomni.isaac.core.utils.extensionsimportenable_extension# enable viewport extension if not running in headless modeenable_extension("omni.kit.viewport.bundle")
I think it would make sense to enable this explicitly in the camera class to avoid unnecessary duplication of this code at multiple places.
Yes, I want to run the camera in headless mode to collect data.
Here are some of my attempts and results
I modified the train code as you said, but I still get the same error
# launch the simulator
config = {"headless": args_cli.headless}
# load cheaper kit config in headless
if args_cli.headless:
app_experience = f"{os.environ['EXP_PATH']}/omni.isaac.sim.python.gym.headless.kit"
else:
app_experience = f"{os.environ['EXP_PATH']}/omni.isaac.sim.python.kit"
# launch the simulator
simulation_app = SimulationApp(config, experience=app_experience)
# revision
from omni.isaac.core.utils.extensions import enable_extension
# enable viewport extension if not running in headless mode
enable_extension("omni.kit.viewport.bundle")
I tried to stop loading "omni.isaac.sim.python.gym.headless.kit" and the good news is that the code works fine, but I checked the image data I got and I found that none of them changed, but in non-headless mode I can get several frames of changing image data. Is this because I didn't load "omni.isaac.sim.python.gym.headless.kit"?
Actually I just want to get the camera data in headless mode, because my environment has very low frame rate in non-headless mode, I hope to provide a demo of using the camera to collect data in headless mode, thanks a lot.
Is it just with play_camera.py? I have a unit test that runs in headless mode and after a few initial blank frames (a known issue in the simulator), it renders fine. You can run the test script here for it:
Thanks, I ran test_camera.py and the camera still collects data normally in headless mode, but not in RL frame. I found the reason, it's because sim.step(render=False) is not collecting camera data, just set render=True to solve the problem. Thank you for your answer.
Activity
Mayankm96 commentedon Mar 2, 2023
Are you running this in headless mode?
If so, the above changes will try loading the configuration file for Isaac Sim called
"omni.isaac.sim.python.gym.headless.kit". This configuration file does not have the viewport extension enabled by default, which is needed for rendering camera images. We enable it explicitly in the RL environment if running in non-headless mode:You can add these lines right after launching the simulator. They'll enable the extension manually.
I think it would make sense to enable this explicitly in the camera class to avoid unnecessary duplication of this code at multiple places.
Let me know if the issue gets fixed with it.
Aqua12138 commentedon Mar 2, 2023
Yes, I want to run the camera in headless mode to collect data.
Here are some of my attempts and results
"omni.isaac.sim.python.gym.headless.kit"and the good news is that the code works fine, but I checked the image data I got and I found that none of them changed, but in non-headless mode I can get several frames of changing image data. Is this because I didn't load"omni.isaac.sim.python.gym.headless.kit"?Actually I just want to get the camera data in headless mode, because my environment has very low frame rate in non-headless mode, I hope to provide a demo of using the camera to collect data in headless mode, thanks a lot.
Mayankm96 commentedon Mar 2, 2023
Is it just with
play_camera.py? I have a unit test that runs in headless mode and after a few initial blank frames (a known issue in the simulator), it renders fine. You can run the test script here for it:Aqua12138 commentedon Mar 3, 2023
Thanks, I ran
test_camera.pyand the camera still collects data normally in headless mode, but not in RL frame. I found the reason, it's becausesim.step(render=False)is not collecting camera data, just setrender=Trueto solve the problem. Thank you for your answer.[-][Bug Report] Some bug about camera[/-][+][Bug Report] Bug in rendering camera images in Gym environment[/+]Fixes naming and shape issues in binary action commands (#25)
Fixes env_ids and gravity_bias for IMU sensor (isaac-sim#25)
feat: develop IK velocity controller in Isaac Lab (isaac-sim#25)
Fixes naming and shape issues in binary action commands (isaac-sim#25)
Add (d) arm-control remediation row + DDR isaac-sim#25 to LEDGER
Update (d) row to control-design v1.1 (cadence correction #1)
16 remaining items
Reflect (d) F2/F3 verdicts, manifest v2 adoption and the new bar
Reflect the c19-c23 execution and its records-axis hold
Record c26 callgraph PASS and the dissolved rewind premise
Fix the R-SEQ propagation source; close the snapshot disposition
Record c33/c34 and carry A-group as substrate-blocked pending Rs
Land the Rs ruling on the A-group substrate package
Record (d) step2 close and the docs-only step3
Draft the [DEFINE] proposal for the kinematic-removal node
Create the kinematic-removal node on Rs's approval
Point the (d) ledger row at its new node
Bank pY evidence readback: c61-c64 PASS 4/4
Reflect the clip-pin rule landing in CLAUDE.md
Correct the divergence mechanism and hold the disputed verbatim
Adopt the canonical pin wording without normalising the receipts
Correct the D1.1-C relay attribution from p4 to pQ