Code -1:
sequential_servoing_02_02.txt (3.7 KB)
I am using the following code [Code -1: ] but when I run it, the camera preview window pops up but stay white and the camera frame never shows up and then the python file crashes in terminal. I have already tried decreasing the resolution and using different pipelines (like the one commented in code) but the same error persists. With the exact same pipeline I am able to run other python file [Code -2: take_image_with_pose_01.txt].
take_image_with_pose_01.txt (4.4 KB)
I have asked ChatGPT about it but it also only recommends changing pipeline because of Buffer Exhaustion on Jetson directly indicating to higher resolution but as I said I have tried changing resolution it does not helps.
NOTE: In both cases my Jetson Orin Nano is connected to a robot Arm via TCP/IP.
Terminal Output when I run [Code -1]:
ers-jetson-1@ERS-JETSON:~/intelligent_robot_cell/vision_manipulation$ /bin/python /home/ers-jetson-1/intelligent_robot_cell/vision_manipulation/sequential_servoing_02_02.py
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3840 x 2160 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 22.250000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1920 x 1080 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 22.250000; Exposure Range min 13000, max 683709000;
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 1
Output Stream W = 1920 H = 1080
seconds to Run = 0
Frame Rate = 59.999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
[ WARN:0@1.446] global cap_gstreamer.cpp:1728 open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
NvMapMemAllocInternalTagged: 1075072515 error 12
NvMapMemHandleAlloc: error 0
(Argus) Error InsufficientMemory: (propagating from src/eglstream/ImageImpl.cpp, function initialize(), line 482)
(Argus) Error InsufficientMemory: (propagating from src/eglstream/ImageImpl.cpp, function copyToNvBuffer(), line 523)
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:691 IImageNativeBuffer not supported by Image.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)
▶ Live preview started. Press SPACE to align to tag. ESC to exit.
Gtk-Message: 15:01:54.231: Failed to load module “canberra-gtk-module”
(python:11496): GStreamer-CRITICAL **: 15:02:24.272: gst_sample_get_caps: assertion ‘GST_IS_SAMPLE (sample)’ failed
[ERROR:0@36.579] global cap_gstreamer.cpp:925 retrieveVideoFrame GStreamer: gst_sample_get_caps() returns NULL
⚠ Failed to grab frame.
GST_ARGUS: Cleaning up
GST_ARGUS: Done Success
