This tutorial still works in 2023. And I'm glad I found it. This video was a godsend after trying to get pyrealsense working for over a week. I had to duplicate the .so files into my working folder.
For anyone struggling or not finding pyrealsense2 it was in /usr/local/lib/python2.7/pyrealsense2 as some other comments suggested. Then you just do export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/pyrealsense2 and problem solved !
This is probably the wrong video for this question but along the same theme of this video is my question. Have you ever dealt with Pixhawk, 4 in 1 ESC, and a Spektrum radio all on the same build? Holy crap its frustrating.
Thanks for posting this video,I have a question will t265 and ardupilot firmware allow drone to arm in guided mode without use of GPS so it could be used in indoor environment
is it true there are issues with realsense on dev boards like tinker edge r or rockpi 4c because of linux kernel and its not a simple install because some things need to be modified in installation configuration to get it to work and even if get it to work it is buggy?
@@MrNorbye thanks for the reply. I had tried that but it was not the solution for me. Here is what eventually worked - it turns out you have to update cmake differently on the Jetson: 1.wget www.cmake.org/files/v3.13/cmake-3.13.0.tar.gz 2. tar xpvf cmake-3.13.0.tar.gz cmake-3.13.0/ 3. cd cmake-3.13.0/ 4. ./bootstrap --system-curl 5. make -j6 6. echo 'export PATH=/home/nvidia/cmake-3.13.0/bin/:$PATH' >> ~/.bashrc 7. source ~/.bashrc
@@GOBish23 Hi Gabi. I moved the file to the home directory, and I followed your method, and I got an error: " Configuring incomplete, errors occurred. See also "/home/Koxinga/cmake-3.3.0/CMakeFiles/CMakeOutput.log". See also "/home/Koxinga/cmake-3.3.0/CMakeFiles/CMakeError.log". Error when bootstrapping CMake Problem while running initial CMake" Did you ever meet an error like this?
This is super frustrating. Can you explain what it means it did not work for you? I have been following your steps, do not get any errors, but do not have any files regarding pyrealse.so. I am as well on Jetson nano...Do you have any idea of what can be wrong?
In the new SDK (2.36), the files are in a subfolder specific to your python version. For me it looks like this: /usr/local/lib/python2.7/pyrealsense2 . Note that you have to use that directory for your PYTHONPATH as well.
for python3 - github.com/IntelRealSense/librealsense/issues/6980 (upgrade cmake) and after github.com/jetsonhacks/buildLibrealsense2TX/issues/13 (problem with cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true)
Thank you tons! I was struggling to build pyrealsense2 library from source for couple of hours and I came across your video! I really appreciate it!
This tutorial still works in 2023.
And I'm glad I found it. This video was a godsend after trying to get pyrealsense working for over a week. I had to duplicate the .so files into my working folder.
For anyone struggling or not finding pyrealsense2 it was in /usr/local/lib/python2.7/pyrealsense2 as some other comments suggested. Then you just do export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/pyrealsense2 and problem solved !
Thanks for continuing to push the limits and making our hobby cutting edge science.
Thank you for the good words :)
Thanks, I was trying to make it work for python3. If you figured can you please make a separate video for python3?
YOU ARE THE MAN. lifesaver!
A million times, thank you.
You are awesome Dennis. Thank you very
Saved my day ❤
This is probably the wrong video for this question but along the same theme of this video is my question. Have you ever dealt with Pixhawk, 4 in 1 ESC, and a Spektrum radio all on the same build? Holy crap its frustrating.
Thanks for posting this video,I have a question will t265 and ardupilot firmware allow drone to arm in guided mode without use of GPS so it could be used in indoor environment
Exactly! Will share my results in the coming days.
Hello nice video. How did you get the pyrealsense library?
Hi Buddy. I'm a person with limitations due to amyotrophic lateral sclerosis disease. Sorry, what is the accuracy of the eye tracking of this device?.
is it true there are issues with realsense on dev boards like tinker edge r or rockpi 4c because of linux kernel and its not a simple install because some things need to be modified in installation configuration to get it to work and even if get it to work it is buggy?
Hi. How Can I get frames and sensor data to an android device android 8?
Can you please video for that
Thanks
I tried this. I'm getting "module 'pyrealsense2' has no attribute 'pipeline'. Could someone please help?
same here, how to solve this, can anyone chime in pleease?
In python script import as "from pyrealsense2 import pyrealsense2 as rs"
Can you do a video tutorial like this but for windows?
Thanks for this video. Were you ever able to get it to work with Python3? I have tried and tried with no success on python3. Python2 works though.
i just changed the path to PYTHON_EXECUTABLE . /usr/bin/python3. got I working
and then use export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.6
@@MrNorbye thanks for the reply. I had tried that but it was not the solution for me. Here is what eventually worked - it turns out you have to update cmake differently on the Jetson:
1.wget www.cmake.org/files/v3.13/cmake-3.13.0.tar.gz
2. tar xpvf cmake-3.13.0.tar.gz cmake-3.13.0/
3. cd cmake-3.13.0/
4. ./bootstrap --system-curl
5. make -j6
6. echo 'export PATH=/home/nvidia/cmake-3.13.0/bin/:$PATH' >> ~/.bashrc
7. source ~/.bashrc
@@GOBish23 Hi Gabi. I moved the file to the home directory, and I followed your method, and I got an error:
" Configuring incomplete, errors occurred.
See also "/home/Koxinga/cmake-3.3.0/CMakeFiles/CMakeOutput.log".
See also "/home/Koxinga/cmake-3.3.0/CMakeFiles/CMakeError.log".
Error when bootstrapping CMake
Problem while running initial CMake"
Did you ever meet an error like this?
@@costaiquan5020 I didn't - did you change line 6 to be your home path?
echo 'export PATH=/home/Koxinga/cmake-3.13.0/bin/:$PATH' >> ~/.bashrc
This is super frustrating. Can you explain what it means it did not work for you? I have been following your steps, do not get any errors, but do not have any files regarding pyrealse.so. I am as well on Jetson nano...Do you have any idea of what can be wrong?
Same here. Got only librealsense2.so and librealsense2.so.2.36 but nothing concerning pyealsense....
Moreover, do you think it could be possible to share your build folder?
In the new SDK (2.36), the files are in a subfolder specific to your python version. For me it looks like this: /usr/local/lib/python2.7/pyrealsense2 . Note that you have to use that directory for your PYTHONPATH as well.
Same here, I also check inside /usr/local/lib/python2.7/ but the file is not there either. Followed every step with no errors along the path.
This worked for me
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.6/pyrealsense2
for python3 - github.com/IntelRealSense/librealsense/issues/6980 (upgrade cmake) and after github.com/jetsonhacks/buildLibrealsense2TX/issues/13 (problem with cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true)