浏览代码

added test and logged api update

/main
Steven Leal 4 年前
当前提交
b038106a
共有 2 个文件被更改,包括 17 次插入0 次删除
  1. 2
      com.unity.perception/CHANGELOG.md
  2. 15
      com.unity.perception/Tests/Runtime/Randomization/ScenarioTests.cs

2
com.unity.perception/CHANGELOG.md


Uniform and Normal samplers now serialize their random seeds
The ScenarioBase's GenerateIterativeRandomSeed() method has been renamed to GenerateRandomSeedFromIndex()
### Deprecated
### Removed

15
com.unity.perception/Tests/Runtime/Randomization/ScenarioTests.cs


Assert.AreEqual(DatasetCapture.SimulationState.SequenceTime, 0);
}
[UnityTest]
public IEnumerator GeneratedRandomSeedsChangeWithScenarioIteration()
{
yield return CreateNewScenario(3, 1);
var seed = m_Scenario.GenerateRandomSeed();
var seeds = new uint[3];
for (var i = 0; i < 3; i++)
seeds[i] = m_Scenario.GenerateRandomSeedFromIndex(i);
yield return null;
Assert.AreNotEqual(seed, m_Scenario.GenerateRandomSeed());
for (var i = 0; i < 3; i++)
Assert.AreNotEqual(seeds[i], m_Scenario.GenerateRandomSeedFromIndex(i));
}
PerceptionCamera SetupPerceptionCamera()
{
m_TestObject.SetActive(false);

正在加载...
取消
保存