示例#1
0
 private new void Awake()
 {
     base.Awake();
     smartCamera = GetComponentInChildren <SmartCamera>();
     if ((captureRGB || captureDepth || captureSemanticMask) && smartCamera == null)
     {
         captureRGB          = false;
         captureDepth        = false;
         captureSemanticMask = false;
         Log("Smart camera not found", LogLevel.Error, true);
     }
     laserScan = GetComponentInChildren <LaserScanner>();
     if (captureScan && laserScan == false)
     {
         captureScan = false;
         Log("Laser not found", LogLevel.Error, true);
     }
     lidar = GetComponentInChildren <Lidar>();
     if (captureLidar && lidar == null)
     {
         captureLidar = false;
         Log("Lidar not found", LogLevel.Error, true);
     }
 }