|
|
|
|
|
|
[RequireComponent(typeof(Camera))] |
|
|
|
public partial class PerceptionCamera : MonoBehaviour |
|
|
|
{ |
|
|
|
//TODO: Remove the Guid path when we have proper dataset merging in Unity Simulation and Thea
|
|
|
|
internal string rgbDirectory { get; } = $"RGB{Guid.NewGuid()}"; |
|
|
|
const string k_RgbFilePrefix = "rgb_"; |
|
|
|
const string k_RgbFilePrefix = "rgb_"; |
|
|
|
|
|
|
|
static ProfilerMarker s_WriteFrame = new ProfilerMarker("Write Frame (PerceptionCamera)"); |
|
|
|
static ProfilerMarker s_EncodeAndSave = new ProfilerMarker("Encode and save (PerceptionCamera)"); |
|
|
|
|
|
|
//TODO: Remove the Guid path when we have proper dataset merging in Unity Simulation and Thea
|
|
|
|
internal string rgbDirectory { get; } = $"RGB{Guid.NewGuid()}"; |
|
|
|
internal HUDPanel hudPanel; |
|
|
|
internal OverlayPanel overlayPanel; |
|
|
|
|
|
|
|
[SerializeReference] |
|
|
|
List<CameraLabeler> m_Labelers = new List<CameraLabeler>(); |
|
|
|
Dictionary<string, object> m_PersistentSensorData = new Dictionary<string, object>(); |
|
|
|
|
|
|
|
bool m_ShowingVisualizations; |
|
|
|
bool m_GUIStylesInitialized; |
|
|
|
int m_LastFrameCaptured = -1; |
|
|
|
|
|
|
Vector2 m_ScrollPosition; |
|
|
|
|
|
|
|
internal HUDPanel hudPanel; |
|
|
|
internal OverlayPanel overlayPanel; |
|
|
|
|
|
|
|
[SerializeReference] |
|
|
|
List<CameraLabeler> m_Labelers = new List<CameraLabeler>(); |
|
|
|
Dictionary<string, object> m_PersistentSensorData = new Dictionary<string, object>(); |
|
|
|
|
|
|
|
#if URP_PRESENT
|
|
|
|
// only used to confirm that GroundTruthRendererFeature is present in URP
|
|
|
|