bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
multi_agent_gif Namespace Reference

Functions

 frame (fig)
 grid (layout_path, episode_path, out, title)
 robots (path, out, title, every)
 main ()

Variables

list COLOURS

Detailed Description

Make a GIF of an episode of bitrl's multi-agent examples.

grid:   multi_agent_grid_world writes layout.txt, the map ('#' a wall, a lower
        case letter the goal of the agent with that letter in upper case), and
        episode.csv, a row per agent per step: step,agent,row,col,done.
robots: multi_robot_navigation writes trajectories.csv, a row per robot per
        step: step,robot,x,y,theta,goal_x,goal_y,radius.

Usage: python multi_agent_gif.py grid layout.txt episode.csv --out grid.gif
       python multi_agent_gif.py robots trajectories.csv --out robots.gif [--every 2]

Needs matplotlib and imageio.

Function Documentation

◆ frame()

multi_agent_gif.frame ( fig)

◆ grid()

multi_agent_gif.grid ( layout_path,
episode_path,
out,
title )

◆ main()

multi_agent_gif.main ( )

◆ robots()

multi_agent_gif.robots ( path,
out,
title,
every )

Variable Documentation

◆ COLOURS

list multi_agent_gif.COLOURS
Initial value:
1= ["#1f77b4", "#d62728", "#2ca02c", "#ff7f0e", "#9467bd", "#8c564b",
2 "#e377c2", "#17becf", "#bcbd22", "#7f7f7f", "#393b79", "#637939"]