This PR includes Firebase integration for storing interface layouts and recorded movements and flags for choosing between the firebase and local storage model when launching the interface. Note, this PR only includes integration and testing for the interface layouts and recorded movements, not for the saved map poses. This PR, follows the steps in a previously written README for setting up firebase.
Testing procedure
Setup Firebase Authorized Domains
[x] Log into the CLV firebase console and select the CLV Deployment project
[x] In the sidebar, click Authentication under Project Shortcuts
[x] Click Settings and Authorized Domains
[x] Click the Add Domain button and add the IP Address of the robot that you are testing on
[x] Add the firebase config key to the .env file
Testing firebase
[ ] Launch the interface by running ./launch_interface.sh -s firebase
[ ] Open the interface in the browser. Verify that you see a pop-up prompting you to log into a google account. If you do not see the pop-up, check to see if the pop-up was blocked. If so, always enable pop-ups for that webpage and refresh the page.
[ ] Select the CLV deployment google account. Verify the interface loads only after selecting an account.
[ ] The interface layout should look similar to this:
[ ] Verify the Movement Recorder drop-down contains a single pose labelled Stow Arm & Wrist
[ ] Playback the Stow Arm & Wrist pose. The arm should fully retract, the wrist should stow, and the lift should lower to roughly a foot about the base.
[ ] Enter the customization mode and select Load Layout. Verify that you see Basic Layout and CLV in the drop-down:
[ ] Load the Basic Layout and verify that the interface looks similar to this:
[ ] Reload the CLV layout and verify it reverts to the layout when you initially loaded the interface.
[ ] Refresh the page and log into your Hello Robot email. Verify that the basic layout loads.
Testing Local Storage
[ ] Launch the interface by running ./launch_interface.sh -s localstorage
[ ] Open the interface. Verify it loads without being required to select a google account
Description
This PR includes Firebase integration for storing interface layouts and recorded movements and flags for choosing between the firebase and local storage model when launching the interface. Note, this PR only includes integration and testing for the interface layouts and recorded movements, not for the saved map poses. This PR, follows the steps in a previously written README for setting up firebase.
Testing procedure
Setup Firebase Authorized Domains
CLV Deployment
projectAuthentication
under Project ShortcutsSettings
andAuthorized Domains
Add Domain
button and add the IP Address of the robot that you are testing on.env
fileTesting firebase
./launch_interface.sh -s firebase
Stow Arm & Wrist
Stow Arm & Wrist
pose. The arm should fully retract, the wrist should stow, and the lift should lower to roughly a foot about the base.Load Layout
. Verify that you seeBasic Layout
andCLV
in the drop-down:Basic Layout
and verify that the interface looks similar to this:CLV
layout and verify it reverts to the layout when you initially loaded the interface.Testing Local Storage
./launch_interface.sh -s localstorage
Before opening a pull request
From the top-level of this repository, run:
pre-commit run --all-files
To merge
Squash & Merge