Class CarRacingEnvOptions
- Namespace
- Gym.Environments.Envs.Box2D
- Assembly
- Gym.Environments.dll
The keyword arguments of CarRacingEnv's constructor as a typed record (DR-34), generated
from the constructor so it cannot drift from it. A property that is set becomes a keyword argument by its Python
name; one left unset is not passed, so make keeps the registered spec's value and the constructor its default.
public sealed record CarRacingEnvOptions : IGymOptions, IEquatable<CarRacingEnvOptions>
- Inheritance
-
CarRacingEnvOptions
- Implements
- Inherited Members
- Extension Methods
Properties
Continuous
Gymnasium's continuous: three continuous controls instead of five discrete actions.
The continuous keyword argument, passed on only once set.
public bool Continuous { get; init; }
Property Value
DomainRandomize
Gymnasium's domain_randomize: random road, background and grass colours, drawn now and at resets.
The domain_randomize keyword argument, passed on only once set.
public bool DomainRandomize { get; init; }
Property Value
LapCompletePercent
Gymnasium's lap_complete_percent: the share of tiles visited that, back at the start tile, completes the lap.
The lap_complete_percent keyword argument, passed on only once set.
public double LapCompletePercent { get; init; }
Property Value
RenderMode
Gymnasium's render_mode: null, "human", "rgb_array" or "state_pixels".
The render_mode keyword argument, passed on only once set.
public string? RenderMode { get; init; }
Property Value
Verbose
Gymnasium's verbose: print the track generation's progress.
The verbose keyword argument, passed on only once set.
public bool Verbose { get; init; }
Property Value
ViewerFactory
Gym.NET's viewer_factory (DR-20) for human mode; null uses Gymnasium.HumanViewerFactory.
The viewer_factory keyword argument, passed on only once set.
public EnvViewerFactory? ViewerFactory { get; init; }
Property Value
Methods
ToKwargs()
The set properties as keyword arguments by Python name, in constructor order.
public Info ToKwargs()
Returns
- Info
A new dict the caller owns.