Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to dispatch clean task through rmf dashboard in Hotel World(rmf-demos_gz_classic) #413

Open
rmj1405 opened this issue Jan 12, 2024 Discussed in #412 · 1 comment

Comments

@rmj1405
Copy link

rmj1405 commented Jan 12, 2024

Discussed in #412

Originally posted by rmj1405 January 11, 2024
Hi, I've been trying to figure this out for 3 days and no matter what I do, I keep getting the same error and the task is not dispatched. CleanerbotA is able to move if it gets assigned a patrol task but never gets assigned a cleaning task. If I try to assign a clean task via the CLI as shown in the rmf-demos repo, it will work just fine. I am not understanding what is going wrong when I do it through the RMF-dashboard

hotel-world clean task error

My setup:
ROS2 humble
Latest Open-RMF Source Build from main branch
RMF-web dashboard, server
Ubuntu 22.04

Things I've tried:

  1. increasing the bidding_time_window in common.launch.xml in rmf_demos/launch from 2.0s to 20.s
  2. Modify the task capabilities in rmf_demos/rmf_demos/config/hotel/cleanerBotA_config.yaml as such:
task_capabilities: # Specify the types of RMF Tasks that robots in this fleet are capable of performing
    loop: False  //I changed this to True
    delivery: False
    clean: True // I added this
  actions: ["clean"] //I tried both with and without this

I have been making edits in the src folder and building with colcon after doing so. I have also scoured through the Dispatcher.cpp and Auctioneer.cpp files to get a sense of what is going on. I'm not sure why the robots are not bidding for the cleaning tasks and why are cleaning tasks not being accepted? Help would be greatly appreciated thank you!!

@aaronchongth
Copy link
Member

aaronchongth commented Jan 12, 2024

Hey @rmj1405! Sorry to hear that you are having issues with this. I believe the task schema used for the cleaning task on the dashboard might not be the most up-to-date one, hence submitting a task through the dashboard is broken at the moment. You can compare the schemas used in the dashboard, https://github.com/open-rmf/rmf-web/blob/main/packages/react-components/lib/tasks/create-task.tsx#L538, and the one in rmf_demos, and make the necessary changes required for now.

We will be refactoring how we support task schemas on the dashboard in the coming months, but haven't gotten around to fix any current broken tasks for the demos. If you managed to fix it for your use case, it'd be greatly appreciated if you could start a PR to fix it on main too.

Aside from that, please refrain from duplicating discussions, #412 in the future.

edit: probably related to open-rmf/rmf-web#639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants