Skip to content

Commit

Permalink
fixed max\_cartesian\_speed setter to set the right variable for the
Browse files Browse the repository at this point in the history
planning request
added max\_cartesian\_acceleration setter and getter
  • Loading branch information
Zarnack committed Mar 25, 2024
1 parent bd63d26 commit 68c345c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pymoveit2/moveit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2034,11 +2034,19 @@ def max_acceleration(self, value: float):

@property
def max_cartesian_speed(self) -> float:
return self.__move_action_goal.request.max_cartesian_speed
return self.__cartesian_path_request.max_velocity_scaling_factor

@max_cartesian_speed.setter
def max_cartesian_speed(self, value: float):
self.__move_action_goal.request.max_cartesian_speed = value
self.__cartesian_path_request.max_velocity_scaling_factor = value

@property
def max_cartesian_acceleration(self) -> float:
return self.__cartesian_path_request.max_acceleration_scaling_factor

@max_cartesian_acceleration.setter
def max_cartesian_acceleration(self, value: float):
self.__cartesian_path_request.max_acceleration_scaling_factor = value

@property
def num_planning_attempts(self) -> int:
Expand Down

0 comments on commit 68c345c

Please sign in to comment.