TimeLimit

public final class TimeLimit<EnvType> where EnvType : Env
extension TimeLimit: Env where EnvType.TerminatedType == Bool
extension TimeLimit: MuJoCoEnv where EnvType: MuJoCoEnv

Available where EnvType.TerminatedType == Bool

  • Declaration

    Swift

    public typealias ActType = EnvType.ActType
  • Declaration

    Swift

    public typealias ObsType = EnvType.ObsType
  • Declaration

    Swift

    public typealias RewardType = EnvType.RewardType
  • Declaration

    Swift

    public typealias TerminatedType = EnvType.TerminatedType
  • Declaration

    Swift

    public func step(action: ActType) -> (ObsType, RewardType, TerminatedType, [String : Any])
  • Declaration

    Swift

    public func reset(seed: Int?) -> (ObsType, [String : Any])
  • Declaration

    Swift

    public static var rewardThreshold: Float { get }
  • Declaration

    Swift

    public static var actionSpace: [ClosedRange<Float>] { get }
  • Declaration

    Swift

    public static var stateSize: Int { get }

Available where EnvType: MuJoCoEnv

  • Declaration

    Swift

    public var model: MjModel { get }
  • Declaration

    Swift

    public var data: MjData { get set }