Go to the documentation of this file.00001
00002 '''This runs the "core" of the PbD backend.
00003 It handles the interactions between the GUI and the state of the world
00004 and recorded actions.
00005 It coordinates responses from the head and arms of the robot.
00006 '''
00007
00008
00009
00010
00011
00012
00013 import rospy
00014
00015
00016 from fetch_pbd_interaction import Interaction
00017
00018
00019
00020
00021
00022 if __name__ == '__main__':
00023
00024
00025 rospy.init_node('interaction', anonymous=True)
00026 grasp_suggestion_service = rospy.get_param('~grasp_suggestion_service')
00027 external_ee_link = rospy.get_param('~grasp_suggestion_ee_link')
00028 grasp_feedback_topic = rospy.get_param('~grasp_feedback_topic')
00029 to_file = rospy.get_param('~to_file')
00030 from_file = rospy.get_param('~from_file')
00031 play_sound = rospy.get_param('~play_sound')
00032 social_gaze = rospy.get_param('~social_gaze')
00033
00034
00035 interaction = Interaction(grasp_suggestion_service,
00036 grasp_feedback_topic,
00037 external_ee_link,
00038 to_file, from_file,
00039 play_sound, social_gaze)
00040
00041 while not rospy.is_shutdown():
00042 interaction.update()
00043
00044
00045
00046
00047 rospy.sleep(0.1)