We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d30a92b commit 31c3f1cCopy full SHA for 31c3f1c
rmf_task/include/rmf_task/State.hpp
@@ -105,8 +105,11 @@ class State : public CompositeData
105
/// CurrentOrientation, or CurrentTime) then this will return a std::nullopt.
106
std::optional<rmf_traffic::agv::Plan::Start> extract_plan_start() const;
107
108
- /// Check if the robot is idle, i.e. it is not assigned to any task and is
109
- /// not currently executing any task.
+ /// Check if the robot is idle.
+ ///
110
+ /// True if the robot is not executing any task.
111
+ /// False only when the robot is actively executing a task
112
+ /// (finishing requests are not counted as execution).
113
RMF_TASK_DEFINE_COMPONENT(bool, IsIdle);
114
bool is_idle() const;
115
State& idle(bool is_idle);
0 commit comments