Spinnaker ROS Driver
- ROS
- The Spinnaker SDK found at [FLIR]((https://www.flir.com/products/spinnaker-sdk/?vertical=machine+vision&segment=iis). This repository has been tested with SDK version 2.7.0. We currently do not support SDK version 3.0.0 due to its lack of support for RG8 to BGR8 image conversions.
- Navigate to the download directory, unzip the folder, navigate into the folder and run:
./install_spinnaker.sh
- The AMRL shared library amrl_shared_lib and AMRL configuration reader config_reader. NOTE that both are installed during submodule initialization in the Build instructions by default.
- Install dependencies:
sudo apt install liblua5.1-0-dev
-
In the terminal source your ROS install
source /opt/ros/noetic/setup.bash
-
Navigate to the
spinnaker_ros_interface
directory. -
Initialize the submodules:
git submodule update --init
-
Run
make
You can run the node manually from the command line or use roslaunch.
Before running the node you must start a roscore
in another terminal.
- Edit the default config file
config/blackfly-s.lua
, or create your own camera config file - Run
./bin/spinnaker_ros_interface
to run with the defaults - Run
./bin/spinnaker_ros_interface --config <file.lua>
to run with the specified config file - Run
./bin/spinnaker_ros_interface __name:=<node_name>
to run with user specified ROS node name - required when running two or more nodes
From the spinnaker_ros_interface
directory add the package to the ROS_PACKAGE_PATH
so roslaunch will be able to find it:
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:`pwd`
- Run
roslaunch spinnaker_ros_interface spinnaker_ros_interface.launch
to run with the defaults - Run
roslaunch spinnaker_ros_interface spinnaker_ros_interface.launch camera_config:=<config_file.lua>
to run with the specified config file - Run
roslaunch spinnaker_ros_interface spinnaker_ros_interface.launch node_name:=<unique_node_name>
to run with user specified ROS node name - required when running two or more nodes
Note that users who are familiar with launch files can edit these parameters in the launch file itself and take advantage of the control/flexibility that roslaunch gives users.
The SDK provides a GUI with which you can verify camera connectivity and find information like camera serial number.
- Navigate to the Spinnaker binary directory
cd /opt/spinnaker/bin
- Run SpinView application
./SpinView
In order to configure synchronized capture see this link