ArduCAM_USB_Camera_Shield icon indicating copy to clipboard operation
ArduCAM_USB_Camera_Shield copied to clipboard

SDK for ARM64 for c/c++

Open YurySams opened this issue 7 years ago • 26 comments

Hi, We are looking a way to connect ARDUCAM USB SHIELD to our development board with arm64 cpu. We would use C/C++ language to process capturing video frame. Is it possible to share SDK (.so + header) with us? thank you

YurySams avatar Dec 15 '17 16:12 YurySams

Would you please let me know what kind of ARM64 CPU you are using? The Linux SDK now we offer is only for PC and Raspberry pi, we need to work on other platform if needed.

ArduCAM avatar Dec 18 '17 14:12 ArduCAM

Hi, I also have the similar problem. We need to deploy the ArduCAM on NVIDIA Tiger TX2, but we don't know how to compile the ArducamSDK.so. Could you please share your source code for building.

alexanderhmw avatar Feb 20 '18 17:02 alexanderhmw

Do you have any email contact?

ArduCAM avatar Feb 22 '18 02:02 ArduCAM

Hi, Also having a similar problem, could you compile it in ARM64 or provide the source code? We're trying to use it with the NVIDIA Jetson TX2.

ryanmklee avatar Mar 12 '18 20:03 ryanmklee

There is another solutions https://ccjt.taobao.com/?spm=2013.1.1000126.3.26d358c2zPDOl3

hardware, camera + usb shield, is good. But they provide software only for windows. However they share protocol and you can implement client basing on libusb for platform where you can find one, libusb.

YurySams avatar Mar 14 '18 15:03 YurySams

Hi,

I'm also interested to have it on ARM64 for NVidia Jetson TX1 and TX2. I can help you to port it to this board.

Best regards

lachinaj avatar Mar 16 '18 16:03 lachinaj

We have update the library for support ARM64 Arch processor, and tested on Pine64 board. Please check it out.

ArduCAM avatar Mar 29 '18 09:03 ArduCAM

Thanks

lachinaj avatar Mar 31 '18 05:03 lachinaj

Have anyone had any luck making this work with the TX1/TX2?

cullophid avatar Apr 24 '18 12:04 cullophid

I'm not have time for the moment, I have used another camera. I will test it as soon as possible. But I suppose it's not a problem with the ARM64 build.

lachinaj avatar Apr 24 '18 14:04 lachinaj

Hi, Is it possible to use the ArduCAM_USB_Camera_Shield with ODROID C2 board? Or ODROID XU4Q? Can you update the library or share the source code? Thanks a lot.

luckyplay68 avatar Jun 19 '18 20:06 luckyplay68

Please try the library from: https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/tree/master/Pine64

ArduCAM avatar Jun 25 '18 21:06 ArduCAM

Thanks a lot. We shall try it.

luckyplay68 avatar Jun 25 '18 21:06 luckyplay68

@ArduCAM the link you posted is dead .. are there any plans to support the nvidia boards (tx2 and the like)?

blubbi321 avatar Apr 18 '19 20:04 blubbi321

Yes, we'd like to, but need to buy the tx2 board and port our library on that.

ArduCAM avatar Apr 21 '19 16:04 ArduCAM

Has anyone had any success getting these to work on a TX2? I'm trying to set mine up with ROS but not having much luck currently. Below is what happens when I attempt to launch it. Any suggestions on how to fix this?

B_Camera_Shield/ROS/arducam_usb2_ros$ roslaunch arducam_usb2_ros arducam_node.launch
... logging to /home/nvidia/.ros/log/696d95fe-715b-11e9-b97e-00044ba7c041/roslaunch-tegra-ubuntu-27080.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://tegra-ubuntu:36800/

SUMMARY
========

CLEAR PARAMETERS
 * /cam0/

PARAMETERS
 * /cam0/arducam_ros_node/camera_serial: 
 * /cam0/arducam_ros_node/config_file: /home/nvidia/catk...
 * /cam0/arducam_ros_node/frame_id: cam0
 * /cam0/arducam_ros_node/horizontal_flip: True
 * /cam0/arducam_ros_node/vertical_flip: False
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /cam0/
    arducam_ros_node (arducam_usb2_ros/arducam_ros_node.py)

ROS_MASTER_URI=http://localhost:11311

process[cam0/arducam_ros_node-1]: started with pid [27098]
Traceback (most recent call last):
  File "/home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/arducam_ros_node.py", line 7, in <module>
    from ImageConvert import *
  File "/home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/ImageConvert.py", line 2, in <module>
    import ArducamSDK
ImportError: /home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/ArducamSDK.so: cannot open shared object file: No such file or directory
[cam0/arducam_ros_node-1] process has died [pid 27098, exit code 1, cmd /home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/arducam_ros_node.py __name:=arducam_ros_node __log:=/home/nvidia/.ros/log/696d95fe-715b-11e9-b97e-00044ba7c041/cam0-arducam_ros_node-1.log].
log file: /home/nvidia/.ros/log/696d95fe-715b-11e9-b97e-00044ba7c041/cam0-arducam_ros_node-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done

SKrisanski avatar May 08 '19 06:05 SKrisanski

Has anyone had any success getting these to work on a TX2? I'm trying to set mine up with ROS but not having much luck currently. Below is what happens when I attempt to launch it. Any suggestions on how to fix this?

B_Camera_Shield/ROS/arducam_usb2_ros$ roslaunch arducam_usb2_ros arducam_node.launch
... logging to /home/nvidia/.ros/log/696d95fe-715b-11e9-b97e-00044ba7c041/roslaunch-tegra-ubuntu-27080.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://tegra-ubuntu:36800/

SUMMARY
========

CLEAR PARAMETERS
 * /cam0/

PARAMETERS
 * /cam0/arducam_ros_node/camera_serial: 
 * /cam0/arducam_ros_node/config_file: /home/nvidia/catk...
 * /cam0/arducam_ros_node/frame_id: cam0
 * /cam0/arducam_ros_node/horizontal_flip: True
 * /cam0/arducam_ros_node/vertical_flip: False
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /cam0/
    arducam_ros_node (arducam_usb2_ros/arducam_ros_node.py)

ROS_MASTER_URI=http://localhost:11311

process[cam0/arducam_ros_node-1]: started with pid [27098]
Traceback (most recent call last):
  File "/home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/arducam_ros_node.py", line 7, in <module>
    from ImageConvert import *
  File "/home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/ImageConvert.py", line 2, in <module>
    import ArducamSDK
ImportError: /home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/ArducamSDK.so: cannot open shared object file: No such file or directory
[cam0/arducam_ros_node-1] process has died [pid 27098, exit code 1, cmd /home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/arducam_ros_node.py __name:=arducam_ros_node __log:=/home/nvidia/.ros/log/696d95fe-715b-11e9-b97e-00044ba7c041/cam0-arducam_ros_node-1.log].
log file: /home/nvidia/.ros/log/696d95fe-715b-11e9-b97e-00044ba7c041/cam0-arducam_ros_node-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done

Try replace the ArducamSDK.so file in the ROS folder with the one in raspberrypi folder.

ehong-tl avatar May 08 '19 07:05 ehong-tl

If I do that, I get this outcome:

nvidia@tegra-ubuntu:~$ roslaunch arducam_usb2_ros arducam_node.launch
... logging to /home/nvidia/.ros/log/b2b255ca-715f-11e9-aa53-00044ba7c03f/roslaunch-tegra-ubuntu-2947.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://tegra-ubuntu:39115/

SUMMARY
========

CLEAR PARAMETERS
 * /cam0/

PARAMETERS
 * /cam0/arducam_ros_node/camera_serial: 
 * /cam0/arducam_ros_node/config_file: /home/nvidia/catk...
 * /cam0/arducam_ros_node/frame_id: cam0
 * /cam0/arducam_ros_node/horizontal_flip: True
 * /cam0/arducam_ros_node/vertical_flip: False
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /cam0/
    arducam_ros_node (arducam_usb2_ros/arducam_ros_node.py)

auto-starting new master
process[master]: started with pid [2957]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to b2b255ca-715f-11e9-aa53-00044ba7c03f
process[rosout-1]: started with pid [2975]
started core service [/rosout]
process[cam0/arducam_ros_node-2]: started with pid [2980]
Traceback (most recent call last):
  File "/home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/arducam_ros_node.py", line 7, in <module>
    from ImageConvert import *
  File "/home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/ImageConvert.py", line 2, in <module>
    import ArducamSDK
ImportError: /home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/ArducamSDK.so: wrong ELF class: ELFCLASS32
[cam0/arducam_ros_node-2] process has died [pid 2980, exit code 1, cmd /home/nvidia/catkin_ws/src/ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/arducam_ros_node.py __name:=arducam_ros_node __log:=/home/nvidia/.ros/log/b2b255ca-715f-11e9-aa53-00044ba7c03f/cam0-arducam_ros_node-2.log].
log file: /home/nvidia/.ros/log/b2b255ca-715f-11e9-aa53-00044ba7c03f/cam0-arducam_ros_node-2*.log

SKrisanski avatar May 08 '19 07:05 SKrisanski

@SK19 It seems like the current SDK only support Linux PC and raspberrypi, have to wait for the developer to work on other platform like TX2.

ehong-tl avatar May 08 '19 07:05 ehong-tl

We will order a TX2 or Jetson Nano to test it. Please be patient.

ArduCAM avatar May 08 '19 07:05 ArduCAM

We have update the library for support ARM64 Arch processor, and tested on Pine64 board.

I'm also interested in integration with Jetson TX2 board, but if ARM64 support is there, I don't suppose it should be a problem, it is just not tested. I couldn't find any build though.

Please check it out.

Could you in the meantime point me to where can I check it out?

JakubRN avatar May 08 '19 16:05 JakubRN

We will order a TX2 or Jetson Nano to test it. Please be patient.

Have you tested this on Jetson Nano. Mine has the same problem I am getting an error ArducamSDK.so: cannot open shared object files: No such file or directory

But the file is there. Can you please share the source code so we can compile the SDK for the jetson Nano or any solution that can work with Nano. We have two USB sheilds 2.0 and 3.0 both are having same issue.

insangi avatar May 31 '19 16:05 insangi

We just upload the new update library to support Jetson Nano, it works for both USB2 and USB3 camera shield. Let me know if you have any problem.

ArduCAM avatar Jun 03 '19 14:06 ArduCAM

Hi, I am also getting the error others have detailed above when I run the new package (cloned today) on a TX2. I have been working with the package on a linux laptop without issue for a couple months and only recently have tried running the package on TX2.

Any advice would be greatly appreciated. Thank you.

"ImportError: /home/nvidia/svea_starter/src/ArduCAM_USB_Camera_Shield-master/ROS/arducam_usb2_ros/src/ArducamSDK.so: cannot open shared object file: No such file or directory"

Hackerman342 avatar Nov 28 '19 19:11 Hackerman342

Hi @Hackerman342 Can you try to copy the shared library under the Jetson Nano folder to the ROS folder? cp ArduCAM_USB_Camera_Shield/Nvidia_Jetson/Python/Streaming_demo/ArducamSDK.so ArduCAM_USB_Camera_Shield/ROS/arducam_usb2_ros/src/

glddiv avatar Dec 03 '19 05:12 glddiv

We now moved our support to our forum, please resent the questions to https://www.arducam.com/forums/ Thank you.

ArduCAM avatar Dec 04 '19 15:12 ArduCAM