Closed joey-wang97 closed 3 years ago
Thank you for the feedback! Which App/Code Version is this?
We switched to OpenGL because of the new layer system for the TF View (Viz2D) as its far more easy to work with the camera system of OpenGl together with frame transformations.
The build.gradle
in my project is:
android {
compileSdkVersion 29
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "joye.wang.rosclientapp"
minSdkVersion 25
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
dataBinding true
}
}
The device version is android 8.1.0
, This bug often appears in multi finger operation(more than two finger).
Using opengl is a wisdom choice, but I think the communicate method(rpc xml) of ros-android
isn't a wisdom choice. I'm using rosbridge(websocket json) instead of xml. And the opengl version of ros-android-app
is opengl 1.0.
Do you have any plan of update the ros-package, such as websocket, opengl version and point cloud
support?
Thanks for your reply~
We might switch to websockets due to my unsuccessful attempts with ROS2 for android implementation. Until now I really have no idea how to build the project including rcljava without errors. It's the first time I've worked with OpenGL, but as I understand it, the minimum version of Android 5 we support should also work with OpenGL ES 3.1. That would definitely be worth a try. We will add PointClouds once we have implemented the 3D transformation view. Currently the focus is on the development of the most common messages for 2D TF view. So lot of work to come ;)
Sorry, I forget one thing: The bug is appeared when I used the MapView(draw by canvas), not OpenGL MapView.
Solved within newer App version.
I used the gesture dector and GridMapView(the bitmap version) which in your project in my source code. When I triggered a gesture operation(often scale), use more than two fingers. It's usually crashed. Here is the code caused carsh.
here is the code with problems:
https://github.com/ROS-Mobile/ROS-Mobile-Android/blob/757c04a7bce269bf399efcf29dc3acec114a0d96/app/src/main/java/com/schneewittchen/rosandroid/ui/general/MatrixGestureDetector.java#L61
The error logs :
And I found you show the GridMap by using 'opengl' instead of 'bitmap', why? Thanks .