View my account

Introduction to Programming in C# for D400s

Comments

6 comments

  • MartyG

    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 

    0
    Comment actions Permalink
  • Glaceonw

    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!

    0
    Comment actions Permalink
  • MartyG

    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 

    0
    Comment actions Permalink
  • Glaceonw

    This looks useful, I will be sure to look into it now and follow up if need be. Thank you!

    0
    Comment actions Permalink
  • Glaceonw

    This is on sort of a separate note, but should I contact Cubemos or Intel for questions about their skeleton tracking SDK? I think I saw you refer other people to cubemos in other threads, but I thought I would check with you if you knew about it. 

    0
    Comment actions Permalink
  • MartyG

    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:

    https://www.intelrealsense.com/skeleton-tracking/ 

    0
    Comment actions Permalink

Please sign in to leave a comment.