open-rmf / rmf_ros2

Internal ROS infrastructure for RMF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

segfault on task cancellation

cnboonhan opened this issue · comments

I seem to segfault the fleet adapter when i try to cancel tasks using swagger api of rmf-web.

segfault.mp4

To reproduce, use this workspace: test.repos.txt then run

# RMF
ros2 launch rmf_demos_gz office.launch.xml server_uri:="ws://localhost:8001" headless:=1 use_sim_time:=false

# rmf-web
RMF_API_SERVER_USE_SIM_TIME=false rmf_api_server
npm run start:react
(in task panel in dashboard , Send Loop request)

# localhost:8000/docs, send this under POST /task/cancel_task
{
  "type": "cancel_task_request",
  "task_id": "patrol.dispatch-0",
  "labels": [
    "string"
  ]
}
commented

This is fixed by open-rmf/rmf_task#57