berndpfrommer/flir_spinnaker_ros2

Image width/height and offset parameters not applied

Closed this issue · 0 comments

I have this in my blackfly_s.cfg file

# ---------- (reduce) sensor size and change offset
#
image_width int "ImageFormatControl/Width"
image_height int "ImageFormatControl/Height"

#(offset must come after image width reduction!)
offset_x int "ImageFormatControl/OffsetX"
offset_y int "ImageFormatControl/OffsetY"

And this in my blackfly_s.launch.py

'image_width': 1408,
'image_height': 1080,
'offset_x': 16,
'offset_y': 0,

but the settings don't apply.
There is no parameter setting log in the terminal output for these parameters and when running

ros2 run rqt_reconfigure rqt_reconfigure

the width, height, and offset parameters don't appear.
This works fine when using SpinView.
Am i doing something wrong?

I'm going to try adding the parameters settings manually in the source code as a temporary workaround with
CameraDriver::setInt