Skip to content

Commit

Permalink
Add target_link param to plan (#30)
Browse files Browse the repository at this point in the history
Although `target_link` is a parameter to `move_to_pose`, it isn't used if `self.__execute_via_moveit` is False. This commit addresses that.
  • Loading branch information
amalnanavati authored Jul 13, 2023
1 parent 29dc040 commit 6973d6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pymoveit2/moveit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def move_to_pose(
position=position,
quat_xyzw=quat_xyzw,
frame_id=frame_id,
target_link=target_link,
tolerance_position=tolerance_position,
tolerance_orientation=tolerance_orientation,
weight_position=weight_position,
Expand Down Expand Up @@ -343,6 +344,7 @@ def plan(
joint_positions: Optional[List[float]] = None,
joint_names: Optional[List[str]] = None,
frame_id: Optional[str] = None,
target_link: Optional[str] = None,
tolerance_position: float = 0.001,
tolerance_orientation: float = 0.001,
tolerance_joint_position: float = 0.001,
Expand All @@ -364,6 +366,7 @@ def plan(
self.set_position_goal(
position=position,
frame_id=frame_id,
target_link=target_link,
tolerance=tolerance_position,
weight=weight_position,
)
Expand All @@ -372,6 +375,7 @@ def plan(
self.set_orientation_goal(
quat_xyzw=quat_xyzw,
frame_id=frame_id,
target_link=target_link,
tolerance=tolerance_orientation,
weight=weight_orientation,
)
Expand Down

0 comments on commit 6973d6c

Please sign in to comment.