Visible to Intel only — GUID: GUID-9DAB389A-FE2E-4C82-9E53-C9003056E38F
Visible to Intel only — GUID: GUID-9DAB389A-FE2E-4C82-9E53-C9003056E38F
Run a GStreamer* Video Pipeline using the Intel® RealSense™ Plugin in the Docker* Container
This tutorial tells you how to run a GStreamer* video pipeline using a Intel® RealSense™ video camera as the video source.
Run the Sample Pipeline
Connect an Intel® RealSense™ video camera.
Go to the AMR_containers folder:
cd <edge_insights_for_amr_path>/Edge_Insights_for_Autonomous_Mobile_Robots_<version>/AMR_containers
Prepare environment setup:
source 01_docker_sdk_env/docker_compose/05_tutorials/config/docker_compose.source export CONTAINER_BASE_PATH=`pwd` export ROS_DOMAIN_ID=45 sudo chmod a+rw /dev/video*
Get the stream from the Intel® RealSense™ camera using gstreamer:
CHOOSE_USER=eiforamr docker-compose -f 01_docker_sdk_env/docker_compose/05_tutorials/gstreamer_realsensesrc.demo.yml up
Expected output: The stream from the Intel® RealSense™ is displayed.
To close this, do one of the following:
Type Ctrl-c in the terminal where you did the up command.
Run this command in another terminal:
CHOOSE_USER=eiforamr docker-compose -f 01_docker_sdk_env/docker_compose/05_tutorials/gstreamer_realsensesrc.demo.yml down
For an explanation of what happened, open the yml file:
The first 23 lines are from the EI for AMR infrastructure.
Line 26 gets the stream from the Intel® RealSense™ app using GStreamer*.
Troubleshooting
In some cases, the stream may not appear due to permission issues on the host. You may see this error message:
ERROR: Pipeline doesn't want to pause.
To fix this, install the librealsense udev rules:
git clone https://github.com/IntelRealSense/librealsense Copy the 99-realsense-libusb.rules files to the rules.d folder sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/ sudo udevadm control --reload-rules sudo udevadm trigger
Then open the gst-launch command.
If the problem persists, you can try any or all of the following:
Verify that $DISPLAY has the correct value.
Perform a Intel® RealSense™ hardware reset:
# Open realsense docker container docker-compose -f 01_docker_sdk_env/docker_compose/01_amr/amr-sdk.all.yml run realsense bash # While in realsense container, open the realsense-viewer application realsense-viewer # In realsense-viewer menu, go to "More" and then select "Hardware Reset" # Wait for reset to complete and then close the realsense-viewer application.
Reboot the target.
For general robot issues, go to: Troubleshooting for Robot Tutorials.