-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Unplug-Replug needed #314
Comments
Hello @afdaniele, this is a known firmware bug and also reported by issues 1086 and 1131. |
Thank you, I'll test it and keep you posted. |
@icarpis I came across the same unplug-replug problem and currently just unloading and reloading the uvcvideo kernel via modprobe works. I did have a look at the current code, I don't see any calls to _sens[stream].stop() and _sens[stream].close() in the destructor of base_realsense_node to stop and remove ownership of the stream. Do you think this is one of the reasons why the device segfaults (as seen in the kernel log message via dmesg) when trying to relaunch the ros node ? |
@lakshmankumar1993, I think that adding |
@icarpis Oh okay. Thanks for the reply. Btw, is there a way to use syncer with multiple queues instead of a single callback? I have a queue for each stream so that I can process them individually. So in case I wanted all the queues to be synchronized across all the streams, is there a way I can add multiple queues to this syncer ? |
Hi @lakshmankumar1993, the frame callback gets a |
@aangerma Yeah. That's what I ended up doing. Thanks. |
If a driver is restarted Realsense camera doesnt transmit depth anymore until you unplug and replug the camera. A workaround using hardware_reset from this issue was added: IntelRealSense#314
@icarpis Would you consider a PR for this? |
- Hardware reset and sleep for 10 seconds to make sure that the reset takes place successfully. - Using mutex and condition variables is not currently possible because of no support of device specific callbacks. - Documented in PR in the latest realsense repo: IntelRealSense/realsense-ros#455 - HW reset has been suggested as a solution in IntelRealSense/realsense-ros#314 - These are similar to the realsense dropouts we face on startup. - This has been tested on 3 different robots (B4, B5 and B7) by restarting mbot about 20 times for each robot and checking for realsense failure. - Increases robot software bringup time by about 10 seconds. - Required upgrading librealsense to 2.15.0-0~realsense0.83 to support hardware reset for multiple devices by @phil-marble
[Please Ignore - RealSense system comment] |
I am using a RealSense camera model D415 on Ubuntu 14.04 with ROS Indigo. I noticed that every time I stop the realsense node (i.e., run using
roslaunch realsense_ros_camera rs_rgbd.launch
) and I start it again, this is what I get. The node does not get frames from the camera. The only solution that I found so far is to unplug and replug the camera.The text was updated successfully, but these errors were encountered: