Skip to content

World lifecycle and persistence ​

The status at the bottom left shows which world you are editing.

StatePurposeEditing and history
DocumentReusable scene saved in FLL.Preparation edits enter Undo/Redo and mark the document as modified.
ExperimentOptional temporary preparation cloned from Document.You can clone and reconfigure objects; these changes are discarded by End experiment.
SimulationInitialized copy of Document or Experiment.Only runtime-editable properties can change. Stop discards this copy.

The interface changes color in Experiment and Simulation as a reminder that edits are temporary.

Run directly from Document ​

You can initialize Document directly. Use Experiment when you want to change the preparation temporarily, such as adding extra robots or randomizing parameters.

In the Simulation menu, or with the corresponding toolbar buttons:

ActionResult
InitializeCreates Simulation from the current preparation; time is ready to advance.
Run automaticallyAdvances at the requested time ratio. It can initialize first if necessary.
PauseStops automatic advancement and keeps Simulation initialized.
Advance one stepAdvances one step while automatic advancement is paused.
ResetRestarts the initialized simulation state/time and stays in Simulation.
StopClears Simulation and returns to the Document or Experiment it came from.
Begin experimentMakes a temporary preparation copy of Document.
End experiment (discard)Returns from Experiment to Document; Stop Simulation first if initialized.

Pausing still counts as Simulation. To add, delete or reparent objects, Stop and edit the preparation world.

What Stop preserves ​

Stop restores the preparation world's objects and properties. The current GUI view and view settings stay where you left them. Selection is retained for objects that still exist; temporary runtime objects disappear.

For example, if you move a robot during Simulation, Stop returns the robot to its initial placement while keeping your current viewing angle.

Keep or discard a trial ​

An Experiment can hold extra objects and parameter variations across several initialized trials. Stop returns to that temporary preparation; End experiment discards it and returns to Document. See repeatable experiments.

Saving is available in Document. If you want to keep a parameter you tried temporarily, record it, Stop, End experiment if active, and apply the value to Document before saving. See projects and saving.

Scripts use the same lifecycle with begin_experiment, initialize_simulation, clear_simulation and end_experiment. Initialization and clear switch worlds, so resolve object handles again afterwards. Simulation control with RPC gives a complete trial.