Open jerryt3204 opened 5 years ago
When did you install ROS? They changed the GPG key recently, which kind of upsets everything.
Thanks for your reply @jetsonhacks I know that ROS GPG issue, and i installed ROS on my TX2 yesterday.
Hello there, I got the same problem on a Jetson TX1. Is there a workaround? Cheers
Hi again,
first of all thanks for the great scripts and tutorials on Youtube @jetsonhacks ! I ran into the same issue described above but with a Jetson TX1 flashed with Jetpack 3.3
For anyone with the same problem, here's how I made it work: I found @jerryt3204 's other thread on the issue here: https://github.com/IntelRealSense/librealsense/issues/4295
But that didn't work out of the box because of the newer Jetpack version and because building realsense-ros from source expects a newer version of librealsense. So the steps are (following the YT tutorial with some adaptions):
mkdir jetsonhacks
cd jetsonhacks
git clone https://github.com/jetsonhacks/buildLibrealsense2TX
cd buildLibrealsense2TX
nano buildPatchedKernel.sh
In this file, in the top there is LIBREALSENSE_VERSION=v2.13.0 change that to LIBREALSENSE_VERION=v.2.24.0
Furthermore if you go down, the script checks for the L4T version
....
if [ $JETSON_BOARD == "TX1" ] ; then
L4TTarget="28.2"
if [ $JETSON_L4T = "28.2" ] ; then
KERNEL_BUILD_VERSION=v1.0-L4T28.2
....
change JETSON_L4T = "28.2"
to JETSON_L4T = "28.2.0"
otherwise the script will throw an error as it expects Jetpack versions 3.2 or lower. Safe, close and run the file with
./buildPatchedKernel.sh
then open and modify the second script:
nano ./installLibrealsense.sh
also change the LIBREALSENSE_VERSION from v2.13.0 to v2.24.0 safe, close, run the script with
./installLibrealsense.sh
Then install ROS normally with the jetsonhacks script:
git clone https://github.com/jetsonhacks/installROSTX1
cd installROSTX1
./installROS.sh -p ros-kinetic-desktop
./setupCatkinWorkspace.sh
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
Last, you'll have to clone realsense-ros, install its dependencies and then install the package itself
cd ~/catkin_ws/src
rosdep update
git clone https://github.com/IntelRealSense/realsense-ros
cd ..
sudo rosdep -y install --from-paths src --ignore-src --rosdistro kinetic
source ~/.bashrc
catkin_make install
Then you should be able to run the example launch file
roslaunch realsense2_camera rs_camera.launch
Thanks again @jetsonhacks Cheers
Excellent work! It's unclear on how to maintain this. With all of the changes between the Jetson and librealsense releases, everything seems to change (and break) every few weeks.
Totally understandable! Your scripts are super useful though. Thanks
Hello guys,
At the first, I want to thank the solutions provided by @jetsonhacks and @HeinzBenjamin . Thanks for your excellent work!
OS: Ubuntu 16.04 platform: Nvidia Jetson TX2 with Jetpack3.2.1 camera: realsense d435 And I have ran the camera Realsense D435 successfully abut 3 weeks ago with the solution provided by HeinzBenjamin. But I reset the TX2 few days ago and I tried to run the same camera on TX2. And I found that the official of Realsense just updated the new version :Realsense SDK v2.25.0. So I fork the old version v2.24.0 to my github and change the website in the buildPatchedKernel.sh as well as installLibrealsense.sh. But when I run the command: "./installLibrealsense.sh" there were some problems as follow :
`[ 93%] Building CXX object tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/fw-update-helper.cpp.o /home/nvidia/librealsense/common/fw-update-helper.cpp:15:37: fatal error: common/fw/D4XX_FW_Image.h: No such file or directory compilation terminated. tools/depth-quality/CMakeFiles/rs-depth-quality.dir/build.make:166: recipe for target 'tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/fw-update-helper.cpp.o' failed make[2]: [tools/depth-quality/CMakeFiles/rs-depth-quality.dir///common/fw-update-helper.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... CMakeFiles/Makefile2:2223: recipe for target 'tools/depth-quality/CMakeFiles/rs-depth-quality.dir/all' failed make[1]: [tools/depth-quality/CMakeFiles/rs-depth-quality.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: [all] Error 2
real 12m17.890s user 34m0.808s sys 1m28.532s librealsense did not build`
Does anyone know how to fix this problem? Thank you Weixin
@Weixin-Ma You probably have an issue downloading the RealSense firmware. Intel now includes the firmware in librealsense2, but the firmware itself is stored in a different location than Github. Check your CMake output to see if it is able to connect to the server with the firmware.
Thank you for your reply! @jetsonhacks Can I just download the firmware by myself? I found a method to update the firwmare of Realsense as follow: https://www.intel.com/content/dam/support/us/en/documents/emerging-technologies/intel-realsense-technology/Linux-RealSense-D400-DFU-Guide.pdf Or may just use cmake to build from source?
Thank you Weixin
OS: Ubuntu 16.04 platform: Nvidia Jetson TX2 with Jetpack3.3 camera: realsense d435
when i execute ./installRealSenseROS.sh, i encountered this error:
E: Unable to locate package ros-kinetic-librealsense2
detail as below:
Before doing this, i have installed librealsense and ROS buildLibrealsense2TX: https://github.com/jetsonhacks/buildLibrealsense2TX ROS: https://github.com/jetsonhacks/installROSTX2
so anyone know how to fix it ??