Software
rmf_task
By open-rmf, from github.com/open-rmf/rmf_task (opens in a new tab)
- Middleware
- Library
- Apache-2.0
A C++ library of Open-RMF packages for defining, scheduling and allocating tasks across robot fleets. It includes an out-of-the-box sequence-of-phases task implementation.
Facts
- GitHub stars
- 29read on 29 Nov 2026
- Last update
- 27 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Advanced
Checked on GitHub on 29 Nov 2026.
Licenses
- Code
- Apache-2.0 (opens in a new tab)
Read by Robotheca from LICENSE.md (opens in a new tab) (Apache-2.0) at commit 37a1ac0 (opens in a new tab), on 29 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Rmf_task provides abstract interfaces for tasks, including booking, description, model and active execution components.
- Rmf_task includes a task planner that allocates requested tasks among fleet robots to minimise completion durations.
- The planner accounts for robot resource constraints such as battery level and inserts recharging tasks when needed.
- Rmf_task_sequence implements tasks as ordered phases made of events such as GoToPlace, PickUp, DropOff, WaitFor and PerformAction.
- Composed tasks are submitted as JSON payloads whose schemas are defined in rmf_api_msgs and rmf_ros2.
- Users can define how a robot reacts to cancellation or interruption at each phase.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- Apache-2.0. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 27 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/open-rmf/rmf_task (opens in a new tab)
- The version Robotheca read37a1ac0 (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca read the repository at two versions: the summary at 79a276d and the facts and the README at 37a1ac0 (read on 29 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by open-rmf, at commit 37a1ac0, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
rmf_task
Overview
The rmf_task repository contains two packages, rmf_task and rmf_task_sequence.
rmf_task
Provides APIs and base classes for defining and managing Tasks in RMF.
rmf_task::Taskis a pure abstract interface for an executable Task. What this task represents, how it can be modelled and finally executed are left for the user to implement. To aid such implementations, the following classes are available:- Active (opens in a new tab): A pure abstract interface to manage the runtime execution of a Task.
- Booking (opens in a new tab): Stores basic information about the task.
- Description (opens in a new tab): An abstract interface to define the specifics of a task which when implemented help differentiate different tasks from one another.
- Model (opens in a new tab): A pure abstract interface to compute the Estimate (opens in a new tab) state of the robot after the task is completed along with an
invariant_durationwhich is the time component of the task that does not change regardless of where the robot starts. - Tag (opens in a new tab): Static information about the task.
- rmf_task::TaskPlanner (opens in a new tab): API which solves the problem of optimal allocation of tasks among available robots. For a given collection of tasks and robots belonging to a fleet (ie, they share physical and kinematic traits), the planner determines the best ordering of tasks across robots such that tasks are completed in the shortest durations given their requested start times. It does this while also accounting for resource constraints of the robots such as battery level and automatically injects recharging tasks in the robot’s task itinerary when needed. Here tasks are represented by Requests (opens in a new tab) which are made up of
BookingandDescriptionelements respectively.
rmf_task_sequence
Provides an out-of-the-box implementation of rmf_task.
- rmf_task_sequence::Task (opens in a new tab), which assumes a task to be composed of a sequence of phases (opens in a new tab) that need to be executed in-order for the task to be completed. A phase inturn may be composed of a set of Events (opens in a new tab).
- The following events that are presently available (contributions are welcome):
- See Usage for information on how composed tasks are integrated with the rest of Open-RMF.
Full API documentation:
Usage
rmf_task_sequencecontains implementations of the models for the out of the box events and phases. The implementations of how to command the actual robot to perform these events, ie, the Active components, are defined in rmf_fleet_adapter (opens in a new tab) These flexible task definitions are conveyed via json payloads whose schemas are defined in rmf_api_msgs (opens in a new tab). The schemas for the “description” field are provided in rmf_fleet_adapter here (opens in a new tab). The fleet adapter currently only supports tasks that are defined as a sequence of phases as defined in rmf_task_sequence. It can very easily be extended to support other user implemented task definitions.- Users can specify how the robot should react when a task is canceled or interrupted at any given phase. Each phase can have its own unique response and can be described here (opens in a new tab) See Examples below on how to submit tasks to RMF. These tasks can either be directly assigned to a specific robot or have RMF determine the optimal allocation based on its multi-fleet task allocation framework. This is described in greater detail here (opens in a new tab)
Note: When stringing together activities (same as events) in a compose task description (same as flexible task), users need to populate a
categoryanddescriptionfor each activity (opens in a new tab). The schemas for variousdescriptionsare provided here (opens in a new tab). Seeevent_description__Xwhere X is the name of the event. Then, care must be taken to ensure thecategoryis populated with this sameX.
Examples
Examples of constructing and submitting custom tasks is provided in the rmf_demos repository https://github.com/open-rmf/rmf_demos/tree/main/rmf_demos_tasks (opens in a new tab)
ROSCon Presentations with more information
- ROSCon2022: How custom tasks are defined, assigned, and executed in Open-RMF
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.