Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Geospatial #247

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Geospatial #247

wants to merge 6 commits into from

Conversation

vlad0209
Copy link

This pull request brings big upgrades to the arcore_flutter_plugin, with a focus on turning on and using geospatial features. The changes aim to boost the plugin's function and strength letting developers create more engaging, location-aware AR experiences. Here's a rundown of the updates:

Geospatial Mode Activation

Added support to turn on geospatial mode in AR sessions (enableGeospatialMode).

Camera Geospatial Pose Tracking

Added a feature to keep tabs on the camera's geospatial position during AR sessions.

Created a new Dart class, ArCoreGeospatialPose, to package geospatial info (latitude, longitude, altitude, and orientation).

Built a platform channel method to get the geospatial position from the native ARCore session.

Technical Details

Android Implementation:

Changed ArCoreView.kt to include checks for geospatial mode support using session.isGeospatialModeSupported.

Tweaked configuration to make sure geospatial features turn on when supported.

Expanded platform channel communication to pull geospatial position data from the AR session.

Dart Interface:

Changed arcore_android_view.dart and arcore_view.dart to include methods and parameters for geospatial features.

Made the API easier to use and better at handling errors for geospatial mode integration.

Impact

Helps create AR apps for navigation or location-based services.

Testing

Checked that geospatial mode starts on devices that can use it.

Made sure the AR sessions get accurate geospatial pose data.

This pull request sets up the basics for adding better map features to Flutter apps. It helps developers create AR experiences that are more engaging and aware of their surroundings.

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

Successfully merging this pull request may close these issues.

1 participant