rlmesh.types.VectorEnvLike
Structural protocol for vectorized environments.
Attributes
Methods
num_envs
property[source]property num_envs: intNumber 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() -> NoneRelease vector environment resources.