Exemplo n.º 1
0
    private void WaitTimeInference()
    {
        //if (GetStepCount() + 1 >= agentParameters.maxStep)
        //{
        //    SetReward(-3f);
        //    academy.UIDeBugText(string.Format("Step Over: {0}:{1}", this.GetInstanceID(),GetCumulativeReward()));

        //    return;
        //}



        if (!academy.GetIsInference())
        {
            RequestDecision();
        }
        else
        {
            if (timeSinceDecision >= timeBetweenDecisionsAtInference)
            {
                timeSinceDecision = 0f;
                RequestDecision();
            }
            else
            {
                timeSinceDecision += Time.fixedDeltaTime;
            }
        }
    }
Exemplo n.º 2
0
 private void WaitTimeInference()
 {
     if (!academy.GetIsInference())
     {
         RequestDecision();
     }
     else
     {
         if (timeSinceDecision >= timeBetweenDecisionsAtInference)
         {
             timeSinceDecision = 0f;
             RequestDecision();
         }
         else
         {
             timeSinceDecision += Time.fixedDeltaTime;
         }
     }
 }
Exemplo n.º 3
0
    private void WaitTimeInference()
    {
        if (renderCamera != null)
        {
            renderCamera.Render();
        }

        if (!m_Academy.GetIsInference())
        {
            RequestDecision();
        }
        else
        {
            if (m_TimeSinceDecision >= timeBetweenDecisionsAtInference)
            {
                m_TimeSinceDecision = 0f;
                RequestDecision();
            }
            else
            {
                m_TimeSinceDecision += Time.fixedDeltaTime;
            }
        }
    }