Issue with gmscan node and nvidia Xavier NX based device

asked 2022-08-24 17:30:27 -0500

kavish gravatar image

I am using a GMSL camera with an Nvidia Xavier NX based device. The GMSL camera can directly with connected to GMSL quad connector on the system. The following command on the terminal works fine and opens a display screen with the camera output.

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1900,height=1080,format=NV12' ! nvvidconv ! xvimagesink

Now I would like to run the gscam node, while doing so I get assertion errors as seen below:

[ INFO] [1661379616.122690981]: Using gstreamer config from env: "nvarguscamerasrc sensor-id=0 ! 'video/x-raw,width=1900,height=1080,format=NV12' ! nvvidconv ! xvimagesink"
[ INFO] [1661379616.145464092]: using default calibration URL
[ INFO] [1661379616.145623710]: camera calibration URL: file:///home/nvidia/.ros/camera_info/camera.yaml
[ INFO] [1661379616.145780928]: Unable to open camera calibration file [/home/nvidia/.ros/camera_info/camera.yaml]
[ WARN] [1661379616.145853217]: Camera calibration file /home/nvidia/.ros/camera_info/camera.yaml not found.
[ INFO] [1661379616.146010115]: Loaded camera calibration from 

(gscam:15600): GStreamer-CRITICAL **: 17:20:16.389: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed
**
ERROR:/home/nvidia/gscam/src/gscam/src/gscam.cpp:167:bool gscam::GSCam::init_stream(): assertion failed: (outpad)
Aborted (core dumped)

My guess is that I am setting the wrong environemental variable. Can anyone help me as to what the environment variable should be?

edit retag flag offensive close merge delete