SDK-free depth capture in Isaac™ Sim
The ZED Camera extension can capture RGB and depth from a simulated ZED directly inside NVIDIA® Isaac™ Sim, using the simulator’s renderer, with no ZED SDK and no streaming. This is useful for quick frame/depth capture, generating datasets, or working on a machine where the ZED SDK is not installed.
For how this compares to the streaming and Isaac™ Lab tensor paths, see Choosing a data path.
The depth captured here is Isaac™ Sim’s ground-truth renderer depth (distance_to_image_plane), not the ZED SDK’s stereo-matched depth. For genuine ZED SDK depth, use the streaming path.
ZED Capture OmniGraph node
The extension provides a ZED Capture node that captures RGB, and optionally depth, each time the camera renders. Add it to an Action Graph, connect an On Playback Tick node to its ExecIn, set its properties, and press Play. The node works with stereo models only (no ZED X One).
Extension 5.2 called this node ZED Depth. Only its name in the UI changed, so existing graphs load as before.
Frames are saved in the background, so saving does not hold up the simulation. If the disk or CPU cannot keep up, the app slows down rather than dropping frames, and Stop waits for the last frames to be written.
ZED Sim2Real on captures
Since extension 5.4.0, captures get the whole ZED Sim2Real camera model, like the streams: the ZED Capture node and ZEDDepthCamera have the same switches, with the same defaults (apply_zed_sim2real=, auto_exposure=, motion_blur=, focus_blur=, …). The switches are read once, when the capture starts, instead of live.
- The auto exposure and the motion blur need the rate the camera renders at: set FPS on the node, or
fps=onZEDDepthCamera. In an app that updates on the wall clock, with no rate to fall back on, those two effects stay off, with a warning. - The exposure settles on a new scene in about half a second, as on the real camera, so the first frames saved can be over- or under-exposed. In your own script, start saving once
exposure_state.convergedis true. The node andenable_save=Truesave from the first frame. - Without the auto exposure, the motion blur follows the camera’s own
exposure:time, 0.02 s unless the scene authors one: most of a frame at 30 fps.
Standalone scripts
The extension also ships two capture scripts under exts/sl.sensor.camera/examples/isaac_sim/, both driven by the sl.sensor.camera.zed_depth.ZEDDepthCamera helper.
Standalone / headless (zed_depth_standalone.py)
Captures left RGB + depth for N frames, prints per-frame stats, and optionally saves PNG/EXR. It runs with no arguments: when no scene or camera is given, it builds a minimal ground + dome-light scene and spawns a ZED camera at a small default pose, so you get a usable depth capture out of the box.
The script is launched with the Python interpreter shipped with Isaac™ Sim (python.sh / python.bat, in the _build/linux-x86_64/release folder of your Isaac™ Sim build). That interpreter and the example live in two different repositories, so run python.sh from the Isaac™ Sim build directory and give the script an absolute path into your zed-isaac-sim clone:
Arguments (all optional): --usd_path (environment USD; omit to build a minimal scene), --camera_prim (an existing ZED camera prim; omit to spawn one), --camera_model, --resolution, --num_frames, --output_dir, --headless.
GUI Script Editor (zed_depth_example.py)
For interactive use inside the Isaac™ Sim GUI (extension enabled): load a scene with a ZED camera, paste the script into the Script Editor, edit the CONFIG block (CAMERA_PRIM_PATH, CAMERA_MODEL, RESOLUTION, CAPTURE_INTERVAL, SAVE_DIR), execute it, then press Play. RGB + depth are captured every CAPTURE_INTERVAL physics steps, and saved once the auto exposure has settled; press Stop to clean up.
Output
- Console: per-capture shape and depth-range stats.
- Files (when a save path is set):
rgb_left_NNNNNN.png(left RGB) anddepth_NNNNNN.exr(float32 depth in meters,infwhere nothing is in range, losslessly compressed). For stereo models,rgb_right_NNNNNN.png(right RGB) is saved too; depth stays left-referenced.
When OpenCV is missing or cannot write EXR, depth is saved as depth_NNNNNN.npy (the same float32 array) and the console warns Depth saved as .npy instead of .exr. If the warning says the EXR writer is unavailable, set OPENCV_IO_ENABLE_OPENEXR=1 in the environment that launches Isaac™ Sim, whether you start the GUI (isaac-sim.sh / isaac-sim.bat) or a script (python.sh / python.bat):
To send the frames somewhere other than numbered PNGs, pass a frame_writer to ZEDDepthCamera: it decides where each captured frame goes, what it is called and whether it is written. Only the default writer saves in the background: a custom writer’s write() runs on the calling thread. See sl.sensor.camera.frames.FrameWriter.
enable_save=True saves every frame the camera renders. A script that calls save_frame() itself saves the latest frame at each call, so it misses one when an app update finishes two frames.
See also
- Setting up the ZED in Isaac™ Sim: stream the simulated camera to the ZED SDK.
- Using the ZED in Isaac™ Lab: read stereo RGB + depth as in-process tensors for learning.
- Examples on GitHub: the full capture scripts.

