photoneo / phoxi_camera

ROS Package for PhoXi Scanner/Camera. If you like us, STAR US! :P
MIT License
44 stars 32 forks source link

can't set `single_pattern_exposure` in dynamic config update #32

Open Chandler opened 4 years ago

Chandler commented 4 years ago

when running roslaunch phoxi_camera.launch I see this warning

[ WARN] [1570650590.054362145]: Can not update Single Pattern Exposure parameter in dynamic reconfigure, set default value from config.
[ WARN] [1570650590.630433461]: Reconfigure callback failed with exception vector::_M_range_check: __n (which is 2) >= this->size() (which is 0):

However when I change init_from_config to be true, in phoxi_camera.yaml the warning becomes an error

terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 2) >= this->size() (which is 0)
[phoxi_camera-2] process has died [pid 31562, exit code -6, cmd /home/chandler/ros_ws/devel/lib/phoxi_camera/phoxi_camera __name:=phoxi_camera __log:=/home/chandler/.ros/log/1c1d2994-eace-11e9-b48a-74e5f9f2cb2d/phoxi_camera-2.log].
log file: /home/chandler/.ros/log/1c1d2994-eace-11e9-b48a-74e5f9f2cb2d/phoxi_camera-2*.log

the error is caught and handled in initFromPhoXi() but not in the initFromConfig code path

the underlying problem seems to be that the single_pattern_exposure value is not passing some consistency check with some other value, I couldn't track down the code that was throwing the error to determine what the specific problem is.

The result here is that I cannot use init_from_config: true

================================= Phoxi Scanner firmware: 1.1.67 Phoxi Control software: 1.2.7 phoxi_camera: master

JakubHazik commented 4 years ago

We fixed this issue in pull request #34 . Problem was that _single_patterexposure setting is not supported by the 1.1.x firmware. You can checkout to devel branch to use this fix. Nevertheless we strongly recommend you to update firmware of the scanner to prevent possible issues. Especialy when you use 1.2.x version of PhoXi Control for 1.1.x scanner. To update firmware, please contact Photoneo support at support@photoneo.com, they will help you in a short time.

fellen88 commented 4 years ago

I met the same problem. I want to update the firmware. But I don't know how to update firmware of my scanner.

JakubHazik commented 4 years ago

If you want to update firmware, please "Raise your ticket" on Photoneo Support page https://www.photoneo.com/support/ or send email to support@photoneo.com directly.