MAPF-Competition / PlanViz

An offline visualization tool for analysing solutions to multi-robot coordination problems.
https://www.leagueofrobotrunners.org/
MIT License
21 stars 8 forks source link

Cannot run for large maps (orz900d from moving ai benchmark) #1

Closed YueZhang-studyuse closed 1 year ago

YueZhang-studyuse commented 1 year ago

I try to run visualiser for a very large map, but it fail to run. The map I use: orz900d from moving ai benchmark (https://movingai.com/benchmarks/mapf/index.html) My path is only for 10 agents, once I run, it only show a window with the map, but no moves, no agents, no grids. I try to run using another laptop, it cannot even run, with showing the error: ===== Initialize MAPF visualizer ===== Loading map from ./example/orz900d.map... Done! Loading scen from ./example/orz900d-even-1.scen... Done! Loading paths from ./example/result.path... Done! Loading paths from ./example/result.path... Done! Loading conflicts from ./example/invalid_result.conf... Rendering the pannel... Done! Rendering the environment ... Done! Rendering the agents... Done! INFO:root:Show start and goal locations. INFO:root:Marking colliding agents. X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 53 (X_CreatePixmap) Serial number of failed request: 1533 Current serial number in output stream: 3839

For smaller maps (ie. random, small warehouse from my test), it can run successfully.

YueZhang-studyuse commented 1 year ago
image

The command I use: python plan_vis.py --config ./example/config.yaml The config file I use: map_file: "./example/orz900d.map" scen_file: "./example/orz900d-even-1.scen" plan_file: "./example/result.path" exec_file: "./example/result.path" conf_file: "./example/invalid_result.conf" num_of_agents: 10 show_grid: true show_ag_idx: true show_static: true show_conf_ag: true pixel_per_move: 1 moves: 1 delay: 0.08

nobodyczcz commented 1 year ago

The program is super slow on a Mac. Need performance optimisation for Mac and Non-GPU machines. Need investigation why it runs fast on ShaoHung's Linux machine

shchan13 commented 1 year ago

I set both --ppm and --mv to 1, and it works well on Ubuntu 18.04