rlmesh.types.VectorEnvLike

classfrom rlmesh.types import VectorEnvLike[source]

Structural protocol for vectorized environments.

num_envs

property[source]
property num_envs: int

Number of environment instances in the vector.

single_observation_space

property[source]
property single_observation_space: SpaceLike[VectorObsT]

Observation space for one environment in the vector.

single_action_space

property[source]
property single_action_space: SpaceLike[VectorActT]

Action space for one environment in the vector.

reset

function[source]
reset(
    *,
    seed: int | None = None,
    options: InfoDict | None = None,
) -> tuple[object, InfoDict]

Reset all environments and return batched observations.

step

function[source]
step(
    actions: BatchActionT,
) -> tuple[object, object, object, object, InfoDict]

Apply a batch of actions and return batched step values.

close

function[source]
close() -> None

Release vector environment resources.