浏览代码

fixed an issue with detecting the visualization enabled state that manifested in usim runs

/generic-asset-sources
Mohsen Kamalzadeh 3 年前
当前提交
b24e6629
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 8
      com.unity.perception/Runtime/GroundTruth/Labelers/CameraLabeler.cs

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


sensorHandle = camera.SensorHandle;
Setup();
isInitialized = true;
m_ShowVisualizations = supportsVisualization && perceptionCamera.showVisualizations;
}
catch (Exception)
{

internal void InternalCleanup() => Cleanup();
internal void InternalVisualize() => OnVisualize();
private bool m_ShowVisualizations = false;
bool m_ShowVisualizations;
/// <summary>
/// Turns on/off the labeler's realtime visualization capability. If a labeler does not support realtime

{
get
{
return supportsVisualization && m_ShowVisualizations;
if (!supportsVisualization)
return false;
return perceptionCamera && perceptionCamera.showVisualizations;
}
set
{

正在加载...
取消
保存