Skip to content

Commit 70be7be

Browse files
committed
Resolving merge commits with master
2 parents 188c364 + 4977ee8 commit 70be7be

File tree

7 files changed

+140
-27
lines changed

7 files changed

+140
-27
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**System Description**
11+
Camera Name and Model:
12+
Operating System:
13+
Spinnaker Version:
14+
ROS Version:
15+
16+
***Computer details***
17+
Processor:
18+
RAM:
19+
20+
***Multiple Cameras Only***
21+
How is the triggering setup? Master/Slave or all slaves or all software triggered?
22+
23+
For USB 3.0 cameras:
24+
On same USB 3.0 bus or different buses?
25+
Is the USB 3.0 hub externally powered?
26+
27+
For Ethernet cameras:
28+
How busy is the network, does the system work in grayscale, at a lower resoultion (binning) and framerate?
29+
30+
**Do the cameras work with SpinView?**
31+
32+
**Describe the bug**
33+
A clear and concise description of what the bug is.
34+
35+
**Error Messages**
36+
Copy and paste your error messages here
37+
38+
**Screenshots**
39+
If applicable, add screenshots to help explain your problem.

CMakeLists.txt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
88
###
99
# camera Acquisition specific
1010
###
11-
#SET("OpenCV_DIR" "~/apps/opencv-2.4.13/")
1211
set(PROJECT_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/include" CACHE PATH "Project Include Directory")
13-
set(SPINNAKER_INCLUDE_DIR "/usr/include/spinnaker" CACHE PATH "Spinnaker Include Directory")
14-
set(SPINNAKER_LIB_DIR "/usr/lib" CACHE PATH "Spinnaker Libs Directory")
15-
# set(yaml-cpp_DIR "~/apps/yaml-cpp" CACHE PATH "yaml-cpp Directory")
1612
set(CUDA_USE_STATIC_CUDA_RUNTIME OFF)
1713

1814
find_package(catkin REQUIRED COMPONENTS
@@ -32,6 +28,8 @@ find_package(catkin REQUIRED COMPONENTS
3228
# Acquisition specific
3329
###
3430
# Find Packages
31+
find_package(Spinnaker REQUIRED)
32+
message("spinnaker lib : " ${Spinnaker_LIBRARIES})
3533
find_package(OpenCV REQUIRED)
3634
# use LibUnwind only for x86_64 or x86_32 architecture
3735
# do not use LibUnwind for arm architecture
@@ -76,15 +74,15 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86_64 OR x86_32)
7674
include_directories(
7775
${PROJECT_INCLUDE_DIR}
7876
${catkin_INCLUDE_DIRS}
79-
SYSTEM ${SPINNAKER_INCLUDE_DIR}
77+
SYSTEM ${Spinnaker_INCLUDE_DIRS}
8078
SYSTEM ${OpenCV_INCLUDE_DIRS}
8179
SYSTEM ${Boost_INCLUDE_DIR}
8280
${LibUnwind_INCLUDE_DIRS}
8381
)
8482

85-
link_directories( ${SPINNAKER_LIB_DIR} )
83+
link_directories( ${Spinnaker_LIBRARIES} )
8684

87-
set (LIBS ${LibUnwind_LIBRARIES} Spinnaker ${OpenCV_LIBS} ${Boost_GENERAL})
85+
set (LIBS ${LibUnwind_LIBRARIES} ${Spinnaker_LIBRARIES} ${OpenCV_LIBS} ${Boost_GENERAL})
8886

8987
endif(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86_64 OR x86_32)
9088
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES aarch64 OR arm)
@@ -97,14 +95,14 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES aarch64 OR arm)
9795
include_directories(
9896
${PROJECT_INCLUDE_DIR}
9997
${catkin_INCLUDE_DIRS}
100-
SYSTEM ${SPINNAKER_INCLUDE_DIR}
98+
SYSTEM ${Spinnaker_INCLUDE_DIRS}
10199
SYSTEM ${OpenCV_INCLUDE_DIRS}
102100
SYSTEM ${Boost_INCLUDE_DIR}
103101
)
104102

105-
link_directories( ${SPINNAKER_LIB_DIR} )
103+
link_directories( ${Spinnaker_LIBRARIES} )
106104

107-
set (LIBS Spinnaker ${OpenCV_LIBS} ${Boost_GENERAL})
105+
set (LIBS ${Spinnaker_LIBRARIES} ${OpenCV_LIBS} ${Boost_GENERAL})
108106

109107
endif(${CMAKE_SYSTEM_PROCESSOR} MATCHES aarch64 OR arm)
110108

README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,27 @@ master:
33
dev: [![Build Status](https://travis-ci.org/neufieldrobotics/spinnaker_sdk_camera_driver.svg?branch=dev)](https://travis-ci.org/neufieldrobotics/spinnaker_sdk_camera_driver)
44

55
# spinnaker_sdk_camera_driver
6-
76
These are the ros drivers for running the Pt Grey (FLIR) cameras that use the Spinnaker SDK. This code has been tested with various Point Grey Blackfly S (BFS) cameras.
87

8+
## Compatibility Matrix
9+
| Spinnaker | Architecture | Ubnuntu 16.04 Xenial +<br>ROS Kinetic | Ubnuntu 18.04 Bionic +<br>ROS Melodic | Ubnuntu 20.04 Focal +<br>ROS Noetic |
10+
|-----------|:------------:|:--------------------------------------:|:-------------------------------------:|:-----------------------------------:|
11+
| 1.17.0.23 | AMD64 | :heavy_check_mark: |:heavy_minus_sign: |:heavy_minus_sign: |
12+
| 1.17.0.23 | ARM64 | :heavy_check_mark: |:heavy_minus_sign: |:heavy_minus_sign: |
13+
| 1.24.0.60 | AMD64 | :heavy_check_mark: |:heavy_minus_sign: |:heavy_minus_sign: |
14+
| 1.24.0.60 | ARM64 | :heavy_check_mark: |:heavy_minus_sign: |:heavy_minus_sign: |
15+
| 2.0.0.147 | AMD64 | :heavy_check_mark: |:white_check_mark: |:heavy_minus_sign: |
16+
| 2.0.0.147 | ARM64 | :heavy_check_mark: | |:heavy_minus_sign: |
17+
| 2.2.0.48 | AMD64 | :heavy_minus_sign: |:heavy_check_mark: | |
18+
| 2.2.0.48 | ARM64 | :heavy_minus_sign: | | |
19+
| 2.3.0.77 | AMD64 | :heavy_minus_sign: | | |
20+
| 2.3.0.77 | ARM64 | :heavy_minus_sign: | | |
21+
22+
:heavy_check_mark: Tested
23+
:heavy_minus_sign: Not Applicable
24+
:white_check_mark: Reported to work
25+
:x: Known compatibility Issue
26+
927
## Getting Started
1028

1129
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
@@ -18,23 +36,25 @@ The pre-requisites for this repo include:
1836
* ros-kinetic-cv-bridge
1937
* ros-kinetic-image-transport
2038

21-
**Incase of x86_64 or x86_32 architecture, also install *libunwind-dev* **
39+
#### After installing spinnaker, Verify that you can run your cameras with SpinView.
40+
41+
#### For x86_64 or x86_32 architecture, install the following:
42+
* libunwind-dev
2243

2344
```bash
24-
# after installing spinnaker verify that you can run your cameras with SpinView
2545

2646
# after installing ros, install other pre-requisites with:
2747

2848
sudo apt install libunwind-dev ros-kinetic-cv-bridge ros-kinetic-image-transport
49+
```
2950

30-
# if you use arm64 (aarch64), install pre-requisites with:
31-
51+
#### For arm64 (aarch64) architecture, install pre-requisites with:
52+
```
3253
sudo apt install ros-kinetic-cv-bridge ros-kinetic-image-transport
33-
3454
```
3555

3656
### Installing
37-
To install the spinnaker drivers
57+
To install this spinnaker_sdk_camera_driver
3858
```bash
3959
mkdir -p ~/spinnaker_ws/src
4060
cd spinnaker_ws/src
@@ -51,12 +71,22 @@ Modify the `params/test_params.yaml` file replacing the cam-ids and master cam s
5171
```bash
5272
# To launch nodelet verison of driver, use #
5373

74+
<<<<<<< HEAD
5475
roslaunch spinnaker_camera_driver acquisition.launch
76+
=======
77+
roslaunch spinnaker_sdk_camera_driver acquisition.launch
5578

56-
# To launch node version of driver, use
79+
# To launch node version of driver, use #
80+
>>>>>>> master
5781

82+
roslaunch spinnaker_sdk_camera_driver acquisition_node.launch
83+
84+
<<<<<<< HEAD
5885
roslaunch spinnaker_camera_driver node_acquisition.launch
86+
=======
87+
>>>>>>> master
5988
# Test that the images are being published by running
89+
6090
rqt_image_view
6191
```
6292
## Parmeters

cmake/FindSpinnaker.cmake

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Find the Spinnaker library
2+
#
3+
# Spinnaker_FOUND - True if Spinnaker was found.
4+
# Spinnaker_LIBRARIES - The libraries needed to use Spinnaker
5+
# Spinnaker_INCLUDE_DIRS - Location of Spinnaker.h
6+
7+
unset(Spinnaker_FOUND)
8+
unset(Spinnaker_INCLUDE_DIRS)
9+
unset(Spinnaker_LIBRARIES)
10+
11+
find_path(Spinnaker_INCLUDE_DIRS NAMES
12+
Spinnaker.h
13+
PATHS
14+
/opt/spinnaker/include
15+
)
16+
find_library(Spinnaker_LIBRARIES NAMES Spinnaker
17+
PATHS
18+
/opt/spinnaker/lib
19+
)
20+
21+
if(NOT Spinnaker_INCLUDE_DIRS OR NOT Spinnaker_LIBRARIES)
22+
message(STATUS "Couldnt find Spinnaker 2.2.x. Checking lower versions")
23+
find_path(Spinnaker_INCLUDE_DIRS NAMES
24+
Spinnaker.h
25+
PATHS
26+
/usr/include/spinnaker/
27+
/usr/local/include/spinnaker/
28+
)
29+
find_library(Spinnaker_LIBRARIES NAMES Spinnaker
30+
PATHS
31+
/usr/lib
32+
/usr/local/lib
33+
)
34+
if(NOT Spinnaker_INCLUDE_DIRS OR NOT Spinnaker_LIBRARIES)
35+
message(STATUS "Couldnt find Spinnaker.")
36+
endif()
37+
endif()
38+
39+
if (Spinnaker_INCLUDE_DIRS AND Spinnaker_LIBRARIES)
40+
message(STATUS "Spinnaker found in the system")
41+
set(Spinnaker_FOUND 1)
42+
endif (Spinnaker_INCLUDE_DIRS AND Spinnaker_LIBRARIES)

params/stereo_camera_example.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
cam_ids:
2+
<<<<<<< HEAD
23
- 17197554
34
- 17197556
45
cam_aliases:
@@ -21,8 +22,9 @@ delay: 1.0
2122

2223
#Camera info message details
2324
distortion_model: plumb_bob
24-
image_height: 1024 #1536
25-
image_width: 1280 #2048
25+
image_height: 1024
26+
image_width: 1280
27+
2628
distortion_coeffs:
2729
- [-0.021141875266089592, -0.3733872931278025, 2.385982550579459, 3.2824571732099725]
2830
- [-0.021141875266089592, -0.3733872931278025, 2.385982550579459, 3.2824571732099725]
@@ -40,11 +42,14 @@ rectification_coeffs:
4042
projection_coeffs:
4143
- [913.700317, 0.000000, 953.448302, 0.000000, 0.000000, 1063.296631, 777.871993, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000]
4244
- [913.700317, 0.000000, 953.448302, 0.000000, 0.000000, 1063.296631, 777.871993, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000]
45+
<<<<<<< HEAD
4346

4447
flip_horizontal:
4548
- false
4649
- false
4750

4851
flip_vertical:
4952
- false
50-
- false
53+
- false
54+
=======
55+
>>>>>>> master

params/test_params.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
cam_ids:
2-
- 17197556
2+
- 17197559
33
cam_aliases:
44
- cam0
5-
master_cam: 17197556
5+
master_cam: 17197559
66
skip: 20
77
delay: 1.0
88

src/capture.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ void acquisition::Capture::load_cameras() {
204204
img_msgs.push_back(sensor_msgs::ImagePtr());
205205

206206
sensor_msgs::CameraInfoPtr ci_msg(new sensor_msgs::CameraInfo());
207+
207208
//int image_width = 0;
208209
//int image_height = 0;
209210
nh_pvt_.getParam("image_height", image_height_);
@@ -214,6 +215,7 @@ void acquisition::Capture::load_cameras() {
214215

215216
std::string distortion_model = "";
216217
nh_pvt_.getParam("distortion_model", distortion_model);
218+
217219
// distortion
218220
ci_msg->distortion_model = distortion_model;
219221
// binning
@@ -266,9 +268,7 @@ void acquisition::Capture::load_cameras() {
266268
}
267269

268270
cam_info_msgs.push_back(ci_msg);
269-
270271
cam_counter++;
271-
272272
}
273273
}
274274
if (!current_cam_found) ROS_WARN_STREAM(" Camera "<<cam_ids_[j]<<" not detected!!!");
@@ -283,10 +283,9 @@ void acquisition::Capture::load_cameras() {
283283
PUBLISH_CAM_INFO_ = true;
284284

285285
if (!EXTERNAL_TRIGGER_)
286-
ROS_ASSERT_MSG(master_set,"The camera supposed to be the master isn't connected!");
286+
ROS_ASSERT_MSG(master_set,"The camera supposed to be the master isn't connected!");
287287
}
288288

289-
290289
void acquisition::Capture::read_parameters() {
291290

292291
ROS_INFO_STREAM("*** PARAMETER SETTINGS ***");

0 commit comments

Comments
 (0)