librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

8 RS400 cameras on one Intel NUC

Open maciekd opened this issue 8 years ago • 9 comments

Required Info
Camera Model D400
Firmware Version 05.08.09.00
Operating System & Version Ubuntu 16
Kernel Version (Linux Only) 4.4.0-116-generic
Platform Intel NUC
SDK Version 2.10.0 }

We've been successfully running 7 R200 cameras on one NUC for around a year. We plan on migrating our system to the new RS400 cameras.

We use rather low framerates and resolution on most cameras so bandwidth is not an issue. We use powered hubs in order to power all cameras sufficiently. Once we fixed all the kinks this setup worked very well.

We plan on running the same setup but with RS400 cameras (a mix of RS415 and RS435). We know that the new cameras use more power but since our hubs are externally powered we hope everything should work well.

Just wanted to check this setup seems plausible with the new cameras?

maciekd avatar Feb 23 '18 10:02 maciekd

Hi @maciekd Our CTO group has previously published results of running 4 cameras: LinkedIn link I can confirm that there are no hard software limitations to it, however, working with multiple devices involves many practical engineering challenges. We will do our best to assist.

dorodnic avatar Feb 23 '18 12:02 dorodnic

@maciekd Would you be able to share your hub setup and a bit more about how you connect your cameras to the NUC? Thanks!

mhkabir avatar Feb 23 '18 16:02 mhkabir

Out setup was for the R200 cameras. We used two four-port USB hubs. Not powered. Tree cameras in each hub and one camera directly in the NUC. The R200 cameras use about 0.3A, so we used 0.9A per hub/NUC port (which is exactly the spec limit for USB 3).

More than half of the 10.000 autonomous flights we did in 2017 where using this setup. Might be hard to see computer details but here is some video: https://www.youtube.com/watch?v=jmZi3Jclo-w

The RS400 series use around twice the power (to the best of our knowledge) so powered hubs will probably be a must.

maciekd avatar Feb 26 '18 13:02 maciekd

@maciekd Thanks! Looks great! Off topic, but I'm curious - how do you deal with the GPS interference from the R200s USB3 bus?

mhkabir avatar Feb 27 '18 02:02 mhkabir

GPS interference is a big issue. There's no foolproof answer but generally:

  1. Move the GPS as far away as possible.
  2. Shield the USB connectors, USB hubs, USB cables and cameras (in that order).

maciekd avatar Feb 27 '18 07:02 maciekd

Just wanted to let you guys now that we're now running 7 RS400 cameras on an Intel NUC successfully. We still have issue #1213 but other that that it seems to be working very nicely. Superb coverage.

Here's a video of our UI running with the new cameras (almost 100% coverage!): https://www.dropbox.com/s/kavbyhxwkxy7hlj/depth%202.0.mov?dl=0

maciekd avatar Mar 02 '18 14:03 maciekd

Very cool. One observation: It does look you are plotting them as depth-maps in 3D rather than calculating the point-clouds and then rotating them and adding them to 3D space. The reason I suspect this is the case is that you should not see the hexagonal pattern in the far walls (unless you really are in a hexagonal room) or the issues with overlaps, if you first convert each camera to a 3D point cloud and then rotate and add them. Also, I presume this was low resolution of VGA or lower? You will get best depth with higher resolution, but of course that becomes an issue for the USB bandwidth, which currently limits us to 4x cameras of depth+color at VGA on a single USB3 HUB. The RealSense team is working on adding HW sync and compression that will allow more cameras to operate at full resolution.

The way to calculate the point-cloud (for others if not for you) is the following. x=depth*(xin-ppx)/fx; y=depth*(yin-ppy)/fy; z=depth; where xin and yin are the (x,y) coordinates of the depth-map points. ppx, ppy, fx, fy are intrinsic parameters you can query from the device.

agrunnet avatar Mar 02 '18 22:03 agrunnet

Super, thanks for the tips! Will have a look at this.

We're running at low resolution, yes. In our application we have no use for higher res.

maciekd avatar Mar 05 '18 08:03 maciekd

HI @maciekd , could your share your current setup for multiple d400 cameras? I am going to write an application working with 6 cameras and stream the depth data via websocket. I have done some research, I know it has to be done on Linux. However I am new to it. I would be very grateful if you could offer some suggestions that which language you are using etc. Thanks a millions!!!!

ghost avatar Apr 23 '18 07:04 ghost