Configuration#
- module:
A function that returns a dictionary of SVG style attributes for an entity, like
{"fill": "red"}
.
A rectangle defined by two points, at the bottom-left and top-right vertices.
Configuration shared by rendering functions, like
navground.sim.ui.svg_for_world()
.A valid SVG color for the background
Extra rendering added at the beginning of to the svg
The rectangular area to be displayed
A function to decorate entities. Should return a dictionary of valid SVG style attributes, e.g.,
{"fill": "red"}
for a given entity.
Whether to display the agent safety margin
Whether to display the agent circular shape
Extra rendering added at the end of to the svg
The size of the square grid tile (set to zero or negative to skip drawing a grid)
The color of the grid
The thickness of the grid
The minimum height in pixels
The number of decimal digits for poses
The relative margin
A planar rotation applied before drawing [rad]
The width in pixels
Returns the SVG representation of an RGB color
- Parameters:
r – in [0, 1]
g – in [0, 1]
b – in [0, 1]
- Returns:
The SVG representation of the color
Note
There are three ways to configure parameters for rendering functions:
provide an optional argument to the function;
set a world-specific option in
navground.sim.World.render_kwargs
;change the default configuration
navground.sim.ui.render_default_config
.