Skip to content

Commit

Permalink
Use cartesian_speed_limited_link instead of `cartesian_speed_end_ef…
Browse files Browse the repository at this point in the history
…fector_link` when available

Signed-off-by: Andrej Orsula <[email protected]>
  • Loading branch information
AndrejOrsula committed Mar 29, 2024
1 parent bfd5c15 commit e565925
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pymoveit2/moveit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,11 @@ def __init_move_action_goal(
move_action_goal.request.allowed_planning_time = 0.5
move_action_goal.request.max_velocity_scaling_factor = 0.0
move_action_goal.request.max_acceleration_scaling_factor = 0.0
move_action_goal.request.cartesian_speed_limited_link = end_effector
# Note: Attribute was renamed in Iron (https://github.com/ros-planning/moveit_msgs/pull/130)
if hasattr(move_action_goal.request, "cartesian_speed_limited_link"):
move_action_goal.request.cartesian_speed_limited_link = end_effector
else:
move_action_goal.request.cartesian_speed_end_effector_link = end_effector
move_action_goal.request.max_cartesian_speed = 0.0

# move_action_goal.planning_options.planning_scene_diff = "Ignored"
Expand Down

0 comments on commit e565925

Please sign in to comment.