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

PEAK_IPL_RETURN_CODE_ERROR #31

Open
PazAranyi opened this issue Feb 10, 2022 · 6 comments
Open

PEAK_IPL_RETURN_CODE_ERROR #31

PazAranyi opened this issue Feb 10, 2022 · 6 comments

Comments

@PazAranyi
Copy link

hello,

I tried to run the package and modify the configuration according to IDS cockpit but I keep getting the same error: "[/peak_cam] [ERROR] [1644514776.537789807]: [PEAK_CAM]: EXCEPTION: [Error-Code: 1 (PEAK_IPL_RETURN_CODE_ERROR) | Error-Description: error: type=InvalidParameterUtilx[-1009], module_id=9000, txt=Unknown formatId: 2953082225]"

Do you have any suggestions on what I am doing wrong?

rosrun peak_cam peak_cam_node
[/peak_cam] [ INFO] [1644514775.565282453]: Setting parameters to:
[/peak_cam] [ INFO] [1644514775.566156731]: camera_topic: /camera/image_raw
[/peak_cam] [ INFO] [1644514776.126806181]: Devices available:
[/peak_cam] [ INFO] [1644514776.126953135]: 0: IDS Imaging Development Systems GmbH U3-356xXCP-C (1409f49f81c5)
[/peak_cam] [ INFO] [1644514776.350713763]: [PEAK_CAM]: U3-356xXCP-C found
[/peak_cam] [ INFO] [1644514776.481808195]: [PEAK_CAM]: maxWidth '1920'
[/peak_cam] [ INFO] [1644514776.482513494]: [PEAK_CAM]: maxHeight '1200'
[/peak_cam] [ERROR] [1644514776.484229908]: [PEAK_CAM]: EXCEPTION: Error-Code: 12 (PEAK_RETURN_CODE_OUT_OF_RANGE) | Error-Description: Value = 1 must be equal or greater than Min = 288. : OutOfRangeException thrown in node 'Width' while calling 'Width.SetValue()' (file 'IntegerT.h', line 79)
[/peak_cam] [ERROR] [1644514776.484274092]: [PEAK_CAM]: Could not set all Parameters
[/peak_cam] [ INFO] [1644514776.511500836]: [PEAK_CAM]: U3-356xXCP-C connected
[/peak_cam] [ INFO] [1644514776.511781281]: [PEAK_CAM]: Acquisition started
[/peak_cam] [ERROR] [1644514776.537789807]: [PEAK_CAM]: EXCEPTION: [Error-Code: 1 (PEAK_IPL_RETURN_CODE_ERROR) | Error-Description: error: type=InvalidParameterUtilx[-1009], module_id=9000, txt=Unknown formatId: 2953082225]
[/peak_cam] [ERROR] [1644514776.537863960]: [PEAK_CAM]: Acquisition loop stopped, device may be disconnected!
[/peak_cam] [ERROR] [1644514776.537910507]: [PEAK_CAM]: No device reset available
[/peak_cam] [ERROR] [1644514776.537941038]: [PEAK_CAM]: Restart peak cam node!

@flynneva
Copy link
Collaborator

@PazAranyi it looks like you are trying to set the width to 1 pixel....which is too small for your device (minimum 288 pixels it looks like).

Try adjusting your width setting to something hire than 288 and see if that works.

@PazAranyi
Copy link
Author

Hi, thank you for your response.
it seems that there is still a problem and I don't understand its source:

[/peak_cam_node] [ INFO] [1644741014.826583268]: [PEAK_CAM]: maxWidth '1920'
[/peak_cam_node] [ INFO] [1644741014.827237464]: [PEAK_CAM]: maxHeight '1200'
[/peak_cam_node] [ INFO] [1644741014.831654107]: [PEAK_CAM]: ImageWidth is set to '1320'
[/peak_cam_node] [ INFO] [1644741014.837349604]: [PEAK_CAM]: ImageHeight is set to '960'
[/peak_cam_node] [ERROR] [1644741014.847262338]: [PEAK_CAM]: EXCEPTION: Error-Code: 11 (PEAK_RETURN_CODE_NOT_FOUND) | Error-Description: There is no node with the given name (GainAuto)!
[/peak_cam_node] [ERROR] [1644741014.847322030]: [PEAK_CAM]: Could not set all Parameters
[/peak_cam_node] [ INFO] [1644741014.873154424]: [PEAK_CAM]: U3-356xXCP-C connected
[/peak_cam_node] [ INFO] [1644741014.873416509]: [PEAK_CAM]: Acquisition started
[/peak_cam_node] [ERROR] [1644741014.899316326]: [PEAK_CAM]: EXCEPTION: [Error-Code: 1 (PEAK_IPL_RETURN_CODE_ERROR) | Error-Description: error: type=InvalidParameterUtilx[-1009], module_id=9000, txt=Unknown formatId: 2105376]
[/peak_cam_node] [ERROR] [1644741014.899382582]: [PEAK_CAM]: Acquisition loop stopped, device may be disconnected!
[/peak_cam_node] [ERROR] [1644741014.899433318]: [PEAK_CAM]: No device reset available
[/peak_cam_node] [ERROR] [1644741014.899475618]: [PEAK_CAM]: Restart peak cam node!
[/peak_cam_node] [ERROR] [1644741014.948955446]: [PEAK_CAM]: EXCEPTION: [Error-Code: 1 (PEAK_IPL_RETURN_CODE_ERROR) | Error-Description: error: type=InvalidParameterUtilx[-1009], module_id=9000, txt=Unknown formatId: 2105376]

@flynneva
Copy link
Collaborator

There is no node with the given name (GainAuto)!

@PazAranyi it looks like you are trying to set GainAtuo which is not a parameter name.

@PazAranyi
Copy link
Author

Thank you for your response.
But I didn't change any file, so I don't know where the code tries to set GainAtuo as a parameter.
Can you point out which file I should change?

@flynneva
Copy link
Collaborator

@PazAranyi all the parameters can be configured in the configuration file:

https://github.com/SherifN/peak_cam/blob/master/cfg/PeakCam.cfg

You might have to comment out GainAuto if your hardware doesn't support it.

This actually should be handled in the code so if the parameter is not able to be set it'll just continue on rather than failing but it's not right now. I'll make a follow up PR to fix this.

@hirenpatel1207
Copy link

hirenpatel1207 commented Apr 7, 2022

@flynneva I am using the U3-3561XLE-C-HQ (usb) camera.
Commenting out the line in .cfg file leads to this error

/.../catkin_ws/src/peak_cam/src/peak_cam.cpp: In member function ‘void peak_cam::Peak_Cam::reconfigureRequest(const Config&, uint32_t)’:
/home/hp/dji_m300/dji_ros_ws/src/peak_cam/src/peak_cam.cpp:389:35: error: ‘const Config’ {aka ‘const class peak_cam::PeakCamConfig’} has no member named ‘GainAuto’
  389 |     peak_params.GainAuto = config.GainAuto;

Then i commented out even this line in the .cpp file but the same error appears:

[ INFO] [1649342163.992852691]: Setting parameters to:
[ INFO] [1649342163.993181470]:   camera_topic: image_raw
[ INFO] [1649342164.426332542]: Devices available: 
[ INFO] [1649342164.426443453]: 0: IDS Imaging Development Systems GmbH U3-356xXLE-C (1409f4a04641)
[ INFO] [1649342164.745211633]: [PEAK_CAM]: U3-356xXLE-C found
[ INFO] [1649342164.754151803]: [PEAK_CAM]: maxWidth '1920'
[ INFO] [1649342164.755309273]: [PEAK_CAM]: maxHeight '1200'
[ INFO] [1649342164.759674501]: [PEAK_CAM]: ImageWidth is set to '1920'
[ INFO] [1649342164.766348545]: [PEAK_CAM]: ImageHeight is set to '1200'
[ERROR] [1649342164.772887046]: [PEAK_CAM]: EXCEPTION: Error-Code: 11 (PEAK_RETURN_CODE_NOT_FOUND) | Error-Description: There is no node with the given name (GainAuto)!
[ERROR] [1649342164.772921639]: [PEAK_CAM]: Could not set all Parameters
[ INFO] [1649342164.801861690]: [PEAK_CAM]: U3-356xXLE-C connected
[ INFO] [1649342164.802028514]: [PEAK_CAM]: Acquisition started
[ERROR] [1649342164.832259265]: [PEAK_CAM]: EXCEPTION: [Error-Code: 1 (PEAK_IPL_RETURN_CODE_ERROR) | Error-Description: error: type=InvalidParameterUtilx[-1009], module_id=9000, txt=Unknown formatId: 362076768]
[ERROR] [1649342164.832295377]: [PEAK_CAM]: Acquisition loop stopped, device may be disconnected!
[ERROR] [1649342164.832307349]: [PEAK_CAM]: No device reset available
[ERROR] [1649342164.832319205]: [PEAK_CAM]: Restart peak cam node!

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