44 Plays back an entire interaction- all poses specified in an interaction file 47 kt = KinestheticTeaching()
49 rospack = rospkg.RosPack()
50 path = rospack.get_path(
'svenzva_utils')
51 filename =
"skating_propel.yaml" 53 f = open(path+
"/config/" + filename)
54 qmap = yaml.load(f, Loader=yamlordereddictloader.Loader)
57 rospy.logerr(
"Error opening kinesthetic interaction file")
61 for i
in range(0,iterations):
62 if rospy.is_shutdown():
65 kt.js_playback(qmap, state)
66 kt.wait_for_stall(qmap[state])
68 if __name__ ==
'__main__':
69 rospy.init_node(
'svenzva_kinesthic_teaching_demo', anonymous=
False)
72 except rospy.ROSInterruptException:
def playback_interaction()