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

Firebase Storage Handler Integration #89

Merged
merged 0 commits into from
Aug 6, 2024
Merged

Conversation

hello-vinitha
Copy link
Collaborator

@hello-vinitha hello-vinitha commented Jul 29, 2024

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

  • Log into the CLV firebase console and select the CLV Deployment project
  • In the sidebar, click Authentication under Project Shortcuts
  • Click Settings and Authorized Domains
  • Click the Add Domain button and add the IP Address of the robot that you are testing on
  • 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:
    image
  • 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:
    image
  • Load the Basic Layout and verify that the interface looks similar to this:
    image
  • 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

Before opening a pull request

From the top-level of this repository, run:

  • pre-commit run --all-files

To merge

  • Squash & Merge

@hello-vinitha hello-vinitha changed the title [WIP] Firebase Storage Handler Integration Firebase Storage Handler Integration Jul 30, 2024
@hello-amal hello-amal force-pushed the studies/clv branch 3 times, most recently from a3ae2f5 to 34b8b85 Compare August 2, 2024 22:50
@hello-amal hello-amal merged commit a863cd4 into studies/clv Aug 6, 2024
1 check passed
@hello-amal hello-amal deleted the vinitha/firebase branch August 6, 2024 16:51
@hello-amal hello-amal restored the vinitha/firebase branch August 6, 2024 20:28
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.

2 participants