Skip to content

[Bug]: Task Continues Execution After a dispenser_result Reports Failure #330

@alex-roba

Description

@alex-roba

Before proceeding, is there an existing issue or discussion for this?

OS and version

24.04

Open-RMF installation type

Source build

Other Open-RMF installation methods

No response

Open-RMF version or commit hash

main

ROS distribution

Jazzy

ROS installation type

Binaries

Other ROS installation methods

No response

Package or library, if applicable

No response

Description of the bug

In the current implementation of Open RMF task execution, when an action like a dispenser interaction reports a fail result (e.g., via dispenser_result), the overall task is correctly marked as failed.
However, the task sequence does not halt. Any remaining activities or phases scheduled after the failed dispenser action continue to be executed by the robot.

Steps to reproduce the bug

  1. A task is dispatched that includes a dispenser action followed by other actions (e.g., moving to a new location).
  2. The dispenser action fails and sends a dispenser_result with a failure status.
  3. The task's overall state is reported as failed in the RMF dashboard/API.
  4. Despite the failure, the fleet adapter proceeds to execute the next phase in the task sequence (e.g., the robot starts moving to the next waypoint).

Expected behavior

No response

Actual behavior

No response

Additional information or screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions