Skip to content

Commit

Permalink
Fix getJointInfo error from BASE_LINK in plan_cartesian_motion
Browse files Browse the repository at this point in the history
  • Loading branch information
yijiangh committed Oct 20, 2023
1 parent 26fa730 commit 26dc258
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ def plan_cartesian_motion(self, robot, frames_WCF, start_configuration=None, gro
# pos_tolerance=pos_tolerance, ori_tolerance=ori_tolerance))

if planner_id == 'IterativeIK':
selected_links = [link_from_name(robot_uid, l) for l in robot.get_link_names(group=group)]
selected_links = []
for l in robot.get_link_names(group=group):
link_id = link_from_name(robot_uid, l)
if link_id != pp.BASE_LINK:
selected_links.append(link_id)
if customized_ikinfo is None:
path = plan_cartesian_motion_from_links(robot_uid, selected_links, tool_link,
ee_poses, custom_limits=pb_custom_limits, get_sub_conf=False, options=options, attachments=attachments)
Expand Down

0 comments on commit 26dc258

Please sign in to comment.