dusty-nv / jetson-containers

Machine Learning Containers for NVIDIA Jetson and JetPack-L4T
MIT License
2.13k stars 440 forks source link

nvarguscamerasrc support in dustynv/ros:humble-pytorch-l4t-r35.2.1 #312

Open spikyknox opened 10 months ago

spikyknox commented 10 months ago

I need to access Jetson CSI camera inside my ros/pytorch/l4t docker.

With : gst-launch-1.0 nvarguscamerasrc I get:

(gst-plugin-scanner:69): GStreamer-WARNING **: 18:43:01.969: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnveglstreamsrc.so': /lib/aarch64-linux-gnu/libGLdispatch.so.0: cannot allocate memory in static TLS block
WARNING: erroneous pipeline: no element "nvarguscamerasrc"

But in dustynv/l4t-pytorch:r35.2.1 docker it seems to work.

How can I acces CSI camera in dustynv/ros:humble-pytorch-l4t-r35.2.1?

Thanks,

dusty-nv commented 10 months ago

Hi @spikyknox, first make sure you mount /tmp/argus_socket when you start the container like here:

https://github.com/dusty-nv/jetson-containers/blob/12cc32992b9a0958afef4ce04f6e1c8f562d23fc/run.sh#L50

Also, add the --env LD_PRELOAD=/lib/aarch64-linux-gnu/libGLdispatch.so.0 flag when you start the container, or run export LD_PRELOAD=/lib/aarch64-linux-gnu/libGLdispatch.so.0 before running GStreamer