17
34
# store the joints in common between the 2 grasps, with a table
19
36
self.from_grasp1_to_grasp2 = {}
21
38
for joint in self.grasp_from.joints_and_positions.keys():
22
39
#if joint in self.grasp_to.joints_and_positions.keys():
23
40
self.from_grasp1_to_grasp2.update({joint: [self.grasp_from.joints_and_positions.get(joint),self.grasp_to.joints_and_positions.get(joint)]})
25
42
def set_percentage_grasp1_to_grasp2(self, percentage):
27
44
move to a given percentage between grasp1 and grasp2