Configuration Reference
MultiRobotSimulationCore.from_yaml() and from_dict() use this nested
layout. A flat simulation-parameter dictionary is still supported for
compatibility, but new configurations should use the nested form.
simulation: {} # SimulationParams fields
world: {} # Optional SDF/world/mesh environment
entity_classes: {} # Optional custom entity type registry
managers: [] # Optional named entity managers
entities: [] # Agents, sim objects, and devices to spawn
plugins: [] # Optional simulation-wide plugins
Note
pybullet_fleet/config/config.yaml is a runnable starting point, not the
exhaustive parameter reference. This page describes the supported schema.
Simulation
Keys under simulation: map to SimulationParams. None means automatic or
disabled behaviour.
Key |
Default |
Meaning |
|---|---|---|
|
|
Real-time factor. |
|
|
Simulation seconds per step. |
|
|
Default |
|
|
Open a GUI / call |
|
|
Enable DataMonitor and its optional tkinter window. The window provides playback controls plus entity selection and camera follow; requests are applied on the simulation step thread. |
|
|
Simulated seconds between DataMonitor refreshes while |
|
|
Wall-clock seconds between INFO |
|
|
Python logging level applied to the process root logger. |
|
|
Catch-up-step limit used by the pacing loop. |
|
|
Maximum one pacing sleep in normal frame intervals. |
|
|
GUI responsiveness target used by the pacing loop. |
|
|
Load the default plane. |
|
|
Additional model-search directories. |
|
|
PyBullet GUI window size. |
|
|
DataMonitor window size. The default leaves room for its side-by-side statistics and entity inspector panes. |
|
|
DataMonitor location; |
Profiling
Key |
Default |
Meaning |
|---|---|---|
|
|
Collect and periodically log per-step timing fields. |
|
|
Collect Python allocation measurements through |
|
|
Steps per periodic time and memory report. |
See Time Profiling and
Memory Profiling. Set log_level: info to show
their periodic reports.
Collision and visualisation
Key |
Default |
Meaning |
|---|---|---|
|
|
|
|
automatic |
|
|
|
Metres used by closest-points checks; ignored by contact-points checks. A list |
|
|
|
|
|
Fixed cell size in metres when mode is |
|
|
Accepted for compatibility; not used. Every body is registered in each cell it reaches. |
|
|
Skip every pair containing an entity with |
|
|
Do not report contact between objects on one attachment tree ( |
|
|
Change object colour while a collision is active. |
|
|
Initially show collision-shape wireframes in the GUI. |
|
|
Initially render structure bodies semi-transparently. |
|
|
PyBullet visualiser options. |
See Collision Configuration and Collision Internals for behaviour and tuning guidance.
Camera
camera is accepted as an alias for camera_config.
simulation:
camera:
camera_mode: auto
camera_view_type: perspective
camera_auto_scale: 0.6
Manual camera settings can specify camera_distance, camera_yaw,
camera_pitch, and camera_target. Recording camera selection is documented
in Capturing Demo Videos.
GUI lighting
lighting is accepted as an alias for lighting_config. It configures
PyBullet GUI’s single main light and its shadow map; it does not import or
reproduce USD light prims.
simulation:
enable_shadows: true
lighting:
light_position: [8, -8, 15]
shadow_map_world_size: 20
shadow_map_resolution: 2048
enable_controls: true
When enable_controls is true, PyBulletFleet displays the native Parameters
panel with sliders for these values. The simulation thread applies changes, so
the controls are safe for normal run_simulation() execution. The panel is
not available in headless mode.
World
world: loads environment geometry before entities:. The loader selects one
source in this order: world_file, sdf, then mesh_dir.
world:
world_file: environments/office.world # or: sdf: environments/office.sdf
skip_models: [existing_robot_name]
force_color: [0.7, 0.7, 0.7, 1.0] # optional flat world-mesh colour
Use mesh_dir: environments/meshes to load a directory of OBJ/STL meshes.
Named entities are automatically added to skip_models for a world_file, so
they are not loaded twice.
Entity classes and entities
entities: is a list. Each entry defaults to type: agent; use
type: sim_object for a passive object, or register a custom type through
entity_classes:.
entity_classes:
forklift: my_package.entities.ForkliftAgent
entities:
- name: robot_0
urdf_path: robots/mobile_robot.urdf
pose: [0.0, 0.0, 0.05]
mass: 0.0
controller:
type: differential
- type: sim_object
name: rack
visual_shape: {shape_type: box, half_extents: [1.0, 0.4, 1.0]}
collision_shape: {shape_type: box, half_extents: [1.0, 0.4, 1.0]}
pose: [3.0, 0.0, 1.0]
collision_mode: static
Common keys are name, pose, mass, user_data, visual_shape,
collision_shape, and collision_mode. Agents also accept urdf_path,
sdf_path, use_fixed_base, controller, and agent plugins.
collision_mode is per entity: normal_3d, static, or disabled.
static is for fixed structures; ignore_static_collision skips all pairs
involving that object. normal_2d (no collision clearance in z) is deprecated:
it still works but emits a FutureWarning; use normal_3d.
Grid entities
Add grid: to expand an entity entry. The count-based form is concise:
entities:
- name: robot
urdf_path: robots/mobile_robot.urdf
controller: {type: omni}
grid:
count: 100
columns: 10 # optional; defaults to ceil(sqrt(count))
spacing: [2.0, 2.0]
offset: [0.0, 0.0, 0.05]
The range-based form accepts x_min, x_max, y_min, y_max, spacing,
and offset, with optional z_min / z_max for layers.
Controller selection
Use explicit controller.type for new entities. motion_mode is a deprecated
fallback and should not be added to new YAML.
controller:
type: differential
max_linear_vel: 1.5
max_angular_vel: 2.0
The YAML value may be null, a registry-name string, a mapping, or a list of
mappings for a controller chain. Python APIs also accept Controller and
ControllerParams instances. See Controller Configuration.
Named managers and fleet controllers
Managers must be declared before entities that reference them. They own shared controller defaults and optional batch execution.
managers:
- name: delivery_fleet
fleet_controller:
type: batch_differential
max_linear_vel: 1.5
max_linear_accel: 2.0
entities:
- urdf_path: robots/mobile_robot.urdf
manager: delivery_fleet
grid:
count: 50
spacing: [2.0, 2.0]
Built-in batch types are batch_omni and batch_differential. A custom batch
controller may use a registered name or dotted class path. Omit
fleet_controller.type for per-agent execution with shared defaults.
batch_controller and fleet_controller are not valid directly under an
entity.
Plugins
Simulation-wide plugins are root entries. Per-agent plugins are nested below
an entity. Both accept registry type or dotted class, plus config.
plugins:
- class: my_package.plugins.TrafficMonitor
frequency: 2.0
config:
log_interval: 5.0
entities:
- urdf_path: robots/mobile_robot.urdf
plugins:
- type: battery
config:
capacity: 100.0
See Plugins and Events for lifecycle and two-phase step ordering.
Defaults and environment overrides
pybullet_fleet/_defaults.py holds built-in defaults. At module load time,
PBF_{SECTION}_{KEY} environment variables replace non-None defaults; for
example, PBF_SIMULATION_TIMESTEP=0.05, or
PBF_CONTROLLER_GOAL_REPLACEMENT=reject for how every agent without its own
setting handles a goal it cannot reach from its current motion. If python-dotenv is installed, a
.env file fills otherwise unset environment variables.
YAML values passed to from_yaml() / from_dict() and explicit
SimulationParams(...) values override the defaults for the configuration
being constructed. Use _defaults.get("simulation", "timestep") only in
framework or extension code that intentionally needs the global default.
Included configurations and benchmarks
pybullet_fleet/config/ contains runnable scenario and mode examples.
config_physics_off.yaml, config_physics_on.yaml, and config_hybrid.yaml
illustrate collision-method choices; select them for the required fidelity, not
a fixed performance claim.
Benchmark inputs live under benchmark/configs/. See
Benchmark Suite for commands and result
interpretation.