-
Notifications
You must be signed in to change notification settings - Fork 16
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
Receptionist update with deepface #212
Conversation
- When indicating a free seat with its head, it will move on if the head is stuck - Give the guest 5 seconds to be seated before moving on
Not sure the "tasks/receptionist/src/receptionist/states/get_attributes.py" file has been resolved correctly, would appreciate another look |
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.
Really great work, very impressive first contributions! I've left some comments for you to address before we can merge this in 😄!
common/vision/lasr_vision_deepface/src/lasr_vision_deepface/deepface.py
Outdated
Show resolved
Hide resolved
@@ -13,7 +13,7 @@ class ParseNameAndDrink(smach.State): | |||
def __init__( | |||
self, | |||
guest_id: str, | |||
param_key: str = "receptionist/priors", | |||
param_key: str = "/priors", |
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.
param_key: str = "/priors", | |
param_key: str = "/receptionist/priors", |
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.
/receptionist/... breaks the code.
tasks/receptionist/src/receptionist/states/get_name_and_drink.py
Outdated
Show resolved
Hide resolved
tasks/receptionist/src/receptionist/states/get_name_and_drink.py
Outdated
Show resolved
Hide resolved
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.
I feel like this should be a skill instead
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.
I'll look into this.
class GuestSeatWait(smach.State): | ||
def __init__(self): | ||
smach.State.__init__(self, outcomes=["succeeded", "failed"]) | ||
|
||
def execute(self, userdata) -> str: | ||
# Wait 5 seconds for user to sit down | ||
try: | ||
wait_time = 5 | ||
print(f"Waiting for {wait_time} seconds for the user to sit down.") | ||
rospy.sleep(wait_time) | ||
return "succeeded" | ||
except: | ||
print("Waiting for the guest to sit down failed") | ||
return "failed" |
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.
Might be worth adding a generic Sleep
skill that takes the number of seconds to sleep for in the constructor?
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.
I'll look into it
This PR is deprecated as PR #221 has taken over |
Added into receptionist: