def reset(self):
        #               [h,                           hdot, v]
        self.sensors = [random.uniform(-30., 30.), 0.0, 0.0]
        if self.render:
            if self.server.clients > 0:
                # If there are clients send them reset signal
                self.server.send(["r", "r", "r"])
re-initializes the environment, setting the ship to rest at a random orientation.
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/shipsteer/shipsteer.py/ShipSteeringEnvironment.reset