Closed TheSpeedM closed 4 months ago
For anyone wondering how to stop the execution, this is what i found in the pymoveit2
repo:
self.__cancellation_pub = self._node.create_publisher(
String, "/trajectory_execution_event", 1
)
cancel_string = String()
cancel_string.data = "stop"
self.__cancellation_pub.publish(cancel_string)
Closing issue, even though I think this should be documented and the cancel action method should be supported.
Description
When sending a RobotTrajectory to the /execute_trajectory action of the move_group and canceling the action while it is executing it doesn't actually stop the movement. I'm not sure if I am doing something wrong or it doesn't work, any help is welcome.
I am aware that this is not a reproducible example. Will add one if necessary and I have some more time.
Your environment
Code snippets
This function sends the robottrajectory to the action (which it accepts and it starts moving).
if not self._goal_handle.accepted: self.state_machine.state = 'error' continue
res = await self._goal_handle.get_result_async() result = res.result status = res.status
Backtrace or Console output