Skip to content

Commit

Permalink
[Receptionist] really important commit...not but the last one was rel…
Browse files Browse the repository at this point in the history
…evant i swear
  • Loading branch information
Julislz committed Mar 29, 2024
1 parent 09d38d5 commit c3900b6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions demos/pycram_receptionist_demo/Ms3_receptionist_demo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from pycram.designators.action_designator import DetectAction, NavigateAction, LookAtAction
from pycram.designators.motion_designator import TalkingMotion
import demos.pycram_receptionist_demo.utils.misc as misc
from pycram.designators.action_designator import DetectAction
from demos.pycram_receptionist_demo.utils.new_misc import *
from pycram.process_module import real_robot
import pycram.external_interfaces.giskard as giskardpy
Expand Down Expand Up @@ -43,15 +41,16 @@ def data_cb(data):


with real_robot:

# receive data from nlp via topic
rospy.Subscriber("nlp_out", String, data_cb)

while not misc.doorbell:
while not doorbell:
# TODO: spin or sleep better?
# TODO: Failure Handling, when no bell is heard for a longer period of time
rospy.spin()

# NavigateAction([misc.pose_door]).resolve().perform()
# NavigateAction([pose_door]).resolve().perform()
# giskardpy.opendoor()

TalkingMotion("Welcome, please come in").resolve().perform()
Expand Down

0 comments on commit c3900b6

Please sign in to comment.