Process

class eagerx.core.constants.process[source]
ENGINE: int = 2

Spawn a node in the process of the engine. If an EngineNode requires direct access to the simulator, config, and engine_config, it must be spawned in the same process as the engine.

ENVIRONMENT: int = 1

Spawn the node/engine in the process of the environment.

EXTERNAL: int = 3

Spawn the node/engine in a separate process. This process is not spawned by the environment. Instead, the user is responsible for running the executable script with the appropriate arguments. This allows nodes to run distributed.

NEW_PROCESS: int = 0

Spawn the node/engine in a separate process. Allows parallelization, but increases communication overhead due to the (de)serialization of messages.