-
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
install Realsense on Jetson Xavier agx #7078
Comments
Hi @Fred3D-tech The link below has a method for building librealsense and the Python wrapper together by using the RSUSB backend method that does not require patching (though requires an internet connection). It worked for a Jetson Nano user. Have you tried this method already, please? An Xavier NX user who had problems with using CMake with Python 3 also provided their solution that you could try if you encounter problems with this on your AGX: |
thanks but #6964 is not working for me (I have the last version of the jetpack and sdk manager)... CMake suite maintained and supported by Kitware (kitware.com/cmake). cmake ../ -DFORCE_RSUSB_BACKEND=ON -DBUILD_PYTHON_BINDINGS:bool=true -DPYTHON_EXECUTABLE=... Call Stack (most recent call first): -- Configuring incomplete, errors occurred! |
ok.. cmake works with : then : to check:
|
Thanks very much for the above update about CMake @Fred3D-tech - did it solve your installation problems, please? Thanks! |
not really... it is still not working... File "/home/fred/librealsense/wrappers/python/examples/pyglet_pointcloud_viewer.py", line 91, in AttributeError: module 'pyrealsense2' has no attribute 'pipeline' |
Typically, pyrealsense2 scripts begin with import pyrealsense2 as rs instead of import pyrealsense2. So as pipeline uses the definition rs.pipeline, I would speculate that it may not be able to access the pipeline if you have not done import pyrealsense2 as rs |
of course, I know that. I'm using this program to test it : https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/pyglet_pointcloud_viewer.py |
@Fred3D-tech Below is a link to recent methods submitted by Python 3 pyrealsense2 users that helped them to get it working with Python 3. Read downwards from the linked-to comment please: |
ok... I tried python3 -m pip install pyrealsense2 |
it is only for x86_64 @Fred3D-tech
then from the script folder I can run python3 import or execute python3 files |
e.g. for AGX it is |
for 3.18 cmake and for 3.13 cmake the line differs slightly though |
let me try your script
installing mlocate & updating the database
first it will require to copy two .so files to the folder where the script is located:
|
@Fred3D-tech let us know if the solution above worked for you; |
@AndreV84 Thanks so much for all the effort you have gone to in developing your solution and your offer of help to @Fred3D-tech |
ok thanks... CMake suite maintained and supported by Kitware (kitware.com/cmake). cmake ../ -DFORCE_RSUSB_BACKEND=true -DBUILD_PYTHON_BINDINGS=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_WITH_CUDA=true -DPYTHON_EXECUTABLE=/usr/bin/python3 -DBUILD_GRAPHICAL_EXAMPLES=true -DCMAKE_CUDA_ARCHITECTURES=72 then : |
@Fred3D-tech Great news that it worked for you! @AndreV84 Thank you again for your help. |
@Fred3D-tech Thank you for letitng us know! |
the proposed method seems to allow to use with AGX Xavier the following approach https://ardupilot.org/rover/docs/common-vio-tracking-camera.html , initially defined for Rasp. Pi devices |
Moreover, there is nother project that seems to work with AGX/ nano Jetsons: |
Hi @AndreV84 Do you still require assistance with this case, please? Thanks! |
Hi @MartyG-RealSense |
hello @AndreV84 ... |
Thanks so much @Fred3D-tech and @AndreV84 for your updates. @Fred3D-tech as this was originally your case and you are satisfied to close it, I will do so. Thanks again! |
It is easier to add the path on the script: sys.path.append("/usr/local/lib/python3.6/pyrealsense2/") |
Thanks so much @devyouship for sharing your experience of this subject with the RealSense community! |
Is there a simple way to install Pyrealsense2 on Jetson Xavier agx ?
I tried ALL the solutions proposed on this forum but nothing worked: the problem is with the python wrapper.
The problem seems to be that the kernel has to be patched.
Their is a solution here (and a good explanation) : https://github.com/jetsonhacks/buildLibrealsense2Xavier
but the article seemed to be outdated...
Is their a workable solution ?
The text was updated successfully, but these errors were encountered: