浏览代码

removed debug capture button from vis overlay

/manual_capture
Mohsen Kamalzadeh 4 年前
当前提交
27479b8c
共有 2 个文件被更改,包括 3 次插入10 次删除
  1. 7
      com.unity.perception/Runtime/GroundTruth/Labelers/Visualization/OverlayPanel.cs
  2. 6
      com.unity.perception/Runtime/GroundTruth/SimulationState.cs

7
com.unity.perception/Runtime/GroundTruth/Labelers/Visualization/OverlayPanel.cs


internal void OnDrawGUI(float x, float y, float width, float height)
{
if (GUILayout.Button("Capture"))
{
perceptionCamera.SensorHandle.CaptureOnNextUpdate();
}
var any = perceptionCamera.labelers.Any(l => l is IOverlayPanelProvider && l.enabled);
// If there used to be active providers, but they have been turned off, remove

6
com.unity.perception/Runtime/GroundTruth/SimulationState.cs


const float k_SimulationTimingAccuracy = 0.01f;
const int k_MinPendingCapturesBeforeWrite = 150;
const int k_MinPendingMetricsBeforeWrite = 150;
const float k_maxDeltaTime = 100f;
const float k_MaxDeltaTime = 100f;
public SimulationState(string outputDirectory)
{

}
//find the deltatime required to land on the next active sensor that needs simulation
float nextFrameDt = k_maxDeltaTime;
float nextFrameDt = k_MaxDeltaTime;
foreach (var activeSensor in m_ActiveSensors)
{
float thisSensorNextFrameDt = -1;

nextFrameDt = thisSensorNextFrameDt;
}
if (Math.Abs(nextFrameDt - k_maxDeltaTime) < 0.0001)
if (Math.Abs(nextFrameDt - k_MaxDeltaTime) < 0.0001)
{
//means no sensor is controlling simulation timing, so we set Time.captureDeltaTime to 0 (default) which means the setting does not do anything
nextFrameDt = 0;

正在加载...
取消
保存