fix Issue 2039

This commit is contained in:
Erwin Coumans
2019-01-28 16:24:44 -08:00
parent 0818112ede
commit 63683e8f02

View File

@@ -235,6 +235,8 @@ class BodyPart:
(x, y, z), (a, b, c, d), _, _, _, _ = self._p.getLinkState(body_id, link_id)
return np.array([x, y, z, a, b, c, d])
def get_position(self): return self.current_position()
def get_pose(self):
return self.state_fields_of_pose_of(self.bodies[self.bodyIndex], self.bodyPartIndex)