Skip to main content

Spinnaker SDK and Ubuntu 18.04

Answered

Comments

5 comments

  • Official comment
    TDY_Markus
    Community team
    Great answers
    Expert (Gold)

    Hello Silvia,

    With Spinnaker 3.x we stopped supporting Ubuntu 18.04. So the correct version for you would be the last 2.x, which is version 2.7.0.128. You can download it from our website at this link (login required):

    https://www.flir.com/products/spinnaker-sdk/

    Thanks,
    Markus

  • Silvia DT

    Hello,

    I installed Spinnaker version 2.3.0.77 since the latest one give me problems with the version of the package qt5-default: it was required an higher version that, I think, ubuntu 18.04 is not able to support.Then I install the armhf version because of the arm architecture and ubuntu 18.04 32bit. In the folder there were armhf_focal and armhf_xenial, in this moment I install tha last one since it seems to support python 2.7. now I'm trying to use ROS with Spinnaker following https://www.flir.com/support-center/iis/machine-vision/application-note/using-ros-with-spinnaker/ . I run 'catkin_make' and this error occurs:

    ubuntu@ubuntu:~/catkin_ws$ catkin_make
    Base path: /home/ubuntu/catkin_ws
    Source space: /home/ubuntu/catkin_ws/src
    Build space: /home/ubuntu/catkin_ws/build
    Devel space: /home/ubuntu/catkin_ws/devel
    Install space: /home/ubuntu/catkin_ws/install
    ####
    #### Running command: "make cmake_check_build_system" in "/home/ubuntu/catkin_ws/build"
    ####
    ####
    #### Running command: "make -j4 -l4" in "/home/ubuntu/catkin_ws/build"
    ####
    [  5%] Built target spinnaker_camera_driver_gencfg
    [ 11%] Building CXX object flir_camera_driver/spinnaker_camera_driver/CMakeFiles/Camera.dir/src/camera.cpp.o
    In file included from /home/ubuntu/catkin_ws/src/flir_camera_driver/spinnaker_camera_driver/include/spinnaker_camera_driver/camera.h:32:0,
                     from /home/ubuntu/catkin_ws/src/flir_camera_driver/spinnaker_camera_driver/src/camera.cpp:25:
    /home/ubuntu/catkin_ws/src/flir_camera_driver/spinnaker_camera_driver/include/spinnaker_camera_driver/set_property.h:29:10: fatal error: Spinnaker.h: No such file or directory
     #include "Spinnaker.h"
              ^~~~~~~~~~~~~
    compilation terminated.
    flir_camera_driver/spinnaker_camera_driver/CMakeFiles/Camera.dir/build.make:62: recipe for target 'flir_camera_driver/spinnaker_camera_driver/CMakeFiles/Camera.dir/src/camera.cpp.o' failed
    make[2]: *** [flir_camera_driver/spinnaker_camera_driver/CMakeFiles/Camera.dir/src/camera.cpp.o] Error 1
    CMakeFiles/Makefile2:2119: recipe for target 'flir_camera_driver/spinnaker_camera_driver/CMakeFiles/Camera.dir/all' failed
    make[1]: *** [flir_camera_driver/spinnaker_camera_driver/CMakeFiles/Camera.dir/all] Error 2
    Makefile:140: recipe for target 'all' failed
    make: *** [all] Error 2
    Invoking "make -j4 -l4" failed

    ----

    I dont know how to fix it, taking into account that Spinnaker.h is in the directory /opt/spinnaker/include.

    thank you

    0
  • TDY_Markus
    Community team
    Great answers
    Expert (Gold)

    Hello Silvia,

    This is a difficult configuration, since Ubuntu 18.04 LTS is "Bionic Beaver" and we don't have Spinnaker SDK for this version in 32 bit.
    So first I wanted to ask if your current installation of Spinnaker is running fine? Do you get images from your camera in Spinview and our Acquisition command line example?

    Thanks,
    Markus

    0
  • Silvia DT

    Hello Markus,

    forget what I said last time because I change the configuration.

    The problem is the following:

    I have a Raspberry Pi4 that has to communicate with Matlab/Simulink for a project. To do that I flash the image directly from Matlab. This installed Raspbian Buster (debian 10 buster).

    Then:

    I have a FLIR usb3 camera connected to Raspberry. I installed Spinnaker version 2.3 since the latest versions are not compatible anymore and in particolar amrhf_xenial. Everything works and the camera takes photo.

    Now I need to install ROS melodic distribution on Raspberry, following Matlab documentation I can do that. The problem is that I'm not able to install the dependecies for the driver of the camera (sudo apt install ros-melodic-camera-info-manager ros-melodic-diagnostic-updater ros-melodic-dynamic-reconfigure ros-melodic-image-exposure-msgs ros-melodic-image-transport ros-melodic-nodelet ros-melodic-roscpp ros-melodic-sensor-msgs ros-melodic-wfov-camera-msgs) because this error occurs:

    E: Unable to locate package ros-melodic-camera-info-manager
    E: Unable to locate package ros-melodic-diagnostic-updater
    E: Unable to locate package ros-melodic-dynamic-reconfigure
    E: Unable to locate package ros-melodic-image-exposure-msgs
    E: Unable to locate package ros-melodic-image-transport
    E: Unable to locate package ros-melodic-nodelet
    E: Unable to locate package ros-melodic-roscpp
    E: Unable to locate package ros-melodic-sensor-msgs
    E: Unable to locate package ros-melodic-wfov-camera-msgs

    I think the problem is the operating system since your guide https://www.flir.com/support-center/iis/machine-vision/application-note/using-ros-with-spinnaker/ shows the installation for ubuntu 18.04.

    so I was wondering if there is a way to install these dependecies for Debian buster? what can I do?

    thank you

     

    0
  • TDY_Markus
    Community team
    Great answers
    Expert (Gold)

    Hello Silvia,

    I saw your other post in the forum. Glad that you have been able to proceed with using Ubuntu 18.04. I will reply to your questions in the other thread.

    Thanks,
    Markus

    0

Please sign in to leave a comment.

Powered by Zendesk