robotraconteur_cancel_sequence
Stops running sequences by sequence_ids, aborting active generators and halting robot joint moves initiated by those sequences; use it to cancel grouped sequence runs on demand.
Instructions
Stop running sequences, given by sequence_ids, such as all those of one start call, at once. A cancel from the model arrives one turn after the last result, often seconds later, so to stop at a set time or on something happening, use max_duration_s or a stop_when step instead. A generator it is running, such as a trajectory, is aborted on the service, and a robot moved by robot_move_joints is also halted. It does not stop work that a service started from an ordinary function call that returned at once, such as a motion started without waiting for it, so stop that with the service's own command, such as in on_stop. An ordinary function call that is still running, such as a motion called with wait true, is not interrupted either: the sequence stops at once, but the service goes on until the call returns. Returns the sequence's final state and results, stopped, which says whether a step was stopped or the sequence was between steps, and not_run, how many step runs never started. If the sequence had already finished, cancel says so, and nothing is cancelled.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sequence_ids": "<sequence_ids>"
},
"name": "robotraconteur_cancel_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sequence_ids | Yes | The sequences to stop, from robotraconteur_start_sequence. The result gives each in order, in sequences |