simulate

Function simulate 

Source
pub async fn simulate(
    robot_code: &Path,
    interface: impl Into<SimulatorInterface>,
    messages: Receiver<SimulatorMessage>,
) -> Result<()>
Expand description

Simulate the WebAssembly robot program at the given path.

ยงArguments

  • robot_code: The path to the robot program to simulate.
  • interface: A callback function that will be invoked with any events that occur during simulation.
  • messages: Input message stream to send to the robot program. This can be used to simulate controller input, LCD touch events, and more.