KavenYau / ros2_astra_camera

ROS2 wrapper for Astra camera
Apache License 2.0
23 stars 6 forks source link

DeviceOpen using default: no devices found #3

Closed miku54 closed 2 years ago

miku54 commented 2 years ago

Hi, I use the astra pro camera in the foxy system. After I cloned this repository, I compiled it successfully. After copying the rules file (56-orbbec-usb.rules) to /etc/udev/rules.d/, I start the camera: When ros2 launch ros2_astra_camera astra_pro_launch.py, the terminal prints an error: "DeviceOpen using default: no devices found" I can see from v4tl that the system has recognized the astra pro camera, use lsusb | grep 2bc5 to check the camera's VID:PID string is 2bc5:0502 sudo service udev reload && sudo service udev restart This command didn't solve my problem. Is there any good solution please? lQLPDhtl-eXebI3NAoHNBC2wbqOBG-5SKVcCd8A9dICfAA_1069_641 7E556304-5A04-42c8-98A7-F4F8C64ACC59

5B40B438-157B-4971-8C5E-BB79D3B75796

KavenYau commented 2 years ago

Hi, it seems that your astra pro is the same as mine. Is there any device under /dev directory? you can check with this command. Repluging the device may help too.

ls -al /dev/astra*
miku54 commented 2 years ago

Hi, thanks for your reply! There are devices in the /dev directory, the device number is video0 After replugging the device and starting the camera, it still doesn't solve the problem.image

KavenYau commented 2 years ago

Too odd! Everything looks normal. What platform are you using? Did you test on PC?

miku54 commented 2 years ago

I am using a Jetson nano board, armv8 architecture, and everything works fine in a PC (windows10) . T^T

KavenYau commented 2 years ago

😅 , I only have Jetson Xavier NX, but currently I don't have time to test.

miku54 commented 2 years ago

If it's convenient, can you send me a picture of your camera?

KavenYau commented 2 years ago

The main reason is astra_camera_node wrongly links to libOpenNI2.so which installed in system. A temporary solution is setting LD_LIBRARY_PATH environment to the right path of libOpenNI2.so. e.g. export LD_LIBRARY_PATH=~/ros2_ws/src/ros2_astra_camera/ros2_astra_camera/lib/openni2_redist/arm64

miku54 commented 1 year ago

If it's convenient, can you send me a picture of your camera? 「Kaven Yau @.***>」在 2022年5月7日 週六,08:20 寫道:

😅 , I only have Jetson Xavier NX, but currently I don't have time to test.

— Reply to this email directly, view it on GitHub https://github.com/KavenYau/ros2_astra_camera/issues/3#issuecomment-1120088023, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOU54YEYN6ZID74JMERHV3VIWZL3ANCNFSM5VHP27ZA . You are receiving this because you authored the thread.Message ID: @.***>