Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Driver = SF CarState DriveState
- data DriveState = DriveState {}
- type Message = String
- defaultDriveState :: DriveState
- data CarState = CarState {
- z :: Double
- angle :: Double
- gear' :: Int
- trackPos :: Double
- speedY :: Double
- distRaced :: Double
- speedZ :: Double
- damage :: Double
- wheelSpinVel :: [Double]
- focus' :: [Int]
- track :: [Double]
- curLapTime :: Double
- speedX :: Double
- racePos :: Int
- fuel :: Double
- distFromStart :: Double
- opponents :: [Double]
- rpm :: Double
- lastLapTime :: Double
- lapTimes :: [Double]
- communications :: Communications
- monitor :: String
- type Communications = Map Int (Maybe Message)
- defaultCarState :: CarState
Documentation
type Driver = SF CarState DriveState Source #
A driver observes the environment and changes the drive state
data DriveState Source #
The DriveState dictates how the controller actuators behave and, by extension, how the car moves around the world. See the TORCS manual for full description (https://arxiv.org/pdf/1304.1672)
CarState is everything the controller can observe in the world. See the TORCS manual for full description (https://arxiv.org/pdf/1304.1672)
CarState | |
|