├── .gitignore ├── README.md ├── TangoReleaseLibs ├── aar │ ├── tango_support_java_lib.aar │ └── tango_ux_support_library.aar └── jar │ └── tango_java_lib.jar ├── java_augmented_reality_example ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── augmentedreality │ │ │ ├── AugmentedRealityActivity.java │ │ │ ├── AugmentedRealityRenderer.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ ├── earth.jpeg │ │ ├── ic_launcher.png │ │ └── moon.jpg │ │ ├── layout │ │ └── activity_main.xml │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_basic_examples ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── hello_area_description │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── helloareadescription │ │ │ ├── AdfData.java │ │ │ ├── AdfUuidArrayAdapter.java │ │ │ ├── AdfUuidListViewActivity.java │ │ │ ├── HelloAreaDescriptionActivity.java │ │ │ ├── SaveAdfDialog.java │ │ │ ├── SaveAdfTask.java │ │ │ ├── SetAdfNameDialog.java │ │ │ ├── StartActivity.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── layout │ │ ├── activity_area_learning.xml │ │ ├── activity_start.xml │ │ ├── adf_list_row.xml │ │ ├── save_adf_dialog.xml │ │ ├── set_name_dialog.xml │ │ └── uuid_list_view.xml │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── hello_depth_perception │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── hellodepthperception │ │ │ ├── HelloDepthPerceptionActivity.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── layout │ │ └── activity_depth_perception.xml │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── hello_motion_tracking │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── hellomotiontracking │ │ │ ├── HelloMotionTrackingActivity.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable │ │ └── ic_launcher.png │ │ ├── layout │ │ └── activity_motion_tracking.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── hello_video │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── hellovideo │ │ │ ├── HelloVideoActivity.java │ │ │ ├── HelloVideoRenderer.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── layout │ │ └── activity_main.xml │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml └── settings.gradle ├── java_examples_utils ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ ├── rajawali │ │ │ ├── DeviceExtrinsics.java │ │ │ ├── Pose.java │ │ │ ├── ScenePoseCalculator.java │ │ │ ├── TouchViewHandler.java │ │ │ ├── package-info.java │ │ │ └── renderables │ │ │ │ ├── FrustumAxes.java │ │ │ │ ├── Grid.java │ │ │ │ ├── PointCloud.java │ │ │ │ ├── Trajectory.java │ │ │ │ ├── package-info.java │ │ │ │ └── primitives │ │ │ │ ├── Points.java │ │ │ │ └── package-info.java │ │ │ └── tangoutils │ │ │ ├── TangoPoseUtilities.java │ │ │ └── package-info.java │ │ └── res │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_floor_plan_reconstruction_example ├── .gitignore ├── README.md ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── floorplanreconstruction │ │ │ ├── FloorPlanReconstructionActivity.java │ │ │ ├── FloorplanView.java │ │ │ ├── TangoFloorplanner.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── layout │ │ └── activity_main.xml │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── params.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_green_screen_example ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── greenscreen │ │ │ ├── DepthTexture.java │ │ │ ├── GreenScreen.java │ │ │ ├── GreenScreenActivity.java │ │ │ ├── GreenScreenRenderer.java │ │ │ ├── OpenGlHelper.java │ │ │ ├── OpenGlMesh.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ ├── background.jpg │ │ ├── ic_add_a_photo_black_48dp.png │ │ └── ic_launcher.png │ │ ├── layout │ │ └── activity_main.xml │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_marker_detection_example ├── .gitignore ├── README.md ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── AndroidManifest.xml-- │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── markerdetection │ │ │ ├── MarkerDetectionActivity.java │ │ │ ├── MarkerDetectionRenderer.java │ │ │ ├── MarkerObject.java │ │ │ ├── MutableLine3D.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ ├── earth.jpeg │ │ ├── ic_launcher.png │ │ └── moon.jpg │ │ ├── layout │ │ └── activity_main.xml │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── ar-markers.pdf ├── ar_markers.pdf ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_mesh_builder_example ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── meshbuilder │ │ │ ├── GridIndex.java │ │ │ ├── MeshBuilderActivity.java │ │ │ ├── MeshBuilderRenderer.java │ │ │ ├── MeshMaterial.java │ │ │ ├── MeshSegment.java │ │ │ ├── OpenGlHelper.java │ │ │ ├── TangoMesher.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── layout │ │ └── activity_main.xml │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_model_correspondence_example ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── modelcorrespondence │ │ │ ├── HouseModel.java │ │ │ ├── ModelCorrespondenceActivity.java │ │ │ ├── ModelCorrespondenceRenderer.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ ├── crosshair.png │ │ ├── ic_launcher.png │ │ └── plus.png │ │ ├── drawable │ │ └── progress_bg.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── raw │ │ └── farmhouse.stl │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_motion_tracking_example ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── motiontracking │ │ │ ├── MotionTrackingActivity.java │ │ │ ├── MotionTrackingRajawaliRenderer.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ ├── grass.png │ │ ├── ic_launcher.png │ │ └── tango_logo.png │ │ ├── layout │ │ └── activity_motion_tracking.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_occlusion_example ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── occlusion │ │ │ ├── OcclusionActivity.java │ │ │ ├── OcclusionRenderer.java │ │ │ ├── meshing │ │ │ ├── GridIndex.java │ │ │ ├── MeshMaterial.java │ │ │ ├── MeshSegment.java │ │ │ ├── TangoMesher.java │ │ │ └── package-info.java │ │ │ ├── opengl │ │ │ ├── DepthTexture.java │ │ │ ├── OpenGlCameraPreview.java │ │ │ ├── OpenGlHelper.java │ │ │ ├── OpenGlMesh.java │ │ │ ├── OpenGlSphere.java │ │ │ └── package-info.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ ├── earth.jpeg │ │ └── ic_launcher.png │ │ ├── layout │ │ └── activity_main.xml │ │ ├── raw │ │ ├── sphere_fragment_shader.glsl │ │ └── sphere_vertex_shader.glsl │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_opengl_augmented_reality_example ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── opengl_ar │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── openglar │ │ │ ├── OpenGlAugmentedRealityActivity.java │ │ │ ├── OpenGlAugmentedRealityRenderer.java │ │ │ ├── OpenGlCameraPreview.java │ │ │ ├── OpenGlHelper.java │ │ │ ├── OpenGlMesh.java │ │ │ ├── OpenGlSphere.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ ├── earth.jpeg │ │ ├── ic_launcher.png │ │ └── moon.jpg │ │ ├── layout │ │ └── activity_main.xml │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml └── settings.gradle ├── java_plane_fitting_example ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── planefitting │ │ │ ├── PlaneFittingActivity.java │ │ │ ├── PlaneFittingRenderer.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ └── instructions.png │ │ ├── layout │ │ └── activity_main.xml │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_point_cloud_example ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── pointcloud │ │ │ ├── PointCloudActivity.java │ │ │ ├── PointCloudRajawaliRenderer.java │ │ │ ├── TouchViewHandler.java │ │ │ ├── package-info.java │ │ │ └── rajawali │ │ │ ├── FrustumAxes.java │ │ │ ├── Grid.java │ │ │ ├── PointCloud.java │ │ │ ├── Points.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── layout │ │ └── activity_point_cloud.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── java_point_to_point_example ├── .gitignore ├── app │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── projecttango │ │ │ └── examples │ │ │ └── java │ │ │ └── pointtopoint │ │ │ ├── PointToPointActivity.java │ │ │ ├── PointToPointRenderer.java │ │ │ └── package-info.java │ │ └── res │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── layout │ │ └── activity_main.xml │ │ ├── values-v11 │ │ └── styles.xml │ │ ├── values-v14 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle └── version.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | 15 | # Proguard folder generated by Eclipse 16 | proguard/ 17 | 18 | # Log Files 19 | *.log 20 | -------------------------------------------------------------------------------- /TangoReleaseLibs/aar/tango_support_java_lib.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/TangoReleaseLibs/aar/tango_support_java_lib.aar -------------------------------------------------------------------------------- /TangoReleaseLibs/aar/tango_ux_support_library.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/TangoReleaseLibs/aar/tango_ux_support_library.aar -------------------------------------------------------------------------------- /TangoReleaseLibs/jar/tango_java_lib.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/TangoReleaseLibs/jar/tango_java_lib.jar -------------------------------------------------------------------------------- /java_augmented_reality_example/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | local.properties 3 | .idea 4 | *.iml 5 | .DS_Store 6 | build 7 | captures 8 | -------------------------------------------------------------------------------- /java_augmented_reality_example/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /java_augmented_reality_example/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.projecttango.experiments.augmentedrealitysample" 9 | minSdkVersion 19 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | 20 | lintOptions { 21 | abortOnError false 22 | } 23 | } 24 | } 25 | 26 | 27 | dependencies { 28 | apply from: '../../version.gradle' 29 | compile "com.google.tango:sdk-base:${release_version}" 30 | compile "com.google.tango:sdk-support:${release_version}" 31 | compile "org.rajawali3d:rajawali:1.1.899-SNAPSHOT@aar" 32 | compile "com.android.support:appcompat-v7:23.0.0" 33 | } 34 | -------------------------------------------------------------------------------- /java_augmented_reality_example/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /java_augmented_reality_example/app/src/main/java/com/projecttango/examples/java/augmentedreality/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * A sample showing how to build an Augmented Reality app using Tango and Rajawali. 18 | */ 19 | package com.projecttango.examples.java.augmentedreality; 20 | -------------------------------------------------------------------------------- /java_augmented_reality_example/app/src/main/res/drawable-xxhdpi/earth.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_augmented_reality_example/app/src/main/res/drawable-xxhdpi/earth.jpeg -------------------------------------------------------------------------------- /java_augmented_reality_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_augmented_reality_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_augmented_reality_example/app/src/main/res/drawable-xxhdpi/moon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_augmented_reality_example/app/src/main/res/drawable-xxhdpi/moon.jpg -------------------------------------------------------------------------------- /java_augmented_reality_example/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 16 | 21 | 22 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /java_augmented_reality_example/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | Java Augmented Reality 19 | Java Augmented Reality Example 20 | 21 | "Tango exception! Try again!" 22 | "Tango invalid exception! Try again!" 23 | "Tango service outdated!" 24 | "Camera permission needed!" 25 | 26 | -------------------------------------------------------------------------------- /java_augmented_reality_example/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 29 | 30 | 31 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /java_augmented_reality_example/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | dependencies { 7 | classpath 'com.android.tools.build:gradle:2.2.2' 8 | 9 | // NOTE: Do not place your application dependencies here; they belong 10 | // in the individual module build.gradle files 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | mavenLocal() 17 | jcenter() 18 | maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /java_augmented_reality_example/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | -------------------------------------------------------------------------------- /java_augmented_reality_example/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_augmented_reality_example/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /java_augmented_reality_example/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 26 08:02:00 ART 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip 7 | -------------------------------------------------------------------------------- /java_augmented_reality_example/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /java_basic_examples/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | local.properties 3 | .idea 4 | *.iml 5 | .DS_Store 6 | build 7 | captures 8 | -------------------------------------------------------------------------------- /java_basic_examples/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | dependencies { 7 | classpath 'com.android.tools.build:gradle:2.2.2' 8 | 9 | // NOTE: Do not place your application dependencies here; they belong 10 | // in the individual module build.gradle files 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | mavenLocal() 17 | jcenter() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /java_basic_examples/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | -------------------------------------------------------------------------------- /java_basic_examples/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_basic_examples/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /java_basic_examples/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 26 08:02:00 ART 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip 7 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.projecttango.examples.java.helloareadescription" 9 | minSdkVersion 19 10 | targetSdkVersion 19 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | 21 | lintOptions { 22 | abortOnError false 23 | } 24 | } 25 | 26 | 27 | dependencies { 28 | apply from: '../../version.gradle' 29 | compile "com.google.tango:sdk-base:${release_version}" 30 | compile "com.android.support:appcompat-v7:23.2.0" 31 | } 32 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/java/com/projecttango/examples/java/helloareadescription/AdfData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.projecttango.examples.java.helloareadescription; 18 | 19 | /** 20 | * Contains an ADF Name and its UUID. 21 | */ 22 | class AdfData { 23 | public final String uuid; 24 | public final String name; 25 | 26 | public AdfData(String uuid, String name) { 27 | this.uuid = uuid; 28 | this.name = name; 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/java/com/projecttango/examples/java/helloareadescription/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * A sample application to show how to get Area Learning Data using Project 18 | * Tango API. 19 | */ 20 | package com.projecttango.examples.java.helloareadescription; 21 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_basic_examples/hello_area_description/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_basic_examples/hello_area_description/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_basic_examples/hello_area_description/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_basic_examples/hello_area_description/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/layout/adf_list_row.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/layout/save_adf_dialog.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 18 | 19 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 23 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 23 | 64dp 24 | 25 | 26 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 16dp 20 | 16dp 21 | 22 | 23 | -------------------------------------------------------------------------------- /java_basic_examples/hello_area_description/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 29 | 30 | 31 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.projecttango.examples.java.hellodepthperception" 9 | minSdkVersion 19 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | 21 | lintOptions { 22 | abortOnError false 23 | } 24 | } 25 | 26 | 27 | 28 | dependencies { 29 | apply from: '../../version.gradle' 30 | compile "com.google.tango:sdk-base:${release_version}" 31 | compile "com.android.support:appcompat-v7:23.2.0" 32 | } 33 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/src/main/java/com/projecttango/examples/java/hellodepthperception/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * A sample application to show hwo to get Point Cloud Data from Project Tango API 18 | * and display in world coordinates of Opengl ES2.0. 19 | */ 20 | package com.projecttango.examples.java.hellodepthperception; 21 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_basic_examples/hello_depth_perception/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/src/main/res/layout/activity_depth_perception.xml: -------------------------------------------------------------------------------- 1 | 16 | 19 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/src/main/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/src/main/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 23 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 23 | 64dp 24 | 25 | 26 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 16dp 20 | 16dp 21 | 22 | 23 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | Java Hello Depth Perception 19 | Java Hello Depth Perception Example 20 | See Logcat for depth perception update. 21 | "Tango exception! Try again!" 22 | "Tango invalid exception! Try again!" 23 | "Tango service outdated!" 24 | "Motion Tracking permission needed!" 25 | 26 | -------------------------------------------------------------------------------- /java_basic_examples/hello_depth_perception/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 29 | 30 | 31 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.projecttango.examples.java.hellomotiontracking" 9 | minSdkVersion 19 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | 21 | android { 22 | lintOptions { 23 | abortOnError false 24 | } 25 | } 26 | } 27 | 28 | 29 | dependencies { 30 | apply from: '../../version.gradle' 31 | compile "com.google.tango:sdk-base:${release_version}" 32 | compile "com.android.support:appcompat-v7:23.2.0" 33 | } 34 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk-linux/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 19 | 21 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/src/main/java/com/projecttango/examples/java/hellomotiontracking/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * A sample application showing how to use Motion Tracking Data using Project Tango API. 18 | */ 19 | package com.projecttango.examples.java.hellomotiontracking; 20 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/src/main/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_basic_examples/hello_motion_tracking/src/main/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/src/main/res/layout/activity_motion_tracking.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 17 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 16dp 6 | 16dp 7 | 8 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | Java Hello Motion Tracking 16 | Java Hello Motion Tracking Example 17 | See Logcat for pose update. 18 | "Tango exception! Try again!" 19 | "Tango invalid exception! Try again!" 20 | "Tango service outdated!" 21 | "Motion Tracking permission needed!" 22 | 23 | -------------------------------------------------------------------------------- /java_basic_examples/hello_motion_tracking/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /java_basic_examples/hello_video/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /java_basic_examples/hello_video/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.projecttango.examples.java.hellovideo" 9 | minSdkVersion 19 10 | targetSdkVersion 19 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | lintOptions { 21 | abortOnError false 22 | } 23 | } 24 | 25 | 26 | dependencies { 27 | apply from: '../../version.gradle' 28 | compile "com.google.tango:sdk-base:${release_version}" 29 | compile "com.google.tango:sdk-support:${release_version}" 30 | compile "com.android.support:appcompat-v7:23.2.0" 31 | } 32 | -------------------------------------------------------------------------------- /java_basic_examples/hello_video/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /java_basic_examples/hello_video/src/main/java/com/projecttango/examples/java/hellovideo/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * A sample application showing how to use the Tango API to get the information necessary to 18 | * render the contents of the RGB camera into an OpenGL texture. 19 | */ 20 | package com.projecttango.examples.java.hellovideo; 21 | -------------------------------------------------------------------------------- /java_basic_examples/hello_video/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_basic_examples/hello_video/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_basic_examples/hello_video/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | Java Hello Video 18 | Java Hello Video Example 19 | "Tango exception! Try again!" 20 | "Tango invalid exception! Try again!" 21 | "Tango service outdated!" 22 | "Camera permission needed!" 23 | 24 | -------------------------------------------------------------------------------- /java_basic_examples/hello_video/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 29 | 30 | 31 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /java_basic_examples/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':hello_area_description' 2 | include ':hello_depth_perception' 3 | include ':hello_motion_tracking' 4 | include ':hello_video' 5 | -------------------------------------------------------------------------------- /java_examples_utils/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | local.properties 3 | .idea 4 | *.iml 5 | .DS_Store 6 | build 7 | captures 8 | -------------------------------------------------------------------------------- /java_examples_utils/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 17 9 | targetSdkVersion 19 10 | } 11 | 12 | buildTypes { 13 | release { 14 | minifyEnabled false 15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 16 | } 17 | } 18 | } 19 | 20 | dependencies { 21 | apply from: '../../version.gradle' 22 | compile "com.google.tango:sdk-base:${release_version}" 23 | compile "org.rajawali3d:rajawali:1.0.325@aar" 24 | } 25 | -------------------------------------------------------------------------------- /java_examples_utils/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 16 | 20 | 21 | 24 | 25 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /java_examples_utils/app/src/main/java/com/projecttango/rajawali/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * Rajawali-specific code shared by the different samples. 18 | */ 19 | package com.projecttango.rajawali; 20 | -------------------------------------------------------------------------------- /java_examples_utils/app/src/main/java/com/projecttango/rajawali/renderables/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * Rajawali renderable objects used in more than one sample. 18 | */ 19 | package com.projecttango.rajawali.renderables; 20 | -------------------------------------------------------------------------------- /java_examples_utils/app/src/main/java/com/projecttango/rajawali/renderables/primitives/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * Rajawali primitives that are not part of the core library. 18 | */ 19 | package com.projecttango.rajawali.renderables.primitives; 20 | -------------------------------------------------------------------------------- /java_examples_utils/app/src/main/java/com/projecttango/tangoutils/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * General-purpose code that is re-used among the different samples. 18 | */ 19 | package com.projecttango.tangoutils; 20 | -------------------------------------------------------------------------------- /java_examples_utils/app/src/main/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /java_examples_utils/app/src/main/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 23 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /java_examples_utils/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | java_examples_utils 19 | 20 | 21 | -------------------------------------------------------------------------------- /java_examples_utils/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 29 | 30 | 31 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /java_examples_utils/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.2' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /java_examples_utils/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /java_examples_utils/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_examples_utils/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /java_examples_utils/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 26 08:02:00 ART 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip 7 | -------------------------------------------------------------------------------- /java_examples_utils/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/README.md: -------------------------------------------------------------------------------- 1 | This sample shows how to use the experimental Floor plan API from the 3D 2 | Reconstruction packages. 3 | 4 | This sample is a small Java application that creates simple 2D floor 5 | plans. This application uses the depth sensor to scan the rooms 6 | and gets simplified 2D floor plans in the form of polygons through 7 | callbacks. These polygons are drawn on a SurfaceView using regular 8 | Android canvas 2D drawing functions. 9 | 10 | The most important code parts to note are the following: 11 | - TangoFloorplanner.java is a convenience class that abstracts some of 12 | the mechanics of the Floor plan reconstruction library. It uses 13 | a separate thread to push point clouds through the reconstruction 14 | library and generates callback events whenever new floor plan polygons 15 | are available for consumption. You can reuse this class for your own 16 | application. 17 | - In FloorPlanReconstructionActivity.java, you can see how to tie this 18 | TangoFloorplanner utility with the rest of the Tango lifecycle, 19 | callback functions and events. 20 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.projecttango.experiments.javafloorplanreconstructionexample" 9 | minSdkVersion 19 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | 20 | lintOptions { 21 | abortOnError false 22 | } 23 | } 24 | } 25 | 26 | 27 | dependencies { 28 | apply from: '../../version.gradle' 29 | compile "com.google.tango:sdk-base:${release_version}" 30 | compile "com.google.tango:sdk-support:${release_version}" 31 | compile "com.google.tango:sdk-reconstruction:${release_version}" 32 | compile "org.rajawali3d:rajawali:1.0.325@aar" 33 | compile "com.android.support:appcompat-v7:23.0.0" 34 | } 35 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 17 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/java/com/projecttango/examples/java/floorplanreconstruction/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * A sample showing how to build a mesh using Tango. 18 | */ 19 | package com.projecttango.examples.java.floorplanreconstruction; 20 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_floor_plan_reconstruction_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 64dp 9 | 10 | 11 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #d2d2d2 4 | #15A6D9 5 | #be6A2875 6 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 7 | 8 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/res/values/params.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 2.0 4 | 0.04 5 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Java Floor Plan Reconstruction 5 | Java Floor Plan Reconstruction Example 6 | "Tango exception! Try again!" 7 | "Tango invalid exception! Try again!" 8 | "Tango service outdated!" 9 | "Tango.PERMISSIONTYPE_DATASET required!" 10 | Pause 11 | Clear 12 | 13 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | dependencies { 7 | classpath 'com.android.tools.build:gradle:2.2.2' 8 | 9 | // NOTE: Do not place your application dependencies here; they belong 10 | // in the individual module build.gradle files 11 | } 12 | } 13 | 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_floor_plan_reconstruction_example/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 26 08:02:00 ART 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip 7 | -------------------------------------------------------------------------------- /java_floor_plan_reconstruction_example/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | include ':java_examples_utils' 3 | project(':java_examples_utils').projectDir = new File('../java_examples_utils/app') 4 | -------------------------------------------------------------------------------- /java_green_screen_example/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | local.properties 3 | .idea 4 | *.iml 5 | .DS_Store 6 | build 7 | captures 8 | -------------------------------------------------------------------------------- /java_green_screen_example/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /java_green_screen_example/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.projecttango.examples.java.greenscreen" 9 | minSdkVersion 19 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | lintOptions { 21 | abortOnError false 22 | } 23 | } 24 | 25 | 26 | dependencies { 27 | apply from: '../../version.gradle' 28 | compile "com.google.tango:sdk-base:${release_version}" 29 | compile "com.google.tango:sdk-support:${release_version}" 30 | compile "com.android.support:design:23.4.0" 31 | } 32 | -------------------------------------------------------------------------------- /java_green_screen_example/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /java_green_screen_example/app/src/main/java/com/projecttango/examples/java/greenscreen/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * This is an example that shows how to use the Tango APIs to synchronize RGB and depth information. 18 | */ 19 | package com.projecttango.examples.java.greenscreen; 20 | -------------------------------------------------------------------------------- /java_green_screen_example/app/src/main/res/drawable-xxhdpi/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_green_screen_example/app/src/main/res/drawable-xxhdpi/background.jpg -------------------------------------------------------------------------------- /java_green_screen_example/app/src/main/res/drawable-xxhdpi/ic_add_a_photo_black_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_green_screen_example/app/src/main/res/drawable-xxhdpi/ic_add_a_photo_black_48dp.png -------------------------------------------------------------------------------- /java_green_screen_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_green_screen_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_green_screen_example/app/src/main/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /java_green_screen_example/app/src/main/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /java_green_screen_example/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 64dp 9 | 10 | 11 | -------------------------------------------------------------------------------- /java_green_screen_example/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | Java Green Screen 19 | Java Green Screen Example 20 | "Tango exception! Try again!" 21 | "Tango invalid exception! Try again!" 22 | "Tango service outdated!" 23 | "Camera permission needed!" 24 | 25 | -------------------------------------------------------------------------------- /java_green_screen_example/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 29 | 30 | 31 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /java_green_screen_example/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | dependencies { 7 | classpath 'com.android.tools.build:gradle:2.2.2' 8 | 9 | // NOTE: Do not place your application dependencies here; they belong 10 | // in the individual module build.gradle files 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | jcenter() 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /java_green_screen_example/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /java_green_screen_example/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_green_screen_example/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /java_green_screen_example/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 26 08:02:00 ART 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip 7 | -------------------------------------------------------------------------------- /java_green_screen_example/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /java_marker_detection_example/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | local.properties 3 | .idea 4 | *.iml 5 | .DS_Store 6 | build 7 | captures 8 | -------------------------------------------------------------------------------- /java_marker_detection_example/README.md: -------------------------------------------------------------------------------- 1 | API example that demonstrates marker detection API. 2 | 3 | Please follow the instructions below to run the example: 4 | 1. Build and install the app onto your device. 5 | 2. Print one or a few markers from the attached ar_markers.pdf file. Please 6 | print the marker on a Letter size paper, without using any zooming or scaling 7 | factor. Please measure every side of the marker using a ruler to make sure 8 | it is 14cm. 9 | 3. Place the printed marker(s) on a flat surface, tables or walls. 10 | 4. Run the example app from your device, and point the device camera to the 11 | printed markers. 12 | 5. For every marker detected, the boundary and the axes of the local frame will 13 | be displayed. For the X, Y and Z axes of the local frame, RED, GREEN and 14 | BLUE lines will be displayed. 15 | -------------------------------------------------------------------------------- /java_marker_detection_example/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /java_marker_detection_example/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.projecttango.experiments.markerdetectionsample" 9 | minSdkVersion 19 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | 20 | lintOptions { 21 | abortOnError false 22 | } 23 | } 24 | } 25 | 26 | 27 | dependencies { 28 | apply from: '../../version.gradle' 29 | compile "com.google.tango:sdk-base:${release_version}" 30 | compile "com.google.tango:sdk-support:${release_version}" 31 | compile "com.google.tango:sdk-markers:${release_version}" 32 | compile "org.rajawali3d:rajawali:1.1.668@aar" 33 | compile "com.android.support:appcompat-v7:23.0.0" 34 | } 35 | -------------------------------------------------------------------------------- /java_marker_detection_example/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /java_marker_detection_example/app/src/main/java/com/projecttango/examples/java/markerdetection/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * A sample showing how to build marker detection app using Tango and Rajawali. 18 | */ 19 | package com.projecttango.examples.java.markerdetection; 20 | -------------------------------------------------------------------------------- /java_marker_detection_example/app/src/main/res/drawable-xxhdpi/earth.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_marker_detection_example/app/src/main/res/drawable-xxhdpi/earth.jpeg -------------------------------------------------------------------------------- /java_marker_detection_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_marker_detection_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_marker_detection_example/app/src/main/res/drawable-xxhdpi/moon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_marker_detection_example/app/src/main/res/drawable-xxhdpi/moon.jpg -------------------------------------------------------------------------------- /java_marker_detection_example/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 16 | 21 | 22 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /java_marker_detection_example/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | Java Marker Detection 19 | Java Marker Detection Example 20 | 21 | "Tango exception! Try again!" 22 | "Tango invalid exception! Try again!" 23 | "Tango service outdated!" 24 | "Camera permission needed!" 25 | 26 | -------------------------------------------------------------------------------- /java_marker_detection_example/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 22 | 29 | 30 | 31 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /java_marker_detection_example/ar-markers.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_marker_detection_example/ar-markers.pdf -------------------------------------------------------------------------------- /java_marker_detection_example/ar_markers.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_marker_detection_example/ar_markers.pdf -------------------------------------------------------------------------------- /java_marker_detection_example/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | dependencies { 7 | classpath 'com.android.tools.build:gradle:2.2.2' 8 | 9 | // NOTE: Do not place your application dependencies here; they belong 10 | // in the individual module build.gradle files 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | mavenLocal() 17 | jcenter() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /java_marker_detection_example/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /java_marker_detection_example/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_marker_detection_example/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /java_marker_detection_example/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 26 08:02:00 ART 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip 7 | -------------------------------------------------------------------------------- /java_marker_detection_example/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /java_mesh_builder_example/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /java_mesh_builder_example/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /java_mesh_builder_example/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.projecttango.experiments.javameshbuilderexample" 9 | minSdkVersion 19 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | 20 | lintOptions { 21 | abortOnError false 22 | } 23 | } 24 | } 25 | 26 | 27 | dependencies { 28 | apply from: '../../version.gradle' 29 | compile "com.google.tango:sdk-base:${release_version}" 30 | compile "com.google.tango:sdk-support:${release_version}" 31 | compile "com.google.tango:sdk-reconstruction:${release_version}" 32 | compile "org.rajawali3d:rajawali:1.0.325@aar" 33 | compile "com.android.support:appcompat-v7:23.0.0" 34 | } 35 | -------------------------------------------------------------------------------- /java_mesh_builder_example/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /java_mesh_builder_example/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 18 | 21 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /java_mesh_builder_example/app/src/main/java/com/projecttango/examples/java/meshbuilder/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /** 17 | * A sample showing how to build a mesh using Tango. 18 | */ 19 | package com.projecttango.examples.java.meshbuilder; 20 | -------------------------------------------------------------------------------- /java_mesh_builder_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/googlearchive/tango-examples-java/5e727dd818e32e8cc6293f7cb02358312c45e03e/java_mesh_builder_example/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /java_mesh_builder_example/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 |