Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# wrapper completeness and problems with adding missing methods #3

Open
vartid-ak opened this issue Sep 2, 2024 · 3 comments
Open

Comments

@vartid-ak
Copy link

Hi,

Thank you for this wrapper. It helped a lot.

When we implemented our solution, sometimes we found some methods we wanted to use, but we could not find in the C# wrapper.
Finally we were able to substitute them with another method calls, but it would be good to know if this wrapper complete or some methods still need to be added, and if so, than will you add them, or it is better if we do it ourselves.

We tried to extend the C# wrapper (src/obNative.cs) by adding methods defined in the OrbbecSDK/include/libosensor/*.h files.
E.g. We tried to add wrapper for
ob_extrinsic ob_stream_profile_get_extrinsic_to(ob_stream_profile *source, ob_stream_profile *target, ob_error **error);
which is defined in the OrbbecSDK/include/libosensor/StreamProfile.h file.
But it can't be found in the dll. (we tried the version in https://github.com/orbbec/OrbbecSDK_CSharp repo, and the latest SDK too

Where can we find the list of methods which should be presented in the dll-s as exported ones?

Thank you,

András

@jb455
Copy link

jb455 commented Sep 2, 2024

Hi,
I started to add intrinsic/extrinsic getters in my fork but I realised you can get them out already after starting the pipeline using:
CameraParam cameraParams = pipeline.GetCameraParam();

James

@vartid-ak
Copy link
Author

Thanks James,

I also used CameraParam cameraParams = pipeline.GetCameraParam();

But I'm a bit confused because as I feel the C# wrapper methods, the documentation, C++ sample codes , the dll content and the .h files are not in sync.

There are method in .h files which are not in the dll as exported methods.
Are they obsolete and to be removed from .h file or should have been exported in the dll?

Is the C# wrapper complete?
So, when we can’t find something in it (e.g., from a C++ example), is there some other method which implements that functionality, or should we sometimes add a new wrapper method to the C# wrapper ourselves?

@zhonghong322
Copy link

Thanks James,

I also used CameraParam cameraParams = pipeline.GetCameraParam();

But I'm a bit confused because as I feel the C# wrapper methods, the documentation, C++ sample codes , the dll content and the .h files are not in sync.

There are method in .h files which are not in the dll as exported methods. Are they obsolete and to be removed from .h file or should have been exported in the dll?

Is the C# wrapper complete? So, when we can’t find something in it (e.g., from a C++ example), is there some other method which implements that functionality, or should we sometimes add a new wrapper method to the C# wrapper ourselves?

We will go to enhance this C# code and fix the issue in October.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants