Skip to content

Commit

Permalink
Update robot.py: remove unnecessary env._step()
Browse files Browse the repository at this point in the history
  • Loading branch information
YoruCathy authored Nov 29, 2023
1 parent 39e55c2 commit d558955
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyrcareworld/pyrcareworld/agents/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ def moveTo(self, targetPose: list, targetRot=None) -> None:
else:
joint_positions = self.ik_controller.calculate_ik_recursive(targetPose)
self.setJointPositions(joint_positions)
self.env._step()

def directlyMoveTo(self, targetPose: list, targetRot: list = None) -> None:
if targetRot is not None:
Expand All @@ -449,7 +448,6 @@ def directlyMoveTo(self, targetPose: list, targetRot: list = None) -> None:
else:
joint_positions = self.ik_controller.calculate_ik_recursive(targetPose)
self.setJointPositionsDirectly(joint_positions)
self.env._step()

def SetBioIKTargetOffset(self, IKTargetOffset: list) -> None:
pass
Expand Down

0 comments on commit d558955

Please sign in to comment.