ros-drivers / pointgrey_camera_driver

ROS driver for Pt. Grey cameras, based on the official FlyCapture2 SDK.
128 stars 180 forks source link

Making sure camera properties are supported before enabling them #5

Closed jakebruce closed 10 years ago

jakebruce commented 10 years ago

The Point Grey Firefly FMVU-03MTM-CS does not support absolute value mode on some of its properties, so pointgrey_camera_driver was failing with an error every time dynamic reconfigure attempted to set a property. This issue likely appears on other cameras too, but the Firefly is the only hardware I've tested on.

This change fixes that problem, by taking advantage of the flags of the PropertyInfo struct to check which options are supported before setting the property.

mikepurvis commented 10 years ago

Thanks @jakebruce, sorry for the delay merging this!