View my account

Configuration change between d415 and d435 camera | C#

Comments

66 comments

  • MartyG

    Ok, what is the difference please between your networked computer and the other computer that it worked on?  Is the other computer a non-networked computer with the SDK running locally on the computer?

    0
    Comment actions Permalink
  • Thomas Chenus33

    The computer running is under Windows 10, with the latest version of the SDK. Today I'm on a server running Windows server 2012 R2 with the SDK version Intel.RealSense.SDK-WIN7-2.33.1.1360.

    0
    Comment actions Permalink
  • Thomas Chenus33

    And both are connected to the same network

    0
    Comment actions Permalink
  • MartyG

    I read through the case again from the start and was reminded that you are using C#.  Most of the other small number of cases who have experienced this DLL exception with RealSensed.dll were also using C#, so your case is similar to theirs in that respect.

    I guess that the version of your project that was running fine on your networked Windows 10 machine is also a C# project if you are using the same code.

    It looks as though you were able to successfully run the RealSense Viewer on your Windows Server R2 2012 machine and see the camera image, and that the problem is when you try to use the camera with your own project.  Is that correct please?

    0
    Comment actions Permalink
  • Thomas Chenus33

    Yes exactly 

    0
    Comment actions Permalink
  • Thomas Chenus33

    On this link : https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_win7.md

    At the end I show the message : The binaries supporting Win7 differ from ones supporting Win10. When building on Win7, CMake will automatically generate binaries for Win7. You can also build for Win7 from Win10 by adding -DFORCE_WINUSB_UVC=true to CMake flags. Signed drivers are still required when building from source (can be extracted from the Win7 installer and freely redistributed)

    Maybe that's where the problem is. But I've never used CMake to run my program before.

    0
    Comment actions Permalink
  • Thomas Chenus33

    I come back in 1h30, I go eat.Thx

    0
    Comment actions Permalink
  • MartyG

    My understanding of the instructions is that CMake can be used to build the SDK for Win7 from source instead of using the pre-built version installed with the Windows 7 Installer program.

    Building from source is usually a good option when you are running the SDK on an "exotic" setup whose hardware or software deviates from the average Windows 7 setup that the SDK would have been tested with.  The fact that the RealSense Viewer works fine though would seem to suggest that the pre-built version installed with the Windows 7 Installer is stable enough on your Windows Server R2 2012 setup.

    It suggests to me that the problem is in the way that the DLL libraries are linked in the self-made project.  I could not find any references about developing your own projects in the Win7 RealSense SDK though, unfortunately. 

    0
    Comment actions Permalink
  • Thomas Chenus33

    I think I figured out where the problem was coming from. I had created my realsense2.dll file from my windows10 computer with the librealsense example code. I will try to regenerate it by running the example code on windows 7.

    0
    Comment actions Permalink
  • MartyG

    Given that the instructions on building from source say that a special CMake instruction is needed for building for Win7 from a Windows 10 machine, your theory sounds very reasonable.  I look forward to your test results!

    0
    Comment actions Permalink
  • Thomas Chenus33

    Okay, I think the problem did come from there. I copied the realsense2.dll file from the path "C:\Program Files (x86)\Intel RealSense SDK 2.0 (Win7)\bin\x64", which is the base path where the SDK goes. But now I have a new problem, which I've never seen before :

    The message is : " impossible to find the input point 'rs2-get-options-list' into the DLL 'realsense2' "

    0
    Comment actions Permalink
  • MartyG

    Have you got both realsense2.dll and Intel.RealSense.dll in the location where your project is launched from, please?

    0
    Comment actions Permalink
  • Thomas Chenus33

    Yes. But here I just put Intel.Realsense.dll (it's good syntax, not Intel.RealSense.dll or Intel.RealSensed.dll) which was in the same directory as realsense2.dll I don't know if this should fix my problems, but I have a feeling it's an older version. Because of this I have a lot of basic functions that are not recognized anymore !

    0
    Comment actions Permalink
  • Thomas Chenus33

    And yes before realsense2.dll and Intel.RealSensed.dll was in the Debug folder

    0
    Comment actions Permalink
  • MartyG

    My memory of C# programming (I use C# regularly in the Unity game creation engine) is that if a command is highlighted in red like that then it can indicate that it is not being found by the Using instruction.  

    0
    Comment actions Permalink
  • Thomas Chenus33

    Yes, he doesn't know those instructions anymore! Like it doesn't exist in Intel.Realsense.dll. But I checked and I used IntelRealSensed.dll before and it worked. So I came back as before with this IntelRealSensed.dll dll, but I don't understand the error : " impossible to find the input point 'rs2-get-options-list' into the DLL 'realsense2' "

    I think if this problem can be resolved my program will worked

    0
    Comment actions Permalink
  • MartyG

    Sorry for asking, but is there a particular reason why the program must be used with Windows Server R2 2012 if you also have the ability to successfully use the program on a Windows 10 machine that is connected to the network?

    0
    Comment actions Permalink
  • Thomas Chenus33

    The goal is to make the camera communicate with the program of a robot running on the server, today I don't have a computer for the robot but only these servers.

    I'd like to succeed without having to add a computer. I think it's possible considering how much we've done today, compared to last week when I didn't even have video feedback on the viewer ^^'

    0
    Comment actions Permalink
  • MartyG

    I considered very carefully about how to proceed with this case.  I think it would be helpful to bring in a RealSense support manager for advice.  @... could you help Thomas to work out how to get his self-created project to work with the Windows 7 version of the RealSense SDK please?  Thanks!

    0
    Comment actions Permalink
  • Thomas Chenus33

    Ok thanks Marty, I'm stuck with the server for now, I'm waiting for Jesus Garcia's answer. I hope you can help me Jesus :) 

    0
    Comment actions Permalink
  • Thomas Chenus33

    Hello Marty,

    I went back to the Intel.Realsense.dll, like I told you 8 messages ago. I think it's the one that should be executed in my program as I'm on a win7 SDK.
    As you can see in the screen shots (8 messages ago) I had a lot of things that are not recognized, like this one is older. I managed to set the errors for most of the functions, which were often syntax errors. But I still have two unrecognized functions and I can't find the correct syntax or equivalent.

    I think for "colorizer.Process<VideoFrame>" it's a syntaxe error like others one, but for "ThresholdFilter" I need to found the equivalent. May be you can help me for this Marty ? 

    0
    Comment actions Permalink
  • MartyG

    I hope that the script in the link below that uses <videoframe> will be useful to you for the <videoframe> error.

    https://github.com/IntelRealSense/librealsense/issues/3446#issuecomment-471894096 

    Another approach is here:

    https://github.com/IntelRealSense/librealsense/issues/5017 

     

    0
    Comment actions Permalink
  • Thomas Chenus33

    The good way to write this with the win7 DLL is :

    Thanks for the link :)

    0
    Comment actions Permalink
  • Thomas Chenus33

    And for the ThresholdFilter do you have an idea ? Because with this filter I can change the min/max value of depth, and it's realy important for my project ...

     

    0
    Comment actions Permalink
  • MartyG

    I thought you had already written a C# threshold filter routine in another case.

    https://support.intelrealsense.com/hc/en-us/community/posts/360039445773/comments/360010898533 

    0
    Comment actions Permalink
  • Thomas Chenus33

    Yes, I know. But precisely this doesn't work anymore, because it doesn't recognize the ThreasholdFilter function anymore! I think it doesn't exist in this version or is called differently. Because all calls to this ThreasholdFilter function are no longer recognized in my project.

    0
    Comment actions Permalink
  • MartyG

    Have you altered the ThresholdFilter code since you wrote that previous routine, please?  I note that you call the ThresholdFilter the ThreasholdFilter here, so just wanted to check whether you had renamed the commands in your code.

    I did further extensive research but wasn't able to find anything that indicated that Windows 7 should affect post-processing commands.  

     

    0
    Comment actions Permalink
  • Thomas Chenus33

    No, I didn't change anything about that part. It's since I switched to the server with the win7 SDK and the associated DLL that it doesn't work anymore !

    0
    Comment actions Permalink
  • MartyG

    Ok, that's right, you are using the special Win7 version of the SDK's DLLs.

    I have analysed every way that I can think of to approach this problem but have had no luck, unfortunately.

     

    0
    Comment actions Permalink
  • Thomas Chenus33

    OK ... I try an other DLL because the first I used is in x86 version and not x64. I change to the good one, I think every think is similar inside because my modifications still work and Threshold still not reconnize. But I have new fonction did'nt reconnize. 

    Like you can see I delete for now the ThresholdFilter, I want to be sure I can use the program with the serveur and after come back to this problem, because it's still essential for my project.

    Do you have any idea what I could use to replace those functions? And what is the tool you use for your searches ? Because I can't find much info on google, especially for use under windows 7

    0
    Comment actions Permalink

Please sign in to leave a comment.