コード例 #1
0
 def test_interpolate_joints_alpha_half_returns_half_angles(self):
     joints = poses.interpolate_joints(JOINTS_ABC_NERO, JOINTS_ABCD_TEN, ALPHA_0FIVE)
     self.assertDictEqual(JOINTS_ABC_FIVE, joints)
コード例 #2
0
 def test_interpolate_joints_alpha_zero_returns_first_pose(self):
     joints = poses.interpolate_joints(JOINTS_ABC_NERO, JOINTS_ABCD_TEN, ALPHA_ZERO)
     self.assertDictEqual(JOINTS_ABC_NERO, joints)
コード例 #3
0
 def test_interpolate_joints_alpha_one_returns_angles_from_second_set(self):
     joints = poses.interpolate_joints(JOINTS_ABC_NERO, JOINTS_ABCD_TEN, ALPHA_ONE)
     self.assertDictEqual(JOINTS_ABC_TEN, joints)
コード例 #4
0
 def test_interpolate_joints_returns_same_joints_keys_as_orginal(self):
     joints = poses.interpolate_joints(JOINTS_ABC_NERO, JOINTS_ABCD_TEN, ALPHA_ZERO)
     self.assertSequenceEqual(set(JOINTS_ABC_NERO.keys()), set(joints.keys()))