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 – Optional configuration: same fields as
navground.sim.ui.RenderConfig.
- Para bounds:
Optional view area (relative id
followis specified)
The actual configuration is computed by looking (in order) to
the arguments of this function;
the world-specific configuration
navground.sim.World.render_kwargs;the default configuration
navground.sim.ui.render_default_config.
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 – Optional configuration: same fields as
navground.sim.ui.RenderConfig.
- Para bounds:
Optional view area (relative id
followis specified)
The actual configuration is computed by looking (in order) to
the arguments of this function;
the world-specific configuration
navground.sim.World.render_kwargs;the default configuration
navground.sim.ui.render_default_config.
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 – Optional configuration: same fields as
navground.sim.ui.RenderConfig.
- Para bounds:
Optional view area (relative id
followis specified)
The actual configuration is computed by looking (in order) to
the arguments of this function;
the world-specific configuration
navground.sim.World.render_kwargs;the default configuration
navground.sim.ui.render_default_config.
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 – Optional configuration: same fields as
navground.sim.ui.RenderConfig.
- Para bounds:
Optional view area (relative id
followis specified)
The actual configuration is computed by looking (in order) to
the arguments of this function;
the world-specific configuration
navground.sim.World.render_kwargs;the default configuration
navground.sim.ui.render_default_config.