-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
software_device usage on python #7057
Comments
Hi @kouta-kun Your project sounds as though it would be suited to an open-source ethernet networking arrangement like the one described in Intel's RealSense open-source networking white-paper document. Using two software components (a tool called rs-server and an realsense2-net module), the individual cameras are attached to Raspberry Pi 4 boards (the remote computers) and the data from each camera is sent to a central computer (the host) that can access the data. The paper states that although Pi 4 boards are used in the paper's example network, the system can be applied with minor modification to other compute boards. |
Hi @MartyG-RealSense , we have already evaluated using such a system (we first saw https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python/examples/ethernet_client_server which we modified) for some tasks in the system, however some specific frames are being preprocessed in the jetson (object detection using pytorch), so we cannot use a method that requires exclusive ownership of the camera. Would it be possible to interface with rs-net module so that we can also use the frames on an application running on the device? |
The Further Research section at the end of the open source ethernet networking paper, which offers suggestions for how the project could be expanded upon, speculates that "computational resources of the Raspberry Pi can be utilized to perform additional post-processing tasks". |
I also recalled a case about streaming depth data over a network with gstreamer: |
Hi @kouta-kun Do you require further assistance with this case, please? Thanks! |
Hi @MartyG-RealSense, we managed to compile librealsense with CUDA on our device so we are not currently seeing a bottleneck for which we need remote processing, thanks for asking! |
Great news - thanks so much for the update! I will close this case now as you found a solution. Please do create a new case in future if you have any problems. |
Hi @kouta-kun , let me ask this information where you can find it, you can give me reference information. "Also, trying to follow the C++/C# examples for software_device does not work as the method create_matcher is not enabled in the pyrealsense wrapper. |
Hi @anhTuan0712, by looking at the binding classes under https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python I was not able to find any python binding for the create_matcher function. I tried to bind it myself but I was not able to get it working, although I may have missed another way to access it. |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
Hello, we are currently trying to send depth frames from a remote device (jetson nano) to a centralized server in order to apply alignment/other filters there, as our edge device seems to be too slow for our use case. I have tried to use software_device as follows:
However, this results in the following error:
I have also tried to circumvent this by connecting a D435 camera and uncommenting
disable_all_streams
, but the same error occurs:Also, trying to follow the C++/C# examples for software_device does not work as the method
create_matcher
is not enabled in the pyrealsense wrapper.So, how can one simulate a camera on a server running python code? using .bag files does not work for our usecase as it is expected to work with packages sent by an edge device in realtime. Thanks in advance!
The text was updated successfully, but these errors were encountered: