Repository navigation
Android: Pick the point-goal on screen instead of typing distances - #563
harishthakur52 wants to merge 3 commits into
Conversation
thias15
left a comment
There was a problem hiding this comment.
Thanks @harishthakur52, tapping the goal works much better than typing distances, and the stop on finger-down and the safety timer are great additions.
One fix before merging:
- Safety timer:
onArCoreUpdatesetslastNavUpdateMsbefore it drops frames older than 100 ms. If every frame is late, no new command is sent but the timer keeps being reset, so the robot drives on with its last command. Please set it only after a command was sent, the way the iOS version handles skipped frames.
Camera height:
-
Please don't save the measured height between sessions; the phone may be mounted differently next time. Start each session from the body the robot reports when it connects (
vehicle.getVehicleType()), and use the live measurement once the floor is found. Starting heights, worked out from the CAD files and photos (about ±3 cm):Body Height RTR_5200.16 m RC_CAR0.22 m MTV0.23 m everything else 0.12 m
Smaller things:
- The safety-timer thread is started in
onViewCreatedbut only quit inonDestroy, so going back and forth to the screen leaves extra threads. Start it inonCreate, or quit it inonDestroyView. - A tap while ARCore isn't tracking is kept and placed later without a message. Better to reject it with a hint.
|
Tested the Android app. For me it does not even open, crashes instantly. So unable to test. |
@thias15 have you added your own google-services.json in robot/android/app/? The repo only has a dummy one, and with the dummy file the app crashes at startup. With a real one it opens fine. Please let me know if it still crashes. Also, please send me the device name you are testing on. |
|
I just downloaded the one being built from artifact. Shouldn't this have everything? Using Samsung s22 ultra |
The PR artifact is built without the real google-services.json, so it crashes at launch. Once the fixes are merged, the next release will include it. In the meantime, we’ve shared the same APK with the real credentials on Slack. |
The point-goal is now set by tapping the floor in the camera view instead of typing distances.