浏览代码
Merge pull request #142 from Unity-Technologies/global-seed
Merge pull request #142 from Unity-Technologies/global-seed
Replaced individual sampler seeds with one global seed/main
GitHub
4 年前
当前提交
af13a3d8
共有 33 个文件被更改,包括 237 次插入 和 414 次删除
-
8com.unity.perception/CHANGELOG.md
-
13com.unity.perception/Documentation~/Randomization/Parameters.md
-
28com.unity.perception/Documentation~/Randomization/Samplers.md
-
6com.unity.perception/Documentation~/Tutorial/Phase1.md
-
6com.unity.perception/Documentation~/Tutorial/Phase2.md
-
2com.unity.perception/Editor/Randomization/Editors/RunInUnitySimulationWindow.cs
-
1com.unity.perception/Editor/Randomization/Uxml/Parameter/CategoricalParameterTemplate.uxml
-
3com.unity.perception/Editor/Randomization/VisualElements/Parameter/ParameterElement.cs
-
6com.unity.perception/Editor/Randomization/VisualElements/Randomizer/RandomizerList.cs
-
7com.unity.perception/Editor/Randomization/VisualElements/Sampler/SamplerElement.cs
-
49com.unity.perception/Runtime/Randomization/Parameters/Parameter.cs
-
6com.unity.perception/Runtime/Randomization/Randomizers/Randomizer.cs
-
2com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/BackgroundObjectPlacementRandomizer.cs
-
2com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/ForegroundObjectPlacementRandomizer.cs
-
24com.unity.perception/Runtime/Randomization/Samplers/ISampler.cs
-
61com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/ConstantSampler.cs
-
84com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/NormalSampler.cs
-
77com.unity.perception/Runtime/Randomization/Samplers/SamplerTypes/UniformSampler.cs
-
57com.unity.perception/Runtime/Randomization/Samplers/SamplerUtility.cs
-
2com.unity.perception/Runtime/Randomization/Scenarios/FixedLengthScenario.cs
-
6com.unity.perception/Runtime/Randomization/Scenarios/Scenario.cs
-
60com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs
-
24com.unity.perception/Runtime/Randomization/Scenarios/UnitySimulationScenario.cs
-
4com.unity.perception/Tests/Runtime/Randomization/ParameterTests/StructParameterTests.cs
-
2com.unity.perception/Tests/Runtime/Randomization/SamplerTests/ConstantSamplerTests.cs
-
28com.unity.perception/Tests/Runtime/Randomization/SamplerTests/SamplerTestsBase.cs
-
7com.unity.perception/Tests/Runtime/Randomization/ScenarioTests.cs
-
18com.unity.perception/Runtime/Randomization/Scenarios/ScenarioConstants.cs
-
3com.unity.perception/Runtime/Randomization/Scenarios/ScenarioConstants.cs.meta
-
26com.unity.perception/Runtime/Randomization/Scenarios/UnitySimulationScenarioConstants.cs
-
3com.unity.perception/Runtime/Randomization/Scenarios/UnitySimulationScenarioConstants.cs.meta
-
15com.unity.perception/Editor/Randomization/VisualElements/Sampler/RandomSeedField.cs
-
11com.unity.perception/Editor/Randomization/VisualElements/Sampler/RandomSeedField.cs.meta
|
|||
using System; |
|||
using UnityEngine.Experimental.Perception.Randomization.Samplers; |
|||
|
|||
namespace UnityEngine.Experimental.Perception.Randomization.Scenarios |
|||
{ |
|||
/// <summary>
|
|||
/// The base class for implementing custom scenario constants classes
|
|||
/// </summary>
|
|||
[Serializable] |
|||
public class ScenarioConstants |
|||
{ |
|||
/// <summary>
|
|||
/// The starting value initializing all random values sequences generated through Samplers, Parameters, and
|
|||
/// Randomizers attached to a Scenario
|
|||
/// </summary>
|
|||
public uint randomSeed = SamplerUtility.largePrime; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: a38190d91c3848f98817192bad820027 |
|||
timeCreated: 1608664905 |
|
|||
using System; |
|||
|
|||
namespace UnityEngine.Experimental.Perception.Randomization.Scenarios |
|||
{ |
|||
/// <summary>
|
|||
/// A class encapsulating the scenario constants fields required for Unity Simulation cloud execution
|
|||
/// </summary>
|
|||
[Serializable] |
|||
public class UnitySimulationScenarioConstants : ScenarioConstants |
|||
{ |
|||
/// <summary>
|
|||
/// The total number of iterations to run a scenario for
|
|||
/// </summary>
|
|||
public int totalIterations = 100; |
|||
|
|||
/// <summary>
|
|||
/// The number of Unity Simulation instances assigned to executed this scenario
|
|||
/// </summary>
|
|||
public int instanceCount = 1; |
|||
|
|||
/// <summary>
|
|||
/// The Unity Simulation instance index of the currently executing worker
|
|||
/// </summary>
|
|||
public int instanceIndex; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 362fc5761e034959aebfaf497d7f7b75 |
|||
timeCreated: 1608664937 |
|
|||
using UnityEditor; |
|||
using UnityEditor.UIElements; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace UnityEngine.Experimental.Perception.Randomization.Editor |
|||
{ |
|||
class RandomSeedField : IntegerField |
|||
{ |
|||
public RandomSeedField(SerializedProperty property) |
|||
{ |
|||
label = "Seed"; |
|||
this.BindProperty(property); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 7df00c41d9394fa0ae239349350cb563 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue