Hello DaneLLL,
I tried that script from scratch and the command $rs-distance works now.
Now I am trying to get the image distance matrix so I need to use the ROS wrapper or the PYTHON 3 wrapper.
Which way would you recommend to get the distance values?.
I have tried to build LibRealSense from source but that doesnt work.
doesn’t work in which sense? doesn’t build? or build but doesn’t run? or builds, runs , but doesn’t recognize devices? recognizes devices? try running with sudo; they missed udev rules installatiion in their source build method
what is the output of lsusb
of sudo rs-enumerate-devices
of rs-fw-update -l
librealsense sdk works both with installation from apt repository at aws & from sources.
tested on
nx/agx
actually you might need to use absolute paths, also try executing from build /bin folder;
system wide installation gets screwed when many librealsaense sdk versions are installed at the same OS
First: sudo apt install mlocate sudo updatedb locate rs-fw-update
then it will show path to all existing binaries with such name;
navigate to the path & try ./rs-fw-update -l
I tried the following output after executing the commands:
$sudo rs-enumerate-devices
No device detected. Is it plugged in?
$sudo rs-fw-update -l
there are no connected devices
$lsusb
Bus 002 Device 014: ID 8086:0b64 Intel Corp.
Bus 002 Device 013: ID 0bda:0489 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 13d3:3549 IMC Networks
Bus 001 Device 004: ID 0603:0002 Novatek Microelectronics Corp.
Bus 001 Device 002: ID 0bda:5489 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Were you able to build your Librealsense with a l515?
librealsense doesn’t build with a particular camera model
it supports all models from the supported models list by default;
we were able to use t265, d435 d435i, d455, l515 on agx/nx also within docker
also please note that sudo make install will not override existent binaries; so that it will likely be required to execute binaries from their build folder
execute this
once completed use the sudo & the new path to run the binary
also you may try monitoring if exec lsusb
will correctly reflect disappearing/ appearing of the device in case you unplug/ plug it
I was able to run all the commands! Thank you
The next thing I need is to build it with the python3 wrapper.
With your build command I was able to execute the following command:
$python
>>>import pyrealsense2
But when I want to build it for python 3.6 adding the following flag to the cmake command:
-DPYTHON_EXECUTABLE=/usr/bin/python3.6
the pyrealsense2.so file is not created:
$python3
>>> import pyrealsense2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyrealsense2'