Feature/button hri#1
Conversation
…i_keys Bugfix/api keys
…ase, receiving button press from firebase, and triggering navigation + vc from there
| class FirebaseNode: | ||
| def __init__(self, schema, operation_mode_callback, teleop_mode_callback): | ||
| firebase_secrets_path = os.path.expanduser("~/ws/api_keys/firebase_secrets.json") | ||
| firebase_secrets_path = os.path.expanduser("~/firebasesecrets.json") |
There was a problem hiding this comment.
lets standardize this and make it ".firebase_secrets.json"
There was a problem hiding this comment.
I believe the file resides as .alfred-auxilio-firebase-adminsdk.json on both our robots
There was a problem hiding this comment.
organize this into correct directory (separate backup directory)
|
|
||
| self.last_update = time.time() | ||
|
|
||
| self.bot_state = BotStateManager(self.stateUpdateCallback) |
There was a problem hiding this comment.
botstatemanager and firebase have to somehow be merged to ensure teleop runs smoothly. architecture to be discussed
| 'fetch_banana' : [LocationOfInterest.LIVING_ROOM, ObjectOfInterest.BANANA], | ||
| } | ||
|
|
||
| self.navigationGoal = None |
There was a problem hiding this comment.
navigation goal to be made more modular and easily updatable since there will be several rooms in the facility
| self.bot_state.update_state() | ||
| self.bot_state.currentGlobalState = GlobalStates.REACHED_GOAL | ||
| rospy.loginfo(f"[{rospy.get_name()}]:" +"Reached {}".format(locationName)) | ||
| rospy.loginfo(f"[{rospy.get_name()}]:" +"Reached Table") |
There was a problem hiding this comment.
will be better to keep this modular so that we can have accurate logs instead of hardcoding
…g not perfect yet
Signed-off-by: Shaolin Kataria <48819365+shaolink8@users.noreply.github.com>
| #define API_KEY "AIzaSyCOGooVhBRo-IXpRi5E96KUFQekYXEGfpg" | ||
|
|
||
| #define DATABASE_URL "https://alfred-auxilio-default-rtdb.firebaseio.com/" //<databaseName>.firebaseio.com or <databaseName>.<region>.firebasedatabase.app |
There was a problem hiding this comment.
| #define API_KEY "AIzaSyCOGooVhBRo-IXpRi5E96KUFQekYXEGfpg" | |
| #define DATABASE_URL "https://alfred-auxilio-default-rtdb.firebaseio.com/" //<databaseName>.firebaseio.com or <databaseName>.<region>.firebasedatabase.app |
API key present
| class FirebaseNode: | ||
| def __init__(self, schema, operation_mode_callback, teleop_mode_callback): | ||
| firebase_secrets_path = os.path.expanduser("~/ws/api_keys/firebase_secrets.json") | ||
| firebase_secrets_path = os.path.expanduser("~/firebasesecrets.json") |
There was a problem hiding this comment.
I believe the file resides as .alfred-auxilio-firebase-adminsdk.json on both our robots
pls review