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

Receptionist find empty seat2 #1316

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

MatthijsBurgh
Copy link
Member

No description provided.

@MatthijsBurgh MatthijsBurgh force-pushed the receptionist_find_empty_seat2 branch from 92ee2ef to d1b9645 Compare May 16, 2023 20:05
Copy link
Contributor

@PetervDooren PetervDooren left a 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.

Comment on lines +51 to +56
"""
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
"""

Copy link
Contributor

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?

Comment on lines +41 to +42
# This is needed because the head is not entirely still when the look_at_point function finishes
time.sleep(0.5)
Copy link
Contributor

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):
Copy link
Contributor

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
Copy link
Contributor

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):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. please add a docstring to define what the arguments mean.
  2. why switch from room to volume. Volume is more general but it is so general is is meaningless.

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.

3 participants