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 (#56)

* Update msg

* Use  `cartesian_speed_limited_link` instead of `cartesian_speed_end_effector_link` when available

Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>

---------

Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>
Co-authored-by: Apurv Saha <apurv.robotics@gmail.com>
  • Loading branch information
AndrejOrsula and Apurv354 authored Mar 30, 2024
1 parent 93ca9aa commit ed6f867
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 @@ -2056,7 +2056,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_end_effector_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 ed6f867

Please sign in to comment.