Comments (6)
So far we have only tested this on Kinetic, so not sure about issues with Melodic. However, I believe Melodic comes with Opencv 3.x, so if your error message shows opencv4 it could be a conflict with a version of Opencv you installed separately from ROS.
Also we haven't tried this code with the Chameleon model, but in theory it should be able to work with any camera that works with Spinnaker's SpinView app.
Please paste your error messages here so we might see what is going on...
from spinnaker_sdk_camera_driver.
FYI, I confirmed this code can work on ROS Melodic using a FLIR camera.
from spinnaker_sdk_camera_driver.
FYI, I confirmed this code can work on ROS Melodic using a FLIR camera.
Hi @shahvi and @ayuguchi ,
I cannot get this working on Melodic. Here is my error:
`SUMMARY
PARAMETERS
- /acquisition_node/binning: 1
- /acquisition_node/cam_aliases: ['cam0']
- /acquisition_node/cam_ids: [18012444]
- /acquisition_node/color: False
- /acquisition_node/delay: 1.0
- /acquisition_node/distortion_coeffs: [[-0.021141875266...
- /acquisition_node/distortion_model: plumb_bob
- /acquisition_node/exposure_time: 0
- /acquisition_node/frames: 3400
- /acquisition_node/image_height: 1536
- /acquisition_node/image_width: 2048
- /acquisition_node/intrinsic_coeffs: [[1886.9232141485...
- /acquisition_node/live: False
- /acquisition_node/live_grid: False
- /acquisition_node/master_cam: 18012444
- /acquisition_node/max_rate_save: False
- /acquisition_node/projection_coeffs: [[913.700317, 0.0...
- /acquisition_node/rectification_coeffs: [[1.0, 0.0, 0.0, ...
- /acquisition_node/save: False
- /acquisition_node/save_path: ~
- /acquisition_node/save_type: bmp
- /acquisition_node/skip: 20
- /acquisition_node/soft_framerate: 30
- /acquisition_node/target_grey_value: 0
- /acquisition_node/time: False
- /acquisition_node/to_ros: True
- /acquisition_node/utstamps: False
- /rosdistro: melodic
- /rosversion: 1.14.3
NODES
/
acquisition_node (nodelet/nodelet)
vision_nodelet_manager (nodelet/nodelet)
auto-starting new master
process[master]: started with pid [31628]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 53b0ceae-7ba3-11ea-9de2-94e6f7c21e33
process[rosout-1]: started with pid [31639]
started core service [/rosout]
process[vision_nodelet_manager-2]: started with pid [31646]
process[acquisition_node-3]: started with pid [31647]
[ INFO] [1586575200.930454169]: Initializing nodelet with 8 worker threads.
[ INFO] [1586575200.974120641]: Initializing nodelet
[ INFO] [1586575200.974997940]: [ OK ] USB memory: 1000 MB
[ INFO] [1586575200.975096490]: *** PARAMETER SETTINGS ***
[ INFO] [1586575200.975140196]: ** Date = 20200411
[ INFO] [1586575200.975602631]: Save path set via parameter to: /home/lifeline
[ INFO] [1586575200.975632901]: Camera IDs:
[ INFO] [1586575200.976008678]: 18012444
[ INFO] [1586575200.976343571]: Camera Aliases:
[ INFO] [1586575200.976360056]: 18012444 >> cam0
[ INFO] [1586575200.977003973]: Unique time stamps for each camera: false
[ INFO] [1586575200.977330360]: color set to: false
[ INFO] [1586575200.977634905]: Exporting images to ROS: true
[ INFO] [1586575200.977907535]: Showing live images setting: false
[ INFO] [1586575200.978214523]: Showing grid-style live images setting: false
[ INFO] [1586575200.978519801]: Max Rate Save Mode: false
[ INFO] [1586575200.978795673]: Displaying timing details: false
[ INFO] [1586575200.979066652]: No. of images to skip set to: 20
[ INFO] [1586575200.979399505]: Init sleep delays set to : 1.00 sec
[ WARN] [1586575200.979696647]: 'fps' Parameter not set, using default behavior: fps=20.00
[ INFO] [1586575200.979981402]: 'exposure_time'=0, Setting autoexposure
[ INFO] [1586575200.980326307]: 'target_grey_value'=0, Setting AutoExposureTargetGreyValueAuto to Continuous/ auto
[ INFO] [1586575200.980645617]: Binning set to: 1
[ INFO] [1586575200.980946484]: Using Software rate control, rate set to: 30
[ INFO] [1586575200.981313674]: Saving images set to: 0
[ INFO] [1586575200.981679313]: Camera Intrinsic Paramters:
[ INFO] [1586575200.981903821]: 1886.923214 0.000000 604.721488 0.000000 1886.666877 493.477267 0.000000 0.000000 1.000000
[ INFO] [1586575200.982285837]: Camera Distortion Paramters:
[ INFO] [1586575200.982308804]: -0.021142 -0.373387 2.385983 3.282457
[ INFO] [1586575200.982679390]: Camera Rectification Paramters:
[ INFO] [1586575200.982750023]: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000
[ INFO] [1586575200.983189278]: Camera Projection Paramters:
[ INFO] [1586575200.983223830]: 913.700317 0.000000 953.448302 0.000000 0.000000 1063.296631 777.871993 0.000000 0.000000 0.000000 1.000000 0.000000
[ INFO] [1586575200.983234622]: Camera coeffs provided, camera info messges will be published.
[ INFO] [1586575200.983330352]: Creating system instance...
[ INFO] [1586575200.985263724]: Retreiving list of cameras...
[ INFO] [1586575203.423048827]: Numer of cameras found: 1
[ INFO] [1586575203.423160470]: Cameras connected: 1
[ INFO] [1586575203.423359704]: -18012444
[ INFO] [1586575203.498812230]: Dynamic Reconfigure: Level : 4294967295
[ INFO] [1586575203.499843281]: *** FLUSH SEQUENCE ***
[ INFO] [1586575203.499872748]: Initializing cameras...
[ INFO] [1586575204.268089470]: Deinitializing cameras...
[ INFO] [1586575204.272803693]: All cameras deinitialized.
[ INFO] [1586575206.273022376]: Initializing cameras...
[FATAL] [1586575206.478705421]: Error: Spinnaker: GenICam::OutOfRangeException= Value = 1 must be equal or greater than Min = 2. : OutOfRangeException thrown in node 'BinningHorizontal' while calling 'BinningHorizontal.SetValue()' (file 'IntegerT.h', line 79) [-2002]
[ WARN] [1586575206.478737825]: Most likely cause for this error is if your camera can't support color and your are trying to set it to color mode
[FATAL] [1586575206.661764244]: Failed to load nodelet '/acquisition_nodeof type
acquisition/capture_nodeletto manager
vision_nodelet_manager'
terminate called after throwing an instance of 'Spinnaker::Exception'
what(): Spinnaker: GenICam::AccessException= Node is not writable. : AccessException thrown in node 'TriggerSoftware' while calling 'TriggerSoftware.Execute()' (file 'CommandT.h', line 61) [-2006]
[acquisition_node-3] process has died [pid 31647, exit code 255, cmd /opt/ros/melodic/lib/nodelet/nodelet load acquisition/capture_nodelet vision_nodelet_manager __name:=acquisition_node __log:=/home/lifeline/.ros/log/53b0ceae-7ba3-11ea-9de2-94e6f7c21e33/acquisition_node-3.log].
log file: /home/lifeline/.ros/log/53b0ceae-7ba3-11ea-9de2-94e6f7c21e33/acquisition_node-3*.log
[vision_nodelet_manager-2] process has died [pid 31646, exit code -6, cmd /opt/ros/melodic/lib/nodelet/nodelet manager __name:=vision_nodelet_manager __log:=/home/lifeline/.ros/log/53b0ceae-7ba3-11ea-9de2-94e6f7c21e33/vision_nodelet_manager-2.log].
log file: /home/lifeline/.ros/log/53b0ceae-7ba3-11ea-9de2-94e6f7c21e33/vision_nodelet_manager-2*.log
`
Any help would be greatly appreciated!
from spinnaker_sdk_camera_driver.
@SlouchyCat I recommend before starting to run a camera on this repo, you should confirm to work it through Spinview.
from spinnaker_sdk_camera_driver.
@SlouchyCat I recommend before starting to run a camera on this repo, you should confirm to work it through Spinview.
It is working in Spinview. Im using Blackfly S BFS-U3-13Y3C. Can u also post your camera model for the benefit of others?
from spinnaker_sdk_camera_driver.
I got it to work by simply programming a driver from scratch for my Blackfly S BFS-PGE-16S2C GigE. My model returns the device id instead of the serial number for example, that was one of the bugs and I needed some things differently implemented anyway.
Your error was caused by the combination of binning (1 or 2) and the pixel format. On my model binning 1 works only for 1 channel format (mono) and ISP needs to be enabled. Binning 2 for everything else...
from spinnaker_sdk_camera_driver.
Related Issues (20)
- ROS publish rate is significantly below camera framerate HOT 9
- Cannot launch node as normal user, but can launch as root HOT 5
- Unable to execute trigger. Aborting... HOT 5
- Cannot launch node of type [spinnaker_sdk_camera_driver/acquisition_node] HOT 2
- First frame ID was not zero./Error: Spinnaker: GenIcam::OutofRangeException = Value = 1 must be equal or greater than 2 HOT 12
- ASSERTION FAILED Error while launch HOT 22
- Image incomplete with image status 9.
- Jetson AGX Xavier - Unable to capture synchronised shutter using master configuration HOT 1
- Software triggering of BFS camera's using timestamp value HOT 2
- Share pip wheels for spinnaker SDK 2.2.0.48
- Where to find trigger_msgs package? HOT 3
- Jetson Xavier turns off when using two cameras (in external triggering mode)
- Unable to set PixelFormat to BGR8 HOT 1
- Failed waiting for EventData on NEW_BUFFER_DATA event. [-1011]
- Failed to load nodelet '/acquisition_node`
- Failing to Launch node in docker container HOT 2
- Cannot Trigger Flir Blackflys USB3 Cameras since transger to noetic driver
- Failed to load nodelet '/acquisition_node` of type `acquisition/Capture` to manager `vision_nodelet_manager'
- Recording actual timestamp value at which image captured
- catkin_make fails due to opencv error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spinnaker_sdk_camera_driver.