-
Notifications
You must be signed in to change notification settings - Fork 159
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
[Humble] ROS2 service call for DeviceReset #226
Comments
I added a service call to the driver to call the DeviceReset, but it's obviously not that easy:
Rebooting the camerat while keeping the driver running is tedious to develop, and in the end it's a band-aid to work around an issue without understanding the root cause of it. |
Heyya, sorry for not using the template, adding the information here. Is this behavior also observed when using SpinVIew? Describe the feature Useful logging output System details
|
Can you check out PR #227 ? It does reboot the camera. For me however that changes the frame rate because apparently some settings are not defaulted. But back to your problem. I see you have a very high resolution camera. Check the quality of your USB3 cable, and for errors via Is the camera externally triggered or free running? Is auto exposure switched on? If the exposure time is longer than 1 / fps the frame rate will drop, so beware of that. Disable auto exp and see if that fixes the problem. |
@berndpfrommer I will try out the PR, thanks for that. I do have a good quality usb3 cable, i was able to verify using syslogs that the usb connection was for super high speed or something of that sort. The camera is free running, exposure time is set much lower than 1/fps. |
You should see errors somewhere if the USB cable is bad. I only use FLIR cables b/c the cheap cables did not work for me. I don't ever recall a case where a FLIR camera would spontaneously change frame rate, except for exposure time related issue. Could the camera be overheating? Do you see the same drop in frame rate when you run on SpinView for a while? |
@berndpfrommer I am using flir cable as well,no overheating as well I do see the same issue with SpinView, but then, the application loads the ros2 driver and when there's this fps drop, I check again with SpinView, so I can't say if this drop wouldn't happen if I only ran SpinView. Also, this issue doesn't seem to be related to how long I run the system, I haven't been able to spot any pattern to when the issue pops up. Do you know where the SpinView saves exhaustive logs on Ubuntu? I found some logs in .config folder, but they seem to be useless, maybe if I catch this issue in SpinView and check the logs, it might shed some light on it. Thanks a lot for your help, really appreciate it! |
Hmm. You have a second camera to play with? Usually FLIR cameras are very reliable, but this could be a bad apple. Does the drop only happen on ROS2 driver startup, never while the driver has been running a while? Then it could be a race condition when the parameter setting is passed to the camera. Not sure exactly how that would be able to screw up the camera to the point that you need to power cycle, but that would be my hunch then. I remember when developing the ROS2 driver's user setting load feature that I screwed cameras up badly, to the point they needed power cycle and firmware reflash. Are you loading back user settings by any chance? I didn't even know about the SpinView logs. I already moved on to Ubuntu 24.04 (noble), so I haven't been running SpinView lately. |
Heyya, I do not have a second camera to play with, i will see if i can try something out there. the drop only happens at startup, never while the driver has been running a while. I am not loading user settings, i am explicitly setting each parameter, i will check if maybe the order in which I am setting them makes it more likely that this happens once in a while. I will test out the DeviceReset service call and update on this thread shortly. |
If this fps drop always happens at startup, then almost certainly it has to do with the ROS2 driver somehow setting one parameter wrong, or the SDK having a bug that screws up the parameter in the camera memory. |
Hi,
Thanks a lot for your work on this project.
I am using a blackfly_s and have been encountering an issue with the FPS suddenly dropping to ~2 on a start, out of the blue, while it is generally ~16. Whenever this issue happens, it also reflects in the SpinView application and the only solution i have found is to unplug the camera and plug it back in.
Hence, i wanted to check if i can reset the camera from code itself, i see that the spinnaker API lists DeviceReset, but i am unable to find it being used in this project, is there any other way i can accomplish this?
Thanks
The text was updated successfully, but these errors were encountered: