In this article
With both fields nonzero, CancelGoal selects the named goal and goals accepted at or before the cutoff; acceptance still differs from a terminal canceled result.
Adding a timestamp can broaden cancellation
An operator interface wants to cancel a selected robot task. Its adapter copies both the selected goal ID and a timestamp from surrounding task metadata into CancelGoal, expecting the timestamp to validate or narrow the ID. The service contract gives those fields a different meaning. This can select additional accepted goals. Review the selector before sending any physical task request; a correctly serialized service message can still express a broader cancellation than the operator intended.
The service defines the combinations explicitly
The CancelGoal definition distinguishes zero and nonzero values. A nonzero ID with zero timestamp targets the named goal regardless of acceptance time. A zero ID with nonzero timestamp targets goals accepted at or before that time. With both fields nonzero, it targets the named goal and all goals accepted at or before the cutoff. That final case is a union. It is not a request to cancel the named goal only if it satisfies the time condition.
Use the time of goal acceptance, not another clock event
The selector refers to when goals were accepted. An application timestamp for UI creation, sensor acquisition or local receipt is not automatically that boundary. Preserve the origin and clock interpretation of a cutoff used for a group cancellation. For an exact-ID action, do not populate the cutoff merely because another timestamp is available. A wrapper should expose its supported selection modes clearly enough that an operator’s singular cancel action cannot silently become a time-based population request.
Verify the selected population with passive goals
Propose a nonactuating action server with distinguishable goals accepted before and after a declared cutoff. Choose the explicitly named goal from the later population. Compare the ID-only request with the combined-field request and inspect the identities returned in goals_canceling. The combined case should expose eligible older goals as well as the named later goal. Include a boundary goal accepted at the cutoff where the fixture can establish that equality. No action server or robot was run here; this is a proposed protocol-selection test.
A selected goal is not yet a completed cancellation
The response lists goals that accepted cancellation and entered CANCELING. The action design distinguishes that intermediate state from Canceled and permits shutdown work before the result. Keep selection evidence separate from final outcome. Rejection, an unknown identity or an already terminal goal also need their own interpretation. Even a final canceled action result is not independent proof of physical standstill. The application must use its separately defined hardware-state evidence when a motion-related decision requires that fact.
Retain intent, selector and outcomes together
Triton cancellation scope discusses another protocol’s cancellation population. Terminal request records explain why final outcomes need correlation. For ROS, retain the operator intent, actual ID/time selector, returned goal identities and eventual per-goal result. The essential acceptance evidence is that the selected population matches the intended operation. A successful cancel-service response alone cannot establish that no neighboring task was affected or that every selected task has already stopped.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.