-
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
multiple camera issue #2814
Comments
Hi @taeyeonggim As you are using the align_depth parameter and not align_depth.enable, it looks as though you are using the ROS1 wrapper (Kinetic, Melodic, Noetic). Can you confirm if you are using ROS1 please? If you are using ROS1, which version of the RealSense SDK (librealsense) and RealSense ROS wrapper are you using? Because development of the ROS1 wrapper has ceased, the most recent librealsense / wrapper combination that should be used with it is librealsense 2.51.1 and wrapper 2.3.2 as the ROS1 wrapper has not been updated for newer librealsense versions such as 2.53.1 and 2.54.1. Can your three cameras be used with the ROS1 wrapper if they are launched from three separate ROS terminals instead of with a single launch, as described at the ROS wrapper documentation section linked to below. https://github.com/IntelRealSense/realsense-ros/tree/ros1-legacy#work-with-multiple-cameras For example:
|
@MartyG-RealSense, Thank you for your quick reply. 👍 I am having issues with running 3 at once on ROS1, but not when running them one after the other. Additionally, if we move to ROS2, will there be any issues with turning on multiple units at once? |
Have you tried the ROS1 launch file rs_multiple_devices.launch which supports three cameras, please?
The ROS2 wrapper has its own multiple camera launch file called rs_multi_camera_launch.py, though this one is designed for only two cameras. |
I've already tried running rs_multiple_devices.launch, and it didn't fix the topic not coming up. so I guess the only way to do that is to run the cameras sequentially, right? Is librealsense the reason this is happening? |
The librealsense SDK is not a limitation on the number of cameras, as it is possible to list as many as 20 cameras in the RealSense Viewer (though not have 20 cameras enabled simultaneously due to the limitations of a computer's resources). It can certainly have four cameras active simultaneously with a powerful computer specification such as an i7 processor. Your i9 computer is easily a strong enough specification to process three cameras. Problems with multiple camera setups do seem to occur more often in the ROS wrapper than they do in librealsense, such as the case at #1515 (comment) where six D435i cameras were being used and at least one would not publish topics. If the ROS1 wrapper is being used and it was installed from packages with the wrapper's Method 1 instructions then there is the potential for multicam problems as the ROS1 packages are based on the RSUSB backend, which is not ideal for use with multiple cameras. Building librealsense and the ROS wrapper separately from source code with the 'native backend' method (applying a patch script to the kernel and then building librealsense from source, followed by building the wrapper) would work better with multicam. |
Hi @taeyeonggim Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
ASAP 💨
Whenever I turn on the 3 cameras with the launch file below, the computer freezes, or
only 2 of the 3 cameras publish rostopic, and the other one doesn't publish topic even
though the rosnode is alive. Can I get some help ASAP?
For reference, the hardware spec is RTX3080 on an i9 10th Gen.
The text was updated successfully, but these errors were encountered: