Class ClipActionVector<TObs, TAct>
Clips each sub-env's action into the env's Box (Gymnasium's vector ClipAction).
[PyName("ClipAction")]
public class ClipActionVector<TObs, TAct> : VectorizeTransformAction<TObs, NDArray, TAct>, IVectorEnv, IDisposable
Type Parameters
TObsThe batched observation type, passed through.
TActThe env's batched action type.
- Inheritance
-
VectorWrapper<TObs, NDArray, TObs, TAct>VectorActionWrapper<TObs, NDArray, TAct>VectorizeTransformAction<TObs, NDArray, TAct>ClipActionVector<TObs, TAct>
- Implements
- Inherited Members
- Extension Methods
Remarks
Reference: gymnasium/wrappers/vector/vectorize_action.py.
Constructors
ClipActionVector(VectorEnv<TObs, TAct>)
Wraps env.
public ClipActionVector(VectorEnv<TObs, TAct> env)
Parameters
envVectorEnv<TObs, TAct>The vector env, whose single action space is a
Box.
Exceptions
- TypeError
Thrown for a space that is not a
Box.