浏览代码

Merge pull request #277 from Unity-Technologies/addressables-test-labeling

some changes to make runtime labeling and label config creation work
/addressables-test
GitHub 4 年前
当前提交
b5eb4b82
共有 3 个文件被更改,包括 11 次插入6 次删除
  1. 2
      com.unity.perception/Runtime/GroundTruth/Labelers/CameraLabeler.cs
  2. 4
      com.unity.perception/Runtime/GroundTruth/PerceptionCamera.cs
  3. 11
      com.unity.perception/Runtime/Randomization/Scenarios/FixedLengthScenario.cs

2
com.unity.perception/Runtime/GroundTruth/Labelers/CameraLabeler.cs


if (visualizationEnabled) OnVisualize();
}
internal void Init(PerceptionCamera newPerceptionCamera)
public void Init(PerceptionCamera newPerceptionCamera)
{
try
{

4
com.unity.perception/Runtime/GroundTruth/PerceptionCamera.cs


continue;
if (!labeler.isInitialized)
labeler.Init(this);
continue;
labeler.InternalOnUpdate();
}

continue;
if (!labeler.isInitialized)
labeler.Init(this);
continue;
action(labeler);
}

11
com.unity.perception/Runtime/Randomization/Scenarios/FixedLengthScenario.cs


using System;
using System.Collections.Generic;
using UnityEngine.Perception.Randomization.Parameters;
using UnityEngine.Perception.Randomization.Samplers;
namespace UnityEngine.Perception.Randomization.Scenarios
{

[AddComponentMenu("Perception/Scenarios/Fixed Length Scenario")]
public class FixedLengthScenario: UnitySimulationScenario<FixedLengthScenario.Constants>
{
PerceptionCamera m_PerceptionCamera;
protected PerceptionCamera m_PerceptionCamera;
/// <summary>
/// Constants describing the execution of this scenario

}
/// <inheritdoc/>
protected override void OnIterationStart()
protected override void OnUpdate()
if (m_PerceptionCamera != null && currentIterationFrame == constants.framesPerIteration - 1)
if (m_PerceptionCamera && currentIterationFrame == constants.framesPerIteration - 1)
{
}
}
}
}
正在加载...
取消
保存