Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added setting of cartesian speed and acceleration #53

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions pymoveit2/moveit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,15 @@ def _plan_cartesian_path(
self.__cartesian_path_request.start_state = (
self.__move_action_goal.request.start_state
)

self.__cartesian_path_request.max_velocity_scaling_factor = (
self.__move_action_goal.request.max_velocity_scaling_factor
)

self.__cartesian_path_request.max_acceleration_scaling_factor = (
self.__move_action_goal.request.max_acceleration_scaling_factor
)

self.__cartesian_path_request.group_name = (
self.__move_action_goal.request.group_name
)
Expand Down Expand Up @@ -2032,14 +2041,6 @@ def max_acceleration(self) -> float:
def max_acceleration(self, value: float):
self.__move_action_goal.request.max_acceleration_scaling_factor = value

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

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

@property
def num_planning_attempts(self) -> int:
return self.__move_action_goal.request.num_planning_attempts
Expand Down