Open GuillaumeGibert opened 8 years ago
Some random questions before we start:
I installed Android Studio (2.1.2) with jre 1.70_80 on ubuntu 16.04. I also installed NDK (1.0). I imported the yarpdroid project on Android studio but I got a gradle error. I have no experience with android studio yet.
Hi @alecive, I was able to compile and run the yarpdroid app by downgrading the Android Studio version to 1.5.1. (the gradle errors disappeared). I had to copy several yarp include files to the app/src/main/jni/ directory to successfully compile the app. Is there a better way to provide these include files than copying them? I run the app and was able to view the image from icubSim's left eye. I tried to stream a video from a webcam using the command "yarpdev --device opencv_grabber" but the received video stream was noisy (horizontal lines) and not very fluid whereas it was good on a yarpview. Do you have any idea how it could be improved? Thanks in advance
Hey @GuillaumeGibert , sorry for the delay ( I was at the RSS conference last week). Great that you managed to fix it! Can you please list me every single thing you did to make it work so that I can add it to some how-to? It's been a while since I did everything from scratch and this would be beneficial.
Regarding the web camera, is it possible that the issue is related to the resolution? iCub cameras are 320x240 pixels, and probably your webcam is at least 480p (if not higher), so at least 4 times bigger. Can you try to downsize it to a lower resolution?
Hi @alecive, here is the list of steps I followed to make it work:
Then,
Put every flag to OFF. Press c and then t. Put gnustl_static under the ANDROID_STL item that just appeared. Type c, then c, then g. Now compile just YARP_OS:
Finally, start Android Studio 1.5.1 and Build->Make project
I will try to reduce the image resolution and let you know if it is better. Cheers
Hi @alecive, I cross-compiled the yarp_os, yarp_sig and yarp_init following the suggested changes from these webpages: https://github.com/alecive/alecive.github.io/issues/4 and http://alecive.github.io/blog/2015/08/31/YARP-Cross-Compilation/. I cloned the yarpdroid repo and installed android sdk, ndk and studio. Could you please tell me where I should copy the libYARP_OS.a libYarp_sig.a and libYARP_init.a files? Could you please tell me how to compile the yarpdroid app?