Introduction to Programming in C# for D400s
Hello,
I'm relatively new to programming with depth cameras (but I have experience with Java and C# in general) and I was wondering if there was any place where we could find either a list of all the commonly used methods/attributes of the D400 cameras or a basic tutorial to set up an application in Visual Studio (starting/ending a video stream, measuring distance traveled, etc.). I've looked through the GitHub and successfully ran all of the samples (except for some of them in the cookbook which resulted in some errors), but I'm still unsure of how to start with creating my own program. Thank you!
-
I researched your question extensively, and the best guide that I could find for building samples and applications in the C# wrapper is in the link below.
https://github.com/IntelRealSense/librealsense/issues/5022
The guide makes reference to the old SDK 2.19.1. Just change that for whatever current SDK version you are using. Also, whatever modern CMake version you are using should work okay.
The C# wrapper documentation has a basic Hello World script to test your development environment with.
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/csharp#hello-world
-
Sorry if I wasn't clear with my question, but I meant that I already generated and ran the samples that you've listed above; my question was more about understanding how the samples worked. For instance, what do lines such as this mean:
var list = ctx.QueryDevices();
or
var depthSensor = dev.QuerySensors()[0];
var sp = depthSensor.StreamProfiles
.Where(p => p.Stream == Stream.Depth)
.OrderByDescending(p => p.Framerate)
.Select(p => p.As<VideoStreamProfile>())
.First(p => p.Width == 640 && p.Height == 480);My main issue is that I'm unfamiliar with what the methods and attributes of the D415 are for (especially for instantiating objects like depthSensor) and I was wondering if there was any way to learn more about them. Thanks!
-
The link below leads to a documentation site that enables the functions of the RealSense SDK to be searched via menus at the top of the page. The information is drawn directly from the official documentation and arranged into a user friendly format with descriptions for individual functions.
https://unanancyowen.github.io/librealsense2_apireference/classes.html
For example, for querying devices:
https://unanancyowen.github.io/librealsense2_apireference/classrs2_1_1context.html
-
Yes, support questions about the Cubemos Skeleton Tracking SDK should be sent to Cubemos. You can also find general details about it at the link to Intel's Cubemos information page below:
Please sign in to leave a comment.
Comments
6 comments