Exemple #1
0
    protected override void OnAwake()
    {
        var depthcam = gameObject.GetComponent <SensorDevices.DepthCamera>();

        if (depthcam is null)
        {
            ChangePluginType(Type.CAMERA);
            cam = gameObject.GetComponent <SensorDevices.Camera>();
        }
        else
        {
            ChangePluginType(Type.DEPTHCAMERA);
            cam = depthcam;
        }

        partName = DeviceHelper.GetPartName(gameObject);
    }
Exemple #2
0
    protected override void OnAwake()
    {
        var depthcam = gameObject.GetComponent <SensorDevices.DepthCamera>();

        if (depthcam is null)
        {
            ChangePluginType(ICLOiSimPlugin.Type.CAMERA);
            cam = gameObject.GetComponent <SensorDevices.Camera>();
            attachedDevices.Add("Camera", cam);
        }
        else
        {
            ChangePluginType(ICLOiSimPlugin.Type.DEPTHCAMERA);
            cam = depthcam;
            attachedDevices.Add("DepthCamera", cam);
        }

        partsName = DeviceHelper.GetPartName(gameObject);
    }
Exemple #3
0
 protected override void OnAwake()
 {
     type     = Type.CAMERA;
     cam      = gameObject.GetComponent <SensorDevices.Camera>();
     partName = DeviceHelper.GetPartName(gameObject);
 }
 protected override void OnAwake()
 {
     memoryStreamForCameraInfo = new MemoryStream();
     cam      = gameObject.GetComponent <SensorDevices.Camera>();
     partName = DeviceHelper.GetPartName(gameObject);
 }