librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Jetson Nano + D435i Issues

Open kat-mcg-lin opened this issue 7 years ago • 23 comments

How can we get the D435i to work properly?? I know the notes say it won't get recongized, but there must be some way?! Are there any other external patches or something? Jetson Hacks made a video about connecting a nano to a D435i and they got it to work there.... what did they do that isn't included in the git?!

I've asked this question elsewhere, hoping to get some answers here. I've been trying to get the D435i to work for awhile, I have the T265 working just fine, but the D435i isn't being recognized after following the popular instructions from Jetson Hacks

kat-mcg-lin avatar May 21 '19 13:05 kat-mcg-lin

@kat-mcg-lin Have you been able to solve this issue?

JvanZijl avatar Aug 14 '19 14:08 JvanZijl

I have the same issue.

malith1992 avatar Sep 05 '19 06:09 malith1992

Latest builds come with librealsense2 packages for Jetson. Please try by following distribution.md (skip the dkms) Works well on a nano for me. Also, same can be accomplished by building with libuvc (see relevant instructions under doc folder)

Sent with GitHawk

dorodnic avatar Sep 05 '19 06:09 dorodnic

Do you mean following distribution_linux.md ? skip the dkms install by apt ? there is no arm version packages I think.

mickeyouyou avatar Sep 10 '19 11:09 mickeyouyou

Yes There are arm packages 🙂

Sent with GitHawk

dorodnic avatar Sep 10 '19 12:09 dorodnic

ok thank you point that, I must have a try now .

mickeyouyou avatar Sep 10 '19 12:09 mickeyouyou

Meet some errors when run sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u for ubuntu 18 on Jetson Nano.

N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic InRelease' doesn't support architecture 'arm64'

mickeyouyou avatar Sep 10 '19 12:09 mickeyouyou

Maybe because of bionic vs xenial? Sorry for that. @ev-mp any idea?

Sent with GitHawk

dorodnic avatar Sep 10 '19 12:09 dorodnic

It's okay. :smile:

So do you have any suggestions for installation doc of D435i? for now , D435I device could not be detected by Jetson nano, but T265 can.

mickeyouyou avatar Sep 10 '19 12:09 mickeyouyou

Me and @ev-mp will check how to offer debians for bionic as well, but for xenial arm build we basically followed libuvc-installation.md document / script. Key parameter is -DFORCE_LIBUVC=true which lets us bypass kernel patches. In 2.25 I think we ensured IMU would also be detected using this method

dorodnic avatar Sep 10 '19 14:09 dorodnic

thank you.now I'm trying the script ./libuvc_installation.sh from libuvc-installation.md.

I think this script have been include parameter -DFORCE_LIBUVC=true output like :

+ cd ./librealsense-master
+ echo Install udev-rules
Install udev-rules
+ sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
[sudo] password for geek-car: 
+ sudo udevadm control --reload-rules
+ udevadm trigger
+ mkdir build
+ cd build
+ cmake ../ -DFORCE_LIBUVC=true -DCMAKE_BUILD_TYPE=release
-- The CXX compiler identification is GNU 5.5.0
-- The C compiler identification is GNU 5.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Internet connection identified
-- Info: REALSENSE_VERSION_STRING=2.28.0
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Setting Unix configurations
-- Using libuvc (by force)
-- using RS2_USE_LIBUVC_BACKEND
-- Found usb: /usr/lib/aarch64-linux-gnu/libusb-1.0.so  
-- Found OpenGL: /usr/lib/aarch64-linux-gnu/libOpenGL.so   
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found apriltag: /usr/local/include/apriltag  
-- Building with TM2

now I'm waiting the build result.

mickeyouyou avatar Sep 11 '19 02:09 mickeyouyou

hi @dorodnic I build librealsense master(version 2.28) by script ./libuvc_installation.sh successfully. Nano can detect D435i .

but when run realsense-viewer meet some error like bellow :

 11/09 13:10:42,564 WARNING [547222434240] (messenger-libusb.cpp:94) bulk_transfer returned error, endpoint: 134, error: Resource temporarily unavailable, number: 11
 11/09 13:10:42,634 WARNING [547222434240] (messenger-libusb.cpp:94) bulk_transfer returned error, endpoint: 134, error: Resource temporarily unavailable, number: 11
 11/09 13:10:45,105 WARNING [547222434240] (messenger-libusb.cpp:94) bulk_transfer returned error, endpoint: 134, error: Resource temporarily unavailable, number: 11
 11/09 13:10:46,288 WARNING [547222434240] (messenger-libusb.cpp:94) bulk_transfer returned error, endpoint: 134, error: Resource temporarily unavailable, number: 11
 11/09 13:10:46,499 WARNING [547222434240] (messenger-libusb.cpp:94) bulk_transfer returned error, endpoint: 134, error: Resource temporarily unavailable, number: 11
 11/09 13:10:47,139 WARNING [547222434240] (messenger-libusb.cpp:94) bulk_transfer returned error, endpoint: 134, error: Resource temporarily unavailable, number: 11
 

and CPU resources like 3/4 cores reached 80%+

Screenshot from 2019-09-11 13-11-24

is it normal ?

mickeyouyou avatar Sep 11 '19 05:09 mickeyouyou

Normal - yes. Good - no. We are still looking into ways this can be improved.

dorodnic avatar Dec 10 '19 20:12 dorodnic

Any progress on this? My issue results in same bulk_transfer with D435i on Jetson Nano, 4.9.140-tegra, RealSense ROS v2.2.8, Running with LibRealSense v2.28.1, Device FW version: 05.12.01.00

bgilreath avatar Feb 12 '20 04:02 bgilreath

There is a post say he has successfully install realsense. https://qiita.com/karaage0703/items/cb9bbe1b4f2504f8ad0d I have tried. it works for me.

sweetsmile365 avatar Feb 13 '20 07:02 sweetsmile365

I got the following issue while running the rs_camera.launch file (using the D435 camera)

15/02 05:20:53,264 WARNING [547163709824] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61 15/02 05:20:53,325 WARNING [547163709824] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61 15/02 05:20:53,430 WARNING [547163709824] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61 15/02 05:20:53,491 WARNING [547163709824] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61

I am able to view all video streams on rviz despite the above messages. Is this normal? Is there any way to rectify this?

arjunsengupta98 avatar Feb 17 '20 13:02 arjunsengupta98

@arjunsengupta1998 Did you find any way to solve this issue? @mickeyouyou how about you?

sadransh avatar Mar 02 '20 20:03 sadransh

Yeah I build realsense with https://github.com/JetsonHacksNano/installLibrealsense

mickeyouyou avatar Mar 04 '20 02:03 mickeyouyou

I am still getting these errors. I installed it from JetsonHacks as well. @mickeyouyou did you run the installLibrealsense script or build realsense script? I ran the install script first. However, pyrealsense2 wasn't installed with it, so I built the sdk from source. Pyrealsense2 was installed, but still getting those warnings.

arjunsengupta98 avatar Mar 04 '20 06:03 arjunsengupta98

Im getting the same issue on Jetson TX2 :+1: messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11

any solution

q8wwe avatar Mar 09 '20 17:03 q8wwe