# New to this hardware. Trying to run sample code on Jetson Orin AGX

**URL:** <https://community.stereolabs.com/t/new-to-this-hardware-trying-to-run-sample-code-on-jetson-orin-agx/2091>\
**Category:** Python\
**Tags:** svo, python, jetson\
**Created:** [February 8, 2023, 6:15am UTC](https://community.stereolabs.com/t/new-to-this-hardware-trying-to-run-sample-code-on-jetson-orin-agx/2091 "2023-02-08T06:15:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jay](https://community.stereolabs.com/u/Jay)\
**Post date:** [February 8, 2023, 6:15am UTC](https://community.stereolabs.com/t/new-to-this-hardware-trying-to-run-sample-code-on-jetson-orin-agx/2091/1 "2023-02-08T06:15:42Z")

</div>

Jetson Orin AGX  
SDK 3.8.2 (Yesterdays Download) 2023-02-06T00:00:00Z  
Ubuntu 20.04.5 LTS

I don’t have my camera yet (Zed X) so I’m trying to learn on sample data. Got the SDK installed along with python api and everything else as far as I know. I’m new so it’s all a learning curve. This is the code I used altered from  
[Using the Video API | Stereolabs](https://www.stereolabs.com/docs/video/using-video/)  
[https://support.stereolabs.com/hc/en-us/articles/1500009269601-Are-there-any-video-image-samples-from-the-ZED-products-that-I-can-see-and-test-before-the-purchase-](https://support.stereolabs.com/hc/en-us/articles/1500009269601-Are-there-any-video-image-samples-from-the-ZED-products-that-I-can-see-and-test-before-the-purchase-)

```auto
import sys
from sys import exit
import pyzed.sl as sl 

# Create a Zed Camera object. 
zed = sl.Camera()

# Set SVO path for playback. 
# "/home/j/Downloads/ZED2_HD2K_Runners_H264.svo"
# input_path = sys.argv[1]
init_parameters = sl.InitParameters()
init_parameters.set_from_svo_file("/home/j/Downloads/ZED2_HD2K_Runners_H264.svo")

# Open the Zed
zed = sl.Camera()
err = zed.open(init_parameters)

svo_image = sl.Mat()
while not sys.exit:
  if zed.grab() == sl.ERROR_CODE.SUCCESS:
    
    # Read side by side frames stored in the SVO
    zed.retrieve_image(svo_image, sl.VIEW.SIDE_BY_SIDE)
    
    # Get frame count
    svo_position = zed.get_svo_position();
  elif zed.grab() == sl.ERROR_CODE.END_OF_SVOFILE_REACHED:
    print("SVO end has been reached. Looping back to first frame")
    zed.set_svo_position(0)
    exit()

```

if I run, after chmoding the file, as  
python3 “SVO\_Tutorial\_One.py” ZED2\_HD2K\_Runners\_H264.svo

Output is this: I have no idea where to look these codes up yet. Any help would be appreciated.

Opening in BLOCKING MODE  
NvMMLiteOpen : Block : BlockType = 261  
NVMEDIA: Reading vendor.tegra.display-size : status: 6  
NvMMLiteBlockCreate : Block : BlockType = 261  
Opening in BLOCKING MODE  
NvMMLiteOpen : Block : BlockType = 261  
NVMEDIA: Reading vendor.tegra.display-size : status: 6  
NvMMLiteBlockCreate : Block : BlockType = 261

Thanks for your time,  
Jay.

---

<div class="post-metadata">

**Author:** ![alassagne](https://community.stereolabs.com/user_avatar/community.stereolabs.com/alassagne/32/2428_2.png) [@alassagne](https://community.stereolabs.com/u/alassagne)\
**Post date:** [February 8, 2023, 8:43am UTC](https://community.stereolabs.com/t/new-to-this-hardware-trying-to-run-sample-code-on-jetson-orin-agx/2091/2 "2023-02-08T08:43:39Z")

</div>

Hi,

Your code probably works, but does not return or print anything.  
I suggest you check our python tutorials on [GitHub - stereolabs/zed-examples: ZED SDK Example projects](https://github.com/stereolabs/zed-examples)  
You’ll find other samples of codes that will get values from the depth map, or display it in a window, etc.

Antoine

---

<div class="post-metadata">

**Author:** ![Jay](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jay](https://community.stereolabs.com/u/Jay)\
**Post date:** [February 9, 2023, 10:54am UTC](https://community.stereolabs.com/t/new-to-this-hardware-trying-to-run-sample-code-on-jetson-orin-agx/2091/3 "2023-02-09T10:54:34Z")

</div>

I’m going through them and they’re great but at least for my system need small alterations to be drop in and learn. Once I’ve passed through them all, I would be happy to share what worked for me on the AGX. It’s small things like importing the right module not mentioned in the code or adding in a \n in a print() so that the results display properly. Other than that, it’s a lot of fun learning. Thanks for your help.
