浏览代码

put rewards back in fu for testing

/hh-develop-all-posed-characters
Hunter-Unity 4 年前
当前提交
6d1b23af
共有 1 个文件被更改,包括 19 次插入15 次删除
  1. 34
      Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs

34
Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs


bpDict[leg2Lower].SetJointStrength(vectorAction[++i]);
bpDict[leg3Lower].SetJointStrength(vectorAction[++i]);
// Set reward for this step according to mixture of the following elements.
if (rewardMovingTowardsTarget)
{
RewardFunctionMovingTowards();
}
if (rewardFacingTarget)
{
RewardFunctionFacingTarget();
}
if (rewardUseTimePenalty)
{
RewardFunctionTimePenalty();
}
}

}
}
// Set reward for this step according to mixture of the following elements.
if (rewardMovingTowardsTarget)
{
RewardFunctionMovingTowards();
}
if (rewardFacingTarget)
{
RewardFunctionFacingTarget();
}
if (rewardUseTimePenalty)
{
RewardFunctionTimePenalty();
}
// If enabled the feet will light up green when the foot is grounded.
// This is just a visualization and isn't necessary for function
if (useFootGroundedVisualization)

正在加载...
取消
保存