profile = pipeline.start(config) , RuntimeError #13398
Replies: 36 comments 2 replies
-
Hi @m0-hayashimanato Which version of the librealsense SDK do you have installed, please? Support for L515 was removed from the SDK in version 2.54.1 as it is a retired camera model. If you are using 2.54.1 or newer then I recommend installing version 2.51.1 so that the L515 can be detected. |
Beta Was this translation helpful? Give feedback.
-
Have you installed the pyrealsense2 wrapper again for 2.51.1 please? If you have, please try unplugging the micro-sized end of the USB cable from the base of the L515 camera, reversing the connector's orientation and plugging it back into the L515 (USB-C cables are two-way insertion at the micro-sized end). Does doing so make any difference? |
Beta Was this translation helpful? Give feedback.
-
How do I install the pyrealsense2 wrapper for 2.51.1? At this time, there is no diffrernce by reversing the connector's orientation and plugging it back into the L515. |
Beta Was this translation helpful? Give feedback.
-
If you are using your L515 on a PC computer then you could install version 2.51.1 of pyrealsense2 from PyPi packages with the command below:
|
Beta Was this translation helpful? Give feedback.
-
When I ran the command in the terminal, I got the following statement.
|
Beta Was this translation helpful? Give feedback.
-
It looks as though the 2.51 PyPi package might not exist any more. In that case, installing librealsense 2.53.1 and then doing pip install The main reason I usually recommend 2.51.1 for use with L515 is because 2.53.1 is not suitable for use with the RealSense ROS wrapper, but if you are not using ROS with your RealSense camera then 2.53.1 would be worth trying. |
Beta Was this translation helpful? Give feedback.
-
I installed librealsense 2.53.1 and pyrealsense2==2.53.1.4623, but I got a similar error. |
Beta Was this translation helpful? Give feedback.
-
Are you able to test whether the L515 is detectable in librealsense 2.53.1 by running the tool rs-enumerate-devices |
Beta Was this translation helpful? Give feedback.
-
If the tool and example programs were included in your librealsense installation then it should be in the usr/local/bin directory of Ubuntu. |
Beta Was this translation helpful? Give feedback.
-
It was not in that directory. What should I do? |
Beta Was this translation helpful? Give feedback.
-
If you use the command lsusb in the terminal then you should at least be able to find out if the camera is detectable by the computer. |
Beta Was this translation helpful? Give feedback.
-
When I ran lsusb, realsense was not detected. |
Beta Was this translation helpful? Give feedback.
-
lsusb is independent of the RealSense SDK and simply reads the details of devices directly from the USB port. So if lsusb cannot find the camera, it would suggest that the non-detection problem is not caused by your librealsense installation but by a problem with the camera hardware or the USB cable. I note that reversing the orientation of your USB cable did not make a difference. How long have you owned your L515 camera, please? Has there been a period of time when you have stored the camera unused in a place such as a drawer or cupboard for weeks / months before you tried the camera and found it to be non-detectable? |
Beta Was this translation helpful? Give feedback.
-
I reversed the direction of the USB cable and it did not change. |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
-
librealsense is the "main" part of the RealSense software that enables the camera to be used. Pyrealsense2 is an optional add-on to librealsense that enables Python programs to control the camera. There are two approaches to installing them.
The easiest approach is to build librealsense and pyrealsense2 at the same time using the 'libuvc_installation.sh' build script. https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md I recommend editing line 46 of the script to use the following instruction:
https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh#L46 Then run the edited script file. This will install librealsense with pyrealsense2 and the tools and examples included. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. I was able to install librealsense as you taught me. |
Beta Was this translation helpful? Give feedback.
-
The error is not gone yet, but what should I do next? |
Beta Was this translation helpful? Give feedback.
-
Sorry for the consecutive posts. I think the version of librealsense and pyrealsense I installed are different, is it ok? |
Beta Was this translation helpful? Give feedback.
-
Does it make a difference if you run your script with sudo admin permissions?
|
Beta Was this translation helpful? Give feedback.
-
It was the same. |
Beta Was this translation helpful? Give feedback.
-
Is the camera still undetected if you use the test script below?
|
Beta Was this translation helpful? Give feedback.
-
Not detected |
Beta Was this translation helpful? Give feedback.
-
There is not much more that can be tried, unfortunately. Here are a couple of further suggestions to test.
Or:
|
Beta Was this translation helpful? Give feedback.
-
Neither method 1 or 2 worked. I was able to install librealsense using the method you taught me, and now the Realsense viewer opens when I use the command realsense-viewer on the terminal. However, it opens version 2.55.1. Is this a problem? |
Beta Was this translation helpful? Give feedback.
-
realsense-viewer 2.55.1 should not be able to show the L515 as support for L515 was removed in 2.54.1. So it is strange that your L515 is working with viewer 2.55.1. |
Beta Was this translation helpful? Give feedback.
-
If you installed librealsense with the libuvc_installation.sh script as I suggested then it may be my fault that you have 2.55.1, as this script will install the latest librealsense version. https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh A workaround to install 2.53.1 may be to follow the procedure below.
https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh#L37-L39
https://github.com/IntelRealSense/librealsense/releases/tag/v2.53.1
|
Beta Was this translation helpful? Give feedback.
-
I'm sorry. I don't know what the root directory is. |
Beta Was this translation helpful? Give feedback.
-
When the source code for 2.53.1 is extracted from the zip file, you will have a folder called librealsense-2.53.1. Inside that folder, there is a sub-folder also called librealsense-2.53.1. When this second folder is opened, the list of folders and files are there. This is the 'root' folder that the libuvc_installation.sh script file should be copied into. So it is not the CMake folder. The script file 'libuvc_installation.sh' should be able to be able to be launched in the Ubuntu terminal if you navigate to 'librealsense-2.53.1 > librealsense-2.53.1' within the librealsense source code folder, copy the libuvc_installation.sh file to that location and then input the commands below.
|
Beta Was this translation helpful? Give feedback.
-
Camera Model : L515
Operating System & Version : Linux (Ubuntu-22.04)
Language : Python (3.10.12 64-bit)
、、、
import pyrealsense2 as rs
import numpy as np
import cv2
import open3d
何かキーを押した時点のフレームの.pcdファイルを作成
realsenseL515をこのPCに接続すれば動作するはずです
if name=="main":
ストリーミングの設定
ストリーミング開始
何かのキーを押した瞬間のデプス画像、カラー画像、PCDを作成
、、、
I am trying to execute the code shown above, but it will not run with the following error.
、、、
Traceback (most recent call last):
File "/home/bio/貂。霎コ繧ス繝シ繧ケ/make_data.py", line 17, in
profile = pipeline.start(config)
RuntimeError: No device connected
、、、
Realsense L515 is connected to a PC.
I would like to know the solution to this problem.
Beta Was this translation helpful? Give feedback.
All reactions