[api] Accept SUMO and OpenDRIVE assets with an uploaded config

Đang mở
#231 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

Start at the POST /v1/run handler and trace how it saves the YAML config, selects the shared SUMO assets directory, and invokes OpenCDA and the SUMO adapter. Check where the adapter receives -x and how task cleanup runs. Done means an uploaded archive's SUMO files and optional .xodr map are available under a task-specific name, the map is passed through, and the directory is removed when the task finishes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem or motivation

POST /v1/run accepts only a YAML config. Its file name selects SUMO assets that must already exist in the shared assets directory (opencda/sumo-assets/<name>/ in the OpenCDA container, /home/sumo/assets/<name>/ for the SUMO adapter). The .xodr map used with -x is looked up in the same place, and -x cannot be passed through the API at all.

Scenario Manager generates the SUMO network, routes and, for custom maps, an .xodr file for each scenario. There is no way to deliver them to the node, so these scenarios cannot be run through the API. Placing inputs on the node in advance does not work for scenarios created at run time.

Proposed solution
  • Accept an optional archive with scenario assets in POST /v1/run next to config: the .sumocfg with its network and route files, and optionally an .xodr map.
  • Unpack it into the shared assets directory under a task-specific name and save the config under the same name, so OpenCDA and the SUMO adapter find the files.
  • Pass -x when the archive contains an .xodr.
  • Remove the directory when the task finishes.
Area

Scenario management

Ngôn ngữ chính
Python
Star
11
Fork
11
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CAVISE/OpenCDA

Tất cả issue của CAVISE/OpenCDA

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.