Video#
- module:
Record a video while performing a simulation.
- Parameters:
path – The path where to save the video. Should have a valid video format suffix supported by ffmpeg (e.g.,
.mp4
) or.gif
.world – The world to simulate
time_step – The time step
duration – The simulation duration
factor – The real-time factor
fps – The video fps
follow – Optional agent to center the view on
kwargs – Arguments forwarded to
navground.sim.ui.svg_for_world()
- Para bounds:
Optional view area (relative id
follow
is specified)
Create a video from a recorded simulation.
- Parameters:
path – The path where to save the video. Should have a valid video format suffix supported by ffmpeg (e.g.,
.mp4
) or.gif
.run – The recorded run
factor – The real-time factor
fps – The video fps
follow – Optional agent to center the view on
kwargs – Arguments forwarded to
navground.sim.ui.svg_for_world()
- Para bounds:
Optional view area (relative id
follow
is specified)
Perform a simulation and displays the recorded video in a notebook
- Parameters:
world – The world to simulate
time_step – The time step
duration – The simulation duration
factor – The real-time factor
fps – The video fps
display_width – The size of the video view
follow – Optional agent to center the view on
kwargs – Arguments forwarded to
navground.sim.ui.svg_for_world()
- Para bounds:
Optional view area (relative id
follow
is specified)
Displays a video created from a recorded simulation in a notebook
- Parameters:
run – The recorded run
factor – The real-time factor
fps – The video fps
display_width – The size of the video view
follow – Optional agent to center the view on
kwargs – Arguments forwarded to
navground.sim.ui.svg_for_world()
- Para bounds:
Optional view area (relative id
follow
is specified)