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

Enable librealsense on unrooted android devices #3083

Merged

Conversation

matkatz
Copy link
Contributor

@matkatz matkatz commented Jan 17, 2019

This PR is based on the work done by @dperox and @aangerma to enable access to RealSense device via librealsense on unrooted android device.

The PR includes the following:

  • An Android studio project which generates a native librealsense so and/or AAR.
  • Java example that captures and display the color and depth streams.
  • Java/NDK Example that demonstrates how to access librealsense native API via JNI.

Currently the java API includes the minimal required functionality to allow basic streaming.

The Android project is located at /wrappers/android

@matkatz matkatz force-pushed the unrooted_android_device_support branch from dfd9d26 to 198711d Compare January 22, 2019 07:35
@matkatz matkatz requested a review from dorodnic January 22, 2019 12:40
@zhouwg zhouwg mentioned this pull request Jan 23, 2019
@matkatz matkatz force-pushed the unrooted_android_device_support branch from cae01d7 to d5331ba Compare January 23, 2019 20:37
@ssakhavi
Copy link

@matkaz thanks for the awesome wrapper.

Just a few things:

  • Currently there is no support for additional filter operations (i.e. Alignment) Maybe something similar to the options can be written for the wrapper?

  • An option to enter Advanced mode and modify would be nice ( I'm not sure the current options covers all the parameters)

  • Saving and loading Frames is a feature that is used in many cases to communicate and do calculations on server and Android.

@dorodnic dorodnic mentioned this pull request Feb 13, 2019
@ssakhavi
Copy link

@matkatz

The current version has a very bad delay(~10s!) when the device wants to load and show the RealSense data.
Where is this delay coming from?

@matkatz
Copy link
Contributor Author

matkatz commented Feb 19, 2019

@ssakhavi, sorry for the late response (twice)

  • Currently there is no support for additional filter operations (i.e. Alignment) Maybe something similar to the options can be written for the wrapper?
  • An option to enter Advanced mode and modify would be nice ( I'm not sure the current options >
    covers all the parameters)

We Plan to add support in all of librealsense API in the future, currently if you are missing functionality you can work with the native API.

  • Saving and loading Frames is a feature that is used in many cases to communicate and do calculations on server and Android.

Playback and record are now supported, please check the examples for more details.

The current version has a very bad delay(~10s!) when the device wants to load and show the RealSense data. Where is this delay coming from?

Can you explain what do you mean by delay? Is it the time to the first frame after start or something else? Also what Android device are you using for testing?

@ssakhavi
Copy link

ssakhavi commented Feb 19, 2019 via email

@dorodnic
Copy link
Contributor

@ssakhavi - let's follow-up via a new issue

@dorodnic dorodnic merged commit e7e5eb2 into IntelRealSense:development Feb 19, 2019
@ssakhavi
Copy link

Btw, @matkatz, your code is awesome. I enjoyed my time playing around with it.

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

Successfully merging this pull request may close these issues.

5 participants