-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from AugmentOS-Community/better-feedback
virtual wearable
- Loading branch information
Showing
36 changed files
with
1,422 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# AugmentOS Core Development Guide | ||
|
||
## Build Commands | ||
- `./gradlew build` - Full project build | ||
- `./gradlew assembleDebug` - Build debug APK | ||
- `./gradlew test` - Run unit tests | ||
- `./gradlew androidTest` - Run instrumentation tests | ||
|
||
## Environment Setup | ||
- Java SDK 17 required | ||
- AugmentOS_Core depends on "SmartGlassesManager" repo being adjacent | ||
|
||
## Code Style Guidelines | ||
- Classes: PascalCase (e.g., `WebSocketManager`) | ||
- Methods: camelCase (e.g., `isConnected()`) | ||
- Constants: UPPER_SNAKE_CASE (e.g., `MAX_RETRY_ATTEMPTS`) | ||
- Member variables: camelCase with m prefix (e.g., `mService`) | ||
- Indentation: 2 spaces | ||
- Javadoc comments for public methods and classes | ||
|
||
## Error Handling | ||
- Log errors with `Log.e(TAG, "Error message", e)` | ||
- Use callbacks for asynchronous error propagation | ||
- Handle all checked exceptions | ||
- Provide user feedback for permissions issues | ||
|
||
## Architecture | ||
- Service-based design with `AugmentosService` as main component | ||
- Fragment-based UI with Navigation Component | ||
- EventBus for component communication | ||
- WebSocket for server communication |
100 changes: 100 additions & 0 deletions
100
.../augmentos/augmentos_core/smarterglassesmanager/smartglassescommunicators/VirtualSGC.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
package com.augmentos.augmentos_core.smarterglassesmanager.smartglassescommunicators; | ||
|
||
import android.content.Context; | ||
import android.graphics.Bitmap; | ||
import android.util.Log; | ||
|
||
import com.augmentos.augmentos_core.smarterglassesmanager.eventbusmessages.GlassesBluetoothSearchDiscoverEvent; | ||
import com.augmentos.augmentos_core.smarterglassesmanager.eventbusmessages.TextToSpeechEvent; | ||
import com.augmentos.augmentos_core.smarterglassesmanager.supportedglasses.SmartGlassesDevice; | ||
import com.augmentos.augmentos_core.smarterglassesmanager.utils.SmartGlassesConnectionState; | ||
|
||
import org.greenrobot.eventbus.EventBus; | ||
|
||
public class VirtualSGC extends SmartGlassesCommunicator { | ||
private static final String TAG = "WearableAi_AndroidWearableSGC"; | ||
|
||
|
||
Context context; | ||
SmartGlassesDevice smartGlassesDevice; | ||
|
||
public VirtualSGC(Context context, SmartGlassesDevice smartGlassesDevice){ | ||
super(); | ||
mConnectState = SmartGlassesConnectionState.DISCONNECTED; | ||
this.smartGlassesDevice = smartGlassesDevice; | ||
} | ||
|
||
public void setFontSizes(){ | ||
} | ||
|
||
public void connectToSmartGlasses(){ | ||
connectionEvent(SmartGlassesConnectionState.CONNECTED); | ||
} | ||
|
||
public void blankScreen(){ | ||
} | ||
|
||
public void displayRowsCard(String[] rowStrings){ | ||
|
||
} | ||
|
||
@Override | ||
public void destroy() { | ||
mConnectState = SmartGlassesConnectionState.DISCONNECTED; | ||
this.context = null; | ||
this.smartGlassesDevice = null; | ||
Log.d(TAG, "VirtualSGC destroyed successfully."); | ||
} | ||
|
||
|
||
public void displayReferenceCardSimple(String title, String body){} | ||
|
||
public void displayReferenceCardImage(String title, String body, String imgUrl){} | ||
|
||
public void displayBulletList(String title, String [] bullets){} | ||
|
||
public void displayBulletList(String title, String [] bullets, int lingerTime){} | ||
|
||
public void displayTextWall(String text){} | ||
public void displayDoubleTextWall(String textTop, String textBottom){} | ||
|
||
public void stopScrollingTextViewMode() { | ||
} | ||
|
||
public void startScrollingTextViewMode(String title){ | ||
} | ||
|
||
public void scrollingTextViewIntermediateText(String text){ | ||
} | ||
|
||
public void scrollingTextViewFinalText(String text){ | ||
} | ||
|
||
public void showHomeScreen(){ | ||
} | ||
|
||
public void displayPromptView(String prompt, String [] options){ | ||
} | ||
|
||
public void displayTextLine(String text){} | ||
|
||
@Override | ||
public void displayBitmap(Bitmap bmp) { | ||
|
||
} | ||
|
||
@Override | ||
public void displayCustomContent(String json) {} | ||
|
||
@Override | ||
public void findCompatibleDeviceNames() { | ||
EventBus.getDefault().post(new GlassesBluetoothSearchDiscoverEvent(smartGlassesDevice.deviceModelName, "NOTREQUIREDSKIP")); | ||
this.destroy(); | ||
} | ||
|
||
public void showNaturalLanguageCommandScreen(String prompt, String naturalLanguageArgs){} | ||
|
||
public void updateNaturalLanguageCommandScreen(String naturalLanguageArgs){} | ||
|
||
public void setFontSize(SmartGlassesFontSize fontSize){} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.