Base class#
#include "navground/sim/scenario.h"
A scenario describes a distribution of World that can be sampled to perform an experiment.
Subclassed by navground::sim::AntipodalScenario, navground::sim::CollisionsScenario, navground::sim::CorridorScenario, navground::sim::CrossScenario, navground::sim::CrossTorusScenario, navground::sim::SimpleScenario
Public Types
A world initializer: a function that takes as input world and optional seed and perform some initialization on the world.
A collection of world initializers
Public Functions
Constructs a new instance.
- Parameters:
inits – [in] The collection of world initializers to use.
Initializes the world.
- Parameters:
world – The world
seed – The random seed
Creates and initialize a world.
- Parameters:
seed – The random seed
Adds a world initializer.
- Parameters:
initializer – [in] The initializer
- Returns:
The associated key
Sets a world initializer.
- Parameters:
key – [in] The key
initializer – [in] The initializer
Remove the last added world initializer.
- Parameters:
key – [in] The key
Removed all initializers.
Gets the world initializers.
- Returns:
The initializers.
Adds a group.
- Parameters:
group – [in] The group
Remove the last added group.
Remove all groups.
Public Members
Groups
Obstacles
Walls to add
A map of property samplers
name -> sampler
used configure the sampled object.
An optional bounding box
A group of agents that can be generated and added to the world.
Subclassed by navground::sim::AgentSampler< W >
Public Functions
Generate and add agents to the world.
- Parameters:
world – The world
seed – An optional random seed