-
Notifications
You must be signed in to change notification settings - Fork 46
Jibo blocks [FOR REFERENCE] #396
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
base: main
Are you sure you want to change the base?
Conversation
| if (jiboName != "") { | ||
| database.ref("Jibo-Name/" + jiboName).push({ ...data }); | ||
| await new Promise(r => setTimeout(r, 2000)); // wait a bit before proceeding | ||
| await awaitFn(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait forever if name isn't available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should wait until firebase responds until executing next one -- re "unresolved race conditions"
| return Promise.race(requests); | ||
| } | ||
|
|
||
| async ASR_received(): Promise<any> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
special scenario "ask and wait"
|
|
||
| this.ros = null; | ||
| this.connected = false; | ||
| this.rosbridgeIP = "ws://localhost:9090"; // rosbridgeIP option includes port |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used
| import 'firebase/compat/database'; | ||
| import firebase from 'firebase/compat/app'; | ||
|
|
||
| const config = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move authentication data, on firebase end -- fix permissions
No description provided.