Hi Gonçalo,
Thanks so much for your reply! It sounds great that you will be working on this package, I would *definitely* use it! I'm doing experiments with my own 3D tracking system for mice, that I currently run in python, and I think it would be really fun to try to port it over to Bonsai (both for the speed and the nice concurrence management, and to easily share it with people):
https://www.biorxiv.org/content/10.1101/2020.05.21.109629v1
I cloned the new realsense branch and tried to run it in Bonsai, but I still had a few issues. Maybe you can help me get going? Here's what I managed to do:
1. The Intel.RealSense version that you had used in March is gone from nuget, so I coudn't build the solution. The Dll on nuget has changed it's name to "Intel.RealSenseWithNativeDll". I changed a few lines in packages.config and Bonsai.RealSense.csproj to load the new Dll instead.

2. This got rid of the missing assemblies, but the solution still wouldn't build because of a few errors, see here:
3. Just to test the system, I commented out all the functions with the errors, so only one function (RealSenseDevice) remained, and I tried to make a super simple test source:
4. This got rid of the errors, and I can build the solution. Bonsai launches:

5. But when I try to make a new project or load a saved one, Bonsai crashes with the error "An entry with the same key already exists" (I have attached the error log to this email):
Do you have any idea what the problem could be? If I can get VS to run the code, then I think I could slowly follow the c# wrapper examples in the realsense SDK to get the camera streams going and play around with porting my system from python to Bonsai.
In your realsense branch, it is building against bonsai.core 2.4 and net45, my bonsai is the most recent (bonsai 2.5.1 and net 452) -- is that a problem? Do I need to update the realsense package for this as well?
Thanks so much for your help!
Best, Christian
--
Christian L. Ebbesen, PhD
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Hey Christian,
I've been slowly chipping at this from March, unfortunately didn't have time yet to clean-up the solution but I've pushed the current working state here:
Not all features are available but should give you a working depth stream using the Intel.Realsense package.
You do have to build it from source using that branch, but you can run it directly from visual studio. The cleanup and publishing will be on my todo list with high priority from January next year (in case I don't get time to do it before).
Hope this helps.