Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't set single_pattern_exposure in dynamic config update #32

Open
Chandler opened this issue Oct 9, 2019 · 3 comments
Open

can't set single_pattern_exposure in dynamic config update #32

Chandler opened this issue Oct 9, 2019 · 3 comments

Comments

@Chandler
Copy link

Chandler commented Oct 9, 2019

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
Copy link
Contributor

JakubHazik commented Oct 21, 2019

We fixed this issue in pull request #34 . Problem was that single_patter_exposure 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
Copy link

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

@JakubHazik
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants