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

reset camera #2835

Closed
ggsd-ddup opened this issue Aug 2, 2023 · 7 comments
Closed

reset camera #2835

ggsd-ddup opened this issue Aug 2, 2023 · 7 comments
Labels

Comments

@ggsd-ddup
Copy link

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 ?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Aug 2, 2023

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.

@ggsd-ddup
Copy link
Author

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)

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Aug 2, 2023

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.

@ggsd-ddup
Copy link
Author

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.

@MartyG-RealSense
Copy link
Collaborator

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.

@MartyG-RealSense
Copy link
Collaborator

Hi @ggsd-ddup Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

No branches or pull requests

2 participants