Skip to main content

intrinsic.solutions.simulation.Simulation

Provides commands to interact with a running simulation.

simulation_service

The gRPC stub to be used for communication with the simulation service.

object_world_service

The gRPC stub to be used for communication with the object world service.

Methods

connect

View source

Create a Simulation instance using the given gRPC address.

Args

grpc_channel

Address of the simulation gRPC service to use.

Returns

A newly created Simulation instance.

get_realtime_factor

View source

Gets the simulation realtime factor.

If a simulation is actively running, returns the ratio of simulation to real time, i.e. the time elapsed in the sim world within a unit timespan on the real clock.

Returns

float Realtime factor

reset

View source

Resets the simulation world to its initial state.

Also makes sure that all affected components such as ICON are in a working state.