Ejemplo n.º 1
0
 public virtual void Unknown4(ulong _0, ulong _1, KObject _2) => "Stub hit for Nn.Ro.Detail.IRoInterface.Unknown4 [4]".Debug();
Ejemplo n.º 2
0
 public virtual uint RegisterClient(Nn.Socket.BsdBufferConfig *config, ulong pid, ulong transferMemorySize, KObject _3, ulong _4) => throw new NotImplementedException();
Ejemplo n.º 3
0
 public virtual Nn.Account.Nas.IAuthorizationRequest CreateAuthorizationRequest(uint _0, KObject _1, Buffer <byte> _2, Buffer <byte> _3) => throw new NotImplementedException();
Ejemplo n.º 4
0
 public override uint Unknown10(uint _0, KObject _1) => throw new NotImplementedException();
Ejemplo n.º 5
0
 public override void GetSystemEventReadableHandles(out KObject _0, out KObject _1)
 {
     _0 = new KEvent();
     _1 = new KEvent();
 }
Ejemplo n.º 6
0
 public virtual void AcquireGamepadPairingEventImpl(out object _0, out KObject _1) => throw new NotImplementedException();
Ejemplo n.º 7
0
 public override void QueryEvent(uint fd, uint event_id, out uint error_code, out KObject evt)
 {
     error_code = 0;
     evt        = Fds[fd].GetEvent(event_id);
 }
Ejemplo n.º 8
0
 public virtual Nn.Account.Baas.IGuestLoginRequest CreateGuestLoginRequest(uint _0, KObject _1) => throw new NotImplementedException();
Ejemplo n.º 9
0
 public override void InitializeGamePlayRecording(ulong _0, KObject _1)
 {
 }
Ejemplo n.º 10
0
 public virtual object OpenLog(KObject _0) => throw new NotImplementedException();
Ejemplo n.º 11
0
 public virtual Nn.Account.Baas.IFloatingRegistrationRequest CreateFloatingRegistrationRequest(uint _0, KObject _1) => throw new NotImplementedException();
Ejemplo n.º 12
0
 public virtual uint Unknown10(uint _0, KObject _1) => throw new NotImplementedException();
Ejemplo n.º 13
0
 public virtual void QueryEvent(uint fd, uint event_id, out uint _2, out KObject _3) => throw new NotImplementedException();
Ejemplo n.º 14
0
 public virtual uint Initialize(uint transfer_memory_size, KObject current_process, KObject transfer_memory) => throw new NotImplementedException();
Ejemplo n.º 15
0
 public virtual void RegisterSystemEventForDiscoveryImpl(out object _0, out KObject _1) => throw new NotImplementedException();
Ejemplo n.º 16
0
 public override Nn.Am.Service.IApplicationProxy OpenApplicationProxy(ulong _0, ulong _1, KObject _2) =>
 new IApplicationProxy();
Ejemplo n.º 17
0
 public virtual void AcquireRadioEventImpl(out object _0, out KObject _1) => throw new NotImplementedException();
Ejemplo n.º 18
0
 public virtual void Initialize(ulong _0, ulong _1, KObject _2) => "Stub hit for Nn.Ldr.Detail.IRoInterface.Initialize [4]".Debug();
Ejemplo n.º 19
0
 public override uint Initialize(uint transfer_memory_size, KObject current_process, KObject transfer_memory) => 0;
Ejemplo n.º 20
0
 public virtual IpcInterface CreateProcess(object _0, KObject _1) => throw new NotImplementedException();
Ejemplo n.º 21
0
 public override uint MapSharedMem(uint fd, uint nvmap_handle, KObject _2) => throw new NotImplementedException();
Ejemplo n.º 22
0
        public void ReceiveData(KObject data)
        {
            // 데이터 들어오면 카메라 시스템 정지
            var pDocument = DeepSight.CDocument.GetDocument;

            //if( CDefine.enumTrigger.TRIGGER_OFF == pDocument.GetTrigger( ( int )CDefine.enumCamera.CAMERA_1 ) ) return;
            m_objCameraSystem.Stop();
            CImageData3D objImageData3D = new CImageData3D();
            // 일단 해상도를 임의로 지정하자

            GoDataSet dataSet = ( GoDataSet )data;

            pDocument.SetUpdateLog(CDefine.enumLogType.LOG_PROCESS, "GOCATOR RECEIVE DATA : " + dataSet.Count.ToString());
            for (UInt32 i = 0; i < dataSet.Count; i++)
            {
                GoDataMsg dataObj = ( GoDataMsg )dataSet.Get(i);
                switch (dataObj.MessageType)
                {
                case GoDataMessageType.Stamp: {
                    GoStampMsg stampMsg = ( GoStampMsg )dataObj;
                    for (UInt32 j = 0; j < stampMsg.Count; j++)
                    {
                        GoStamp stamp = stampMsg.Get(j);
                        Console.WriteLine("Frame Index = {0}", stamp.FrameIndex);
                        Console.WriteLine("Time Stamp = {0}", stamp.Timestamp);
                        Console.WriteLine("Encoder Value = {0}", stamp.Encoder);
                    }
                }
                break;

                case GoDataMessageType.UniformSurface: {
                            #pragma warning disable CS0618 // 형식 또는 멤버는 사용되지 않습니다.
                    GoSurfaceMsg surfaceMsg = ( GoSurfaceMsg )dataObj;
                            #pragma warning restore CS0618 // 형식 또는 멤버는 사용되지 않습니다.

                    objImageData3D.iOffsetZ     = surfaceMsg.ZOffset;
                    objImageData3D.iResolutionX = surfaceMsg.XResolution;        // * DEF_3D_DATA_MULTIPLE;
                    objImageData3D.iResolutionY = surfaceMsg.YResolution;
                    objImageData3D.iResolutionZ = surfaceMsg.ZResolution;
                    int    lWidth        = objImageData3D.iWidth = ( int )surfaceMsg.Width;
                    int    lHeight       = objImageData3D.iHeight = ( int )surfaceMsg.Length;
                    int    bufferSize    = lWidth * lHeight;
                    IntPtr bufferPointer = surfaceMsg.Data;

                    Console.WriteLine("Whole Part Height Map received:");
                    Console.WriteLine(" Buffer width: {0}", lWidth);
                    Console.WriteLine(" Buffer Height: {0}", lHeight);

                    objImageData3D.objHeightDataOrigin = new short[bufferSize];

                    Marshal.Copy(bufferPointer, objImageData3D.objHeightDataOrigin, 0, objImageData3D.objHeightDataOrigin.Length);
                    // SetDataToCsv("d:\\test.csv", objImageData3D.objHeightDataOrigin);
                }
                break;

                case GoDataMessageType.SurfaceIntensity: {
                    GoSurfaceIntensityMsg surfaceMsg = ( GoSurfaceIntensityMsg )dataObj;
                    long   width          = surfaceMsg.Width;
                    long   length         = surfaceMsg.Length;
                    long   bufferSize     = width * length;
                    IntPtr bufferPointeri = surfaceMsg.Data;

                    Console.WriteLine("Whole Part Intensity Image received:");
                    Console.WriteLine(" Buffer width: {0}", width);
                    Console.WriteLine(" Buffer length: {0}", length);
                    objImageData3D.objIntensityDataOrigin = new byte[bufferSize];
                    Marshal.Copy(bufferPointeri, objImageData3D.objIntensityDataOrigin, 0, objImageData3D.objIntensityDataOrigin.Length);

//                             objImageData3D.objBitmapIntensity = CopyDataToBitmap( ( int )length, ( int )width, objImageData3D.objIntensityDataOrigin );
//                             objImageData3D.objBitmapIntensity.Save( "d:\\Intensity.bmp" );
                }
                break;

                default:
                    break;
                }
            }

            if (null != m_objCallback)
            {
                CImageData objData = new CImageData();
                objData.bGrabComplete   = true;
                objData.bitmapImage     = objImageData3D.objBitmapIntensity;
                objData.objCameraData3D = objImageData3D;
                m_objCallback(objData);
            }

            iGCCollectCount++;

            if (1 < iGCCollectCount)
            {
                GC.Collect();
                iGCCollectCount = 0;
            }
        }
Ejemplo n.º 23
0
 public virtual void RegisterClassDriver(object _0, KObject _1, out KObject _2, out Nn.Pcie.Detail.ISession _3) => throw new NotImplementedException();
Ejemplo n.º 24
0
 public virtual void RegisterSystemEventForConnectedDeviceConditionImpl(out object _0, out KObject _1) => throw new NotImplementedException();
Ejemplo n.º 25
0
 public virtual void RunImageTransferExProcessor(uint _0, ulong _1, byte[] _2, ulong _3, ulong _4, KObject _5) => "Stub hit for Nn.Irsensor.IIrSensorServer.RunImageTransferExProcessor [316]".Debug();
Ejemplo n.º 26
0
 public virtual void RegisterSystemEventForRegisteredDeviceInfoImpl(out object _0, out KObject _1) => throw new NotImplementedException();
Ejemplo n.º 27
0
 public virtual void Unknown2(object _0, KObject _1) => "Stub hit for Nn.Sasbus.ISession.Unknown2 [2]".Debug();
Ejemplo n.º 28
0
 public virtual void Unknown19(out object _0, out KObject _1) => throw new NotImplementedException();
Ejemplo n.º 29
0
 public virtual void Unknown9(object _0, KObject _1, KObject _2, KObject _3, KObject _4, KObject _5) => "Stub hit for Nn.Wlan.Detail.ISocketManager.Unknown9 [9]".Debug();
Ejemplo n.º 30
0
        void ProfileProcessingFunc(KObject data, int dataQuene)
        {
            GoDataSet _dataSource = new GoDataSet();

            _dataSource = (GoDataSet)data;
            DataContext   _dataContext  = new DataContext();
            ProfileShape  _profileShape = new ProfileShape();
            StringBuilder sb            = new StringBuilder();
            StringBuilder rawSb         = new StringBuilder();

            for (UInt32 i = 0; i < _dataSource.Count; i++)
            {
                GoDataMsg dataObj = (GoDataMsg)_dataSource.Get(i);
                switch (dataObj.MessageType)
                {
                case GoDataMessageType.ResampledProfile:
                {
                    GoResampledProfileMsg profileMsg = (GoResampledProfileMsg)dataObj;
                    _dataContext.xResolution = (double)profileMsg.XResolution / 1000000;
                    _dataContext.zResolution = (double)profileMsg.ZResolution / 1000000;
                    _dataContext.xOffset     = (double)profileMsg.XOffset / 1000;
                    _dataContext.zOffset     = (double)profileMsg.ZOffset / 1000;
                    _profileShape.width      = profileMsg.Width;
                    _profileShape.size       = profileMsg.Size;
                    //generate csv file for point data save
                    short[]        points        = new short[_profileShape.width];
                    ProfilePoint[] profileBuffer = new ProfilePoint[_profileShape.width];
                    IntPtr         pointsPtr     = profileMsg.Data;
                    Marshal.Copy(pointsPtr, points, 0, points.Length);

                    for (UInt32 arrayIndex = 0; arrayIndex < _profileShape.width; ++arrayIndex)
                    {
                        if (points[arrayIndex] != -32768)
                        {
                            profileBuffer[arrayIndex].x = _dataContext.xOffset + _dataContext.xResolution * arrayIndex;
                            profileBuffer[arrayIndex].z = _dataContext.zOffset + _dataContext.zResolution * points[arrayIndex];
                        }
                        else
                        {
                            profileBuffer[arrayIndex].x = _dataContext.xOffset + _dataContext.xResolution * arrayIndex;
                            profileBuffer[arrayIndex].z = -32768;
                        }

                        zValueList.Add(profileBuffer[arrayIndex].z);
                    }


                    sb.Clear();


                    if (!File.Exists(filePath))
                    {
                        sb.Append("Index,");

                        for (int k = 0; k < profileBuffer.Length; k++)
                        {
                            sb.Append(profileBuffer[k].x.ToString() + ",");
                        }
                        sb.Append(Environment.NewLine);
                        File.AppendAllText(filePath, sb.ToString());
                        //updateMsg("Create file sucessfully");
                        sb.Clear();
                    }

                    sb.Append(dataQuene.ToString() + ",");
                    //Get Value   save to file
                    for (int k = 0; k < profileBuffer.Length; k++)
                    {
                        sb.Append(profileBuffer[k].z.ToString() + ",");
                    }
                    sb.Append(Environment.NewLine);
                    // write to file
                    File.AppendAllText(filePath, sb.ToString());
                    sb.Clear();
                }
                break;

                default: break;
                }
            }
        }