-
Notifications
You must be signed in to change notification settings - Fork 43
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
Setting ROI parameters does not work when the system is started first time #100
Comments
Hi @kanwaljahan, the
The only issue I see here is that the camera doesn't stop and re-start image acquisition when the dynamic reconfigure parameters are changed during streaming. Is that the case? This actually sounds similar to this other issue that mentions problems with stopping/starting image acquisition when parameters are changed. |
Hi, @icolwell-as thank you for your response. My faced problem is ROI settings are not reflected in the first launch ever, settings are only reflected after relaunch while the camera is still on power. And according to my understanding problem arises because in mono_camera.cpp topic starts publishing avt_vimba_camera/src/mono_camera.cpp Line 49 in 31f04d4
avt_vimba_camera/src/mono_camera.cpp Line 65 in 31f04d4
I have seen similar behavior in vimbaviewr app also. In the app, some settings like exposure, and brightness can be adjusted while the camera is already recording but not ROI settings. I need to stop recording, adjust the ROI offsets, and then start the recording again. In my understanding, the same behavior is reflected in the launch process too, since the camera feed is already captured/ topics start to publish the ROI settings are not updated. I will explain a little about the use case just for background info, we have automated the collection of image data such that whenever a vehicle is started, installed PC + cameras get the power, and a bash script is called to start the launch file. So my short question is: What is the expected behavior about ROI settings on the first launch of mono_camera.launch? |
I have also tried hardcoding the roi offests in the .cfg file. But that does not help either because of topic publishing already before the call of dynamic reconfigure callback. And roi offsets can not be set once the camera starts recording |
Hi @kanwaljahan, lines 49 and 65 merely set the callbacks, the camera stream doesn't start until line 65 gets called, which then calls line 116 to handle the reconfigure. |
Hi,
We are using Mako G-223C for recording videos from running vehicles. The data needs to be recorded automatically from only a defined region of interest whenever the vehicle starts moving. The OS used is Linux 16.04 and the ROS-kinetic branch of avt_vimba_camera. Also checked with Linux 20.04 and ROS-Noetic. The problem is ROI settings are not reflected in the recorded videos on the first power of the system.
Any idea what is happening here? I see in https://github.com/astuff/avt_vimba_camera/blob/kinetic/cfg/AvtVimbaCamera.cfg that the sensor level for ROI settings is set to RECONFIGURE_RUNNING. Should it be RECONFIGURE_STOP or RECONFIGURE_CLOSE? I don't know the difference between latter two. Thanks!
The text was updated successfully, but these errors were encountered: