rlightning.env.env_server¶
Remote environment server for ZMQ-based environment control.
- class rlightning.env.env_server.RemoteEnvServer(config: Any, worker_index: int | None = 0, preprocess_fn: Callable | None = None, **kwargs: Any)[source]¶
Bases:
BaseEnvZMQ-backed environment server that brokers remote clients.
- get_observation_space() Any | None[source]¶
Remote server does not expose observation space directly.
- reset(*args: Any, **kwargs: Any) List[EnvRet][source]¶
Collect initial observations after environment initialization.
- step(policy_resp: PolicyResponse) EnvRet[source]¶
Synchronous stepping is not supported on the server side.
- step_async(policy_response_list: List[PolicyResponse]) None[source]¶
Step clients which env is in policy_response_list
- Parameters:
policy_response_list (List[PolicyResponse]) – list of PolicyResponse for clients
- Returns:
None