-
Notifications
You must be signed in to change notification settings - Fork 12
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 find empty seat2 #1316
base: master
Are you sure you want to change the base?
Conversation
92ee2ef
to
d1b9645
Compare
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.
No real functional changes here. Added some general tips but I dont think these changes add value just yet.
""" | ||
Iterate over all seat-type objects and check that their 'on-top-of' volume is empty | ||
That can be done with an Inspect and then query for any Entities inside that volume. | ||
If there are none, then the seat is empty | ||
""" | ||
|
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.
Add information on the arguments in the docstring. What do the arguments mean?
# This is needed because the head is not entirely still when the look_at_point function finishes | ||
time.sleep(0.5) |
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.
This is no longer true for Hero. It was a hack for Amigo
from .world_model import look_at_segmentation_area | ||
|
||
|
||
class LookAtEntity(smach.State): |
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.
this function is more at place in world_model.py
@@ -0,0 +1,177 @@ | |||
#! /usr/bin/env python |
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.
This file is not needed unless you want to test this version and the original side by side. I think it was originally created as a tournament hack. But now you may feel free to make changes to find_empty_seat.py
|
||
|
||
class PeopleInSeatDesignator(ds.Designator): | ||
def __init__(self, robot, seat: Entity, room: Entity = None, name=None): | ||
def __init__(self, robot, seat: Entity, volume: Entity = None, name=None): |
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.
- please add a docstring to define what the arguments mean.
- why switch from room to volume. Volume is more general but it is so general is is meaningless.
No description provided.