Skip to content

Commit

Permalink
Remove duplicate IK call in Planner.plan_qpos_to_pose
Browse files Browse the repository at this point in the history
  • Loading branch information
KolinGuo committed Apr 15, 2024
1 parent b0a320d commit d6049ed
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions mplib/planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,19 +666,6 @@ def plan_qpos_to_pose(
# we need to take only the move_group joints when planning
# idx = self.move_group_joint_indices

# TODO(merge): verify this
ik_status, goal_qpos = self.IK(goal_pose, current_qpos, mask)
if ik_status != "Success":
return {"status": ik_status}

if verbose:
print("IK results:")
for i in range(len(goal_qpos)): # type: ignore
print(goal_qpos[i]) # type: ignore

# goal_qpos_ = [goal_qpos[i][move_joint_idx] for i in range(len(goal_qpos))]
self.robot.set_qpos(current_qpos, True)

ik_status, goal_qpos = self.IK(goal_pose, current_qpos, mask)
if ik_status != "Success":
return {"status": ik_status}
Expand Down

0 comments on commit d6049ed

Please sign in to comment.