Skip to content

Commit

Permalink
Fix bug in previous PR (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
amalnanavati authored May 10, 2024
1 parent d034cd2 commit 38467ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymoveit2/moveit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1936,11 +1936,11 @@ def _plan_cartesian_path(
)

# The below attributes were introduced in Iron and do not exist in Humble.
if hasattr(__cartesian_path_request, "max_velocity_scaling_factor"):
if hasattr(self.__cartesian_path_request, "max_velocity_scaling_factor"):
self.__cartesian_path_request.max_velocity_scaling_factor = (
self.__move_action_goal.request.max_velocity_scaling_factor
)
if hasattr(__cartesian_path_request, "max_acceleration_scaling_factor"):
if hasattr(self.__cartesian_path_request, "max_acceleration_scaling_factor"):
self.__cartesian_path_request.max_acceleration_scaling_factor = (
self.__move_action_goal.request.max_acceleration_scaling_factor
)
Expand Down

0 comments on commit 38467ad

Please sign in to comment.