Exemple #1
0
    /**
     * input
     * [0] distance (forward ----> ground)
     * [1] height from ground
     * [2] theta (roll angle)
     */

    public NPCAIComponent()
    {
        if (!File.Exists("network.bin"))
        {
            CollisionPredictionNetwork.Load("network.bin");
        }
        else
        {
            CollisionPredictionNetwork.Attach(3, "linear", "dlinear");
            CollisionPredictionNetwork.Attach(6, "relu", "drelu");
            CollisionPredictionNetwork.Attach(1, "linear", "dlinear");
            CollisionPredictionNetwork.ε = 0.1f;
        }
    }