[Feature request]: Enhancing Robot Fleet Management with Custom Error Handling in RMF Fleet Adapter #521
Replies: 3 comments 2 replies
-
I've moved this ticket to the discussion board as it's the right place to discuss such questions.
I guess you're referring to the
It's unclear to me what the robot is doing when it reports that it has aborted the task so are many ways to accomplish what you have asked. I assume you already have a way to be notified when the robot aborts a task.
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your insights! My fleet manager can notify me if a navigation or action task is aborted, still running, or completed successfully. I'm using the Python binding of rmf_adapter, and to ensure that the okay() API returns false when the robot reports that a navigation request has been aborted Should I modify the implementation of okay() in EasyFullControl.cpp, or is there a different approach I should take? |
Beta Was this translation helpful? Give feedback.
-
@Yadunund In the RMF Fleet Adapter, I'm trying to simulate task failures and handle aborted tasks in the CommandExecution object. Specifically, I want to modify the okay() method in the CommandExecution object so that it returns False when a task is aborted, indicating that the task has failed. However, I encountered the following error:
|
Beta Was this translation helpful? Give feedback.
-
Before proceeding, is there an existing issue or discussion for this?
Description
How can I modify the is_command_completed method in the RMF Fleet Adapter's RobotClientAPI to handle scenarios where the robot fails to complete a task? Currently, the method returns True if the last command was completed and False otherwise, but this doesn't account for situations where the robot aborts a task. I need a way to notify the fleet adapter that the task has been aborted so that the robot can either return to parking or attempt the task again, instead of indefinitely waiting for the command to complete. Any suggestions on how to implement this?
Implementation Considerations
No response
Alternatives
No response
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions