rlmesh::env
Env authoring and serving: Gymnasium-shaped environments, EnvServer, EnvFactory and the remote clients.
Preview
use rlmesh::env;An author writes an env in Gymnasium shape (Env, or VectorEnv for
a natively batched one) and the library derives everything else: the
EnvServer reads the spaces, id, render mode and metadata once at
construction and builds the served
EnvContract. Authoring is sync; a lane
runs on its own thread for the server’s life.
Structs
- EnvFactoryServeOptionsPreviewOptions for serving a factory's environments.
- EnvServerPreviewServes an env, a list of lane envs, or a vector env.
- EnvServerOptionsPreviewOptions for constructing an environment server.
- RemoteEnvPreviewA client for one remote env.
- RemoteEnvOptionsPreviewOptions for connecting to a single or vector environment.
- RemoteVectorEnvPreviewA client for a remote vector env (two or more lanes stepped in lockstep): A remote vector environment.
- TagParamPreviewOne contract discriminant of a branched factory, including its default value and allowed choices.
- VariantPreviewOne concrete sub-environment in a factory's catalog.
- VariantOptionsPreviewOptions carrying a variant's metadata.
Enums
- MadeEnvPreviewWhat
makereturns: one env or one vector env. - ServedEnvPreviewAn env already built from the described factory: an env, a vector env, or a list of lane envs, of which only lane 0 is read.
- TransportPreviewEndpoint transport: TCP or Unix-domain sockets.
- VectorSeedPreviewThe seed a
VectorEnvreset receives: one seed or one per lane.
Traits
- EnvPreviewOne environment in Gymnasium shape.
- EnvFactoryPreviewBuilds environments.
- EnvFactoryExtPreviewConstruction, stamping and serving operations for every
EnvFactory. - VectorEnvPreviewA natively batched environment.