multi_agent_path_planning icon indicating copy to clipboard operation
multi_agent_path_planning copied to clipboard

Added missing canvas in the case of video-output

Open notger opened this issue 2 years ago • 0 comments

For the video to be save-able, you need to define the canvas before the FunctionAnimation, but you may only do so for the video output, not for the regular plotting-window output. (Why that is, is beyond me but does not seem worth investigating right now.)

Also, while at it, cleaned up the code a bit and removed unused imports.

Way to verify that the fix works:

> cd centralized/cbs
> python3 ../visualize.py input.yaml output.yaml --video test.mpeg

Solves issue #10 .

notger avatar May 19 '22 08:05 notger