-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
reset camera #2835
Comments
Hi @hfdlwt A C++ hardware reset script at IntelRealSense/librealsense#9287 (comment) will cycle through all attached cameras. If a specific camera in a set of multiple cameras needs to be reset then IntelRealSense/librealsense#5428 describes how to perform this in Python using a camera serial number. |
Thank you for your prompt reply @MartyG-RealSense ,Can the camera continue to work after hardware restart, or does it need to restart the launch file (realsense_camera manger node) |
Although a reset will disconnect the camera and then re-connect it, my understanding is that a current session will continue if reconnection is achieved within a time period of 5 seconds. If it takes longer than 5 seconds to re-establish the connection after disconnection then the connection 'times out' (hence the well known error message 'Frame didn't arrive within 5000'). A typical reset of the camera will complete within 3 seconds. It is certainly possible to reset the camera during a ROS launch without restarting the launch when using the initial_reset:=true parameter. |
Thanks again @MartyG-RealSense , Are you talking about manually restarting the camera? What I want is to automatically restart the camera through a trigger condition in the program. |
That code will automatically restart the camera when the script is launched. You can though nest a hardware_reset() instruction within an If code block so that if certain conditions are met then the reset command within the If condition is triggered. |
Hi @ggsd-ddup Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Hello everyone ! I have a question about multiple camera such as D435 and T265 , Someone knows how to restart one of the cameras when they are all running ?
The text was updated successfully, but these errors were encountered: