Posted by @rubenanapu:
Hi all,
when I submit a task using RMF Panel I get a task_id, something like: demos_cff3ebac-9b42-48c5-a3e5-7cec237f693d
But if I try to list the tasks by pressing the REFRESH button on the Tasks area of RMF Panel, I get an empty list.
After enabling JavaScript Developers Console, I see it calls http://localhost:8083/task_list, which always returns an empty list, even when I have a Delivery task running. If I send another task right away, it also still shows an empty list.
When I check the fleet_states topic with ros2 topic echo /fleet_states, I can see the robot, but the task_id is always an integer, something like task_id: ‘155’. I can never see the ID that appears when calling /submit_task.
Does anybody know how to make the /fleet_states
show the id returned by /submit_task?
What am I really trying to do?
What I’m really trying to do is to show the list of finished, waiting, and running tasks in a dashboard, but these IDs that don’t match and the empty list on /task_list are not helping, and that is why I started this discussion.
Please feel free to correct me if I misunderstand something.
Chosen answer
Answer chosen by @rubenanapu at 2023-01-31T12:11:32Z.
Answered by @aaronchongth:
Hello @rubenanapu! Are you perhaps referring to the success snack bar that appears in the panel, saying something along the lines of Request submitted successfully! Task ID: .....
?
Thanks for bringing this up, unfortunately rmf-panel-js
is not actively being maintained, and has quite a number of legacy features and concepts, including the generation of such uuids. These uuids are created by the dispatcher_client
from rmf_demos_panel
, https://github.com/open-rmf/rmf_demos/blob/main/rmf_demos_panel/rmf_demos_panel/dispatcher_client.py#L96.
I would recommend switching over the our web dashboard, GitHub - open-rmf/rmf-web, which we are actively developing, where the task IDs are accurately reflected (same as from /fleet_states
), and the task statuses are up to date too.