Closed lesreaper closed 7 months ago
Hi @lesreaper Is the camera detected if you alter your code to use the method shown below, please?
import pyrealsense2 as rs
pipeline = rs.pipeline()
config = rs.config()
# Get device product line for setting a supporting resolution
pipeline_wrapper = rs.pipeline_wrapper(pipeline)
pipeline_profile = config.resolve(pipeline_wrapper)
device = pipeline_profile.get_device()
config.enable_stream(rs.stream.depth, 1280, 720, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 1280, 720, rs.format.bgr8, 30)
config.enable_stream(rs.stream.infrared, 1280, 720, rs.format.y8, 30)
# Start streaming
profile = pipeline.start(config)
No, it does not.
Which leads me to believe it's something with the Python wrapper. However, not sure how to change that config to work.
I'd really like to avoid the RSUSB
install since this is destined for more than a prototype, but I don't know how to get Python wrappers otherwise on a Jetson.
Using the CMake flag DFORCE_LIBUVC=true should be essentially the same as using RSUSB, since the LIBUVC flag was deprecated in favor of using -DFORCE_RSUSB_BACKEND=TRUE instead, though the deprecated flag is still valid. Both of these flags build the SDK in a mode that bypasses the Linux kernel and so avoids the need to apply a kernel patch.
The two approaches for installing successfully from source code on a Jetson are typically to either (1) use the LIBUVC / RSUSB flag, or (2) not use the RSUSB / LIBUVC flag but do not apply a kernel patch script.
I note in the title of this issue that you refer to Jetson 6.0DP, which is JetPack 6.0 Developer Preview (DP), the first release of JetPack 6. As the librealsense SDK only supports up to JetPack 5.0.2 in the /patch-realsense-ubuntu-L4T.sh Jetson patch script at the time of writing this, this makes it important to not apply the patch script.
What happens if you remove config from the brackets of the pipeline start line so that the script ignores the stream config lines and applies the camera's default stream profile instead?
profile = pipeline.start()
If I pull the config out, it still gives me the No Device Connected
error.
No, I didn't apply any patches.
I've tried compiling both with and without the RSUSB / LIBUVC
flag. Same challenge.
Ideas?
I really don't want to have to, as I get downgraded Python 3.8 and CUDA 11, but I can downgrade the system to Jetpack 5.1.3 and try again.
I need to put these into production for a residential pilot program, so I need to have stable streams coming in. What's the best way of making that happen with the various installation procedures for Jetson, and having a need for Python?
Have you seen the librealsense / Python source code installation guide for Jetson at https://github.com/IntelRealSense/librealsense/issues/6964#issuecomment-707501049
Yes, I did that exact process, I was just wondering if there was a better way to do it so it was more stable. Looks like I'm going to have to downgrade for now and test.
Thank you!!
Hi. JP6 kernel has no hidraw support, we enable it with our mipi integration. https://github.com/IntelRealSense/realsense_mipi_platform_driver/tree/dev
Hey @dmipx , those are interesting for sure, but adding $800 to our Cost of Goods for a camera is going to price us out of the market.
I'm going to downgrade and be back to update shortly.
Hi. I'm not asking you to use gmsl camera, I suggested to use jp6.0 kernel we built for and use with USB camera.
Ah, I see @dmipx , thank you for the clarification. I will try that again when I have some extra time hopefully.
For now, I downgraded to 5.1.3, and was able to get it running with a night's worth of work. Hopefully it will continue to operate ok.
Thank you all!!
You are very welcome, @lesreaper - I'm pleased to hear that you achieved a solution with a downgrade. Thanks very much for the update!
Hello, I am facing a similar issue, building from source completes without error, i am able to import pyrealsense2 into python scripts, however, in python, "No Device Detected" error is thrown in every script ive tried
Realsense binaries are working (rs-sensor-control, multicam, etc)
JP6, Nvidia Orin dev kit, librealsense 2.55.1
Hi. I suggest you run ./scripts/setup_udev_rules.sh
to properly configure rules.
Report your output of rs-enum.sh
script and rs-enumerate-devices
.
Hi. I'm not asking you to use gmsl camera, I suggested to use jp6.0 kernel we built for and use with USB camera.
Hi, I am not quiet sure what I should to do to 'use jp6.0 kernel' as you said according to the github repo https://github.com/IntelRealSense/realsense_mipi_platform_driver/tree/dev, can you shed some light?
@jeezrick Using the MIPI driver on a USB connection with JetPack 6 provides support for the IMU.
Issue Description
I'm trying to run the through Python the D455 camera.
Runs fine in Realsense Viewer. I check this related issue, and already rebuilt from scratch using this script:
I can load
import pyrealsense2 as rs
no problem. When I run this basic script:I get this error: