
Intel RealSenseã«ã¡ã©ãšIntel RealSense SDKã䜿çšããŠã·ã³ãã«ãªã«ã©ãŒç»åã¹ããªãŒã ã¢ããªã±ãŒã·ã§ã³ãäœæããäºå®ã§ããããããšãã¢ããªã±ãŒã·ã§ã³ã®1ã€ã§ã«ã©ãŒç»åã¹ããªãŒã ã䜿çšããã ãã§ããïŒ æäœã远跡ããçŽæ¥è¡åããèšå€§ãªè¿œå ã³ãŒããªãã§ãåŠç¿ãããããšããæ°ãæ£ãããããããããã¢ããªã±ãŒã·ã§ã³ãå¿ èŠã§ããïŒ ãã®å Žåãããã§æ£ç¢ºã«ãã®çµæãéæããããšããã®ã§ãããªãã¯å¹žéã§ãïŒã¢ããªã±ãŒã·ã§ã³ã®ç°¡åã§ââå¹æçãªäŸãšãã«ã¡ã©ãšSDK Intel RealSenseã®äœ¿çšæ³ã説æããããã¥ã¡ã³ããäœæããããšããŸããã
ãã®äŸã¯ãCïŒã§Intel RealSense SDK R4ããã³Visual Studio *ã䜿çšããŠèšè¿°ãããŠãããR5ãªãªãŒã¹ã§ãã¹ããããŠããŸãã Intel RealSense F200ã«ã¡ã©ãå¿ èŠã§ãã
ãããžã§ã¯ãæ§é
ãã®ã·ã³ãã«ãªã¢ããªã±ãŒã·ã§ã³ã§ã¯ãIntel RealSense SDKã®æ©èœãWindows * Formã°ââã©ãã£ã«ã«ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ã³ãŒãããåé¢ããããšãããããéçºè ãç»åã¹ããªãŒãã³ã°ã«é¢é£ããSDKæ©èœã«éäžããã®ããã䟿å©ã«ãªããŸãã ãããè¡ãããã«ãCïŒïŒRSStreamingïŒã§ã©ãããŒã¯ã©ã¹ãäœæãããã®äžã«ããã€ãã®Intel RealSense SDKã¯ã©ã¹ãå«ããŸããã
Windowsãã©ãŒã ã¢ããªã±ãŒã·ã§ã³ã«ã¯ãããã€ãã®ãã¿ã³ãšãã«ã©ãŒã€ã¡ãŒãžã¹ããªãŒã ã衚瀺ããPictureBoxã³ã³ãããŒã«ã®ã¿ãå«ãŸããŠããŸãã
ç§ã¯å®ç§ãªã¢ããªãäœæããããšããŠããã®ã§ã¯ãªãããšã«æ³šæããŠãã ããã ç¹å®ã®äŸå€åŠçããŒã«ãè¿œå ããŸããããããã«éå®ããŸããã æ£ããããã°ã©ãã³ã°ã®ååãé©çšããã¢ããªã±ãŒã·ã§ã³ã®å®å®æ§ãšãŠãŒã¶ãŒã®å©äŸ¿æ§ãå®çŸãããå Žåã¯ãä»ã®ãã¹ãŠããã§ã«æžå¿µäºé ã§ãã
ãããžã§ã¯ãã®æ§é ã¯ãããŒã¿äŒéã®ããã®ã€ãã³ãã®äœ¿çšã«äŸåããŠããŸãããã®çµæãå¯æ¥ãªçµã³ã€ããªãã§è¡ãããšãå¯èœã§ãã EventArgãç¶æ¿ããè£å©ã€ãã³ãã¯ã©ã¹RSNewImageArgãäœæãããŸããã çŸåšã®ãã¬ãŒã ãã«ã¡ã©ããã¯ã©ã€ã¢ã³ãã¢ããªã±ãŒã·ã§ã³ã«å ¬éããããã«äœ¿çšãããŸãã
ã¯ããã«
ä»äºã«ã¯ãIntel RealSense F200ã«ã¡ã©ãå¿ èŠã§ãã Intel RealSense SDKããŒãžã§ã³R4以éãå¿ èŠã§ãã ããã«ãé©åãªDepth Camera ManagerïŒDCMïŒããã±ãŒãžãã³ã³ãã¥ãŒã¿ãŒã«ã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã SDKããã³F200 DCMã¯ããããããŠã³ããŒãã§ããŸã ã
å¿ èŠæ¡ä»¶
ããŒããŠã§ã¢èŠä»¶
- 第4äžä»£Intel®Coreâ¢ããã»ããµãŒïŒHaswell Microarchitectureã«åºã¥ãïŒã
- 8 GBã®ããŒããã£ã¹ã¯ç©ºã容éã
- Intel RealSense F200ã«ã¡ã©ïŒUSB 3ããŒãã«æ¥ç¶ããå¿ èŠããããŸãïŒã
ãœãããŠã§ã¢èŠä»¶
- 64ãããããŒãžã§ã³ã®Microsoft Windows 8.1ãŸãã¯Windows 10ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã
- Microsoft Visual Studio * 2010â2015ãææ°ã®ãµãŒãã¹ããã¯ã
- CïŒéçºçšMicrosoft .NET * 4.0ãã¬ãŒã ã¯ãŒã¯ã
- Unity * 5.x以éãUnityãšã³ãžã³ã§ã²ãŒã ãéçºããããã
ãããžã§ã¯ãã®ã³ã³ããŒãã³ã
RSNewImageArg.CS
RSNewImageArgã¯ãCïŒEventArgsã¯ã©ã¹ãã掟çããŠããŸãã ã芧ã®ãšãããããã¯1ã€ã®ãã©ã€ããŒãããŒã¿èŠçŽ ãè¿œå ãããå°ããªã©ãããŒã¯ã©ã¹ã§ãã ãã®ãã©ã€ããŒãBitmap _bitMapããŒã¿é ç®ã«ã¯ãã«ã¡ã©ã¹ããªãŒã ããæœåºãããçŸåšã®ãããããããå«ãŸããŠããŸãã
ãã®ã¯ã©ã¹ã¯ã RSStreamingã¯ã©ã¹ãFormã¯ã©ã¹ã«ã€ãã³ããéãè¿ããšãã«ã€ãã³ããžã®åŒæ°ãšããŠäœ¿çšãããæ°ããããããããã衚瀺ããæºåãã§ããããšã瀺ããŸãã
RSStreaming.CS
RSStreamingã¯ãIntel RealSenseã«ã¡ã©ããã®ã«ã©ãŒç»åããŒã¿ãæã€ã©ãããŒã¯ã©ã¹ïŒäžçš®ã®ããšã³ãžã³ãïŒã§ãã ãã®ã¯ã©ã¹ã¯ã次ã®ç®æšã§äœæããŸããã
- ã§ããã ãå€ãã®Intel RealSense SDKæ©èœãæ確ãã€æ確ã«åŒ·èª¿ããã¯ã©ã€ã¢ã³ãã¢ããªã±ãŒã·ã§ã³ããå¯èœãªéãåé¢ããŸãã
- èªè ãã³ãŒããäœãããŠããã®ããç解ã§ããããã«ãã³ãŒãã«ã³ã¡ã³ããæäŸããŠãã ããã
以äžã¯ã RSSpeechEngineã¯ã©ã¹ã«å«ãŸãããã¹ãŠã®é¢æ°ã«ã€ããŠèª¬æããŠããŸãã
ãããªãã¯ã€ãã³ãEventHandler <RSNewImageArg> OnStreamingImage
OnStreamingImageã€ãã³ãã¯ãã¡ãã»ãŒãžãã¯ã©ã€ã¢ã³ãã¢ããªã±ãŒã·ã§ã³ã«åãæ¿ããŠãæ°ããã«ã©ãŒããããããã衚瀺ããæºåãã§ããããšãéç¥ãã圹å²ãæãããŸãã ã¯ã©ã€ã¢ã³ãã¯ã RSNewImageArgãªããžã§ã¯ããåŠçããã€ãã³ããã³ãã©ãŒãäœæããŸãã
åæåããããããªãã¯ããŒã«
getterããããã£ã¯ãã©ã°ãšããŠäœ¿çšããã RSStreamingã¯ã©ã¹ãåæåãããŠããããšã瀺ããŸãã
ãããªãã¯ããŒã«IsStreaming
æ€çŽ¢ã¡ãœããã®ããããã£ã¯ãã©ã°ãšããŠäœ¿çšããã RSStreamingã¯ã©ã¹ãçŸåšã«ã©ãŒç»åããŒã¿ãã¹ããªãŒãã³ã°ããŠããããšã瀺ããŸãã
public void StartStreamingïŒïŒ
ã¯ã©ã¹ãåæåãããŠãããã©ããã確èªããŸãã ããã§ãªãå Žåã¯ã InitCameraãåŒã³åºããŠãã¯ã©ã¹ã皌åäžã§ããããšã確èªããŸãã 次ã«ããã®é¢æ°ã¯_senseManager.StreamFramesïŒ...ïŒé¢æ°ãåŒã³åºããŸãã
Intel RealSenseã®ã¢ããªã±ãŒã·ã§ã³ã®éçºã«é¢ããååãªæ å ±ãååŸã§ããå Žåãã«ã¡ã©ããã®ããŒã¿ã®åä¿¡ã¯ãwhileã«ãŒãã§å®è¡ãããããšãå€ãããšã«æ°ã¥ããã§ãããã ããšãã°ã次ã®ãããªãã®ã§ãã
while (!Stop) { /* Wait until a frame is ready: Synchronized or Asynchronous */ if (sm.AcquireFrame(Synced).IsError()) break; /* Display images */ PXCMCapture.Sample sample = sm.QuerySample(); /* Render streams */ EventHandler<RenderFrameEventArgs> render = RenderFrame; PXCMImage image = null; if (MainPanel != PXCMCapture.StreamType.STREAM_TYPE_ANY && render != null) { image = sample[MainPanel]; render(this, new RenderFrameEventArgs(0, image)); } if (PIPPanel != PXCMCapture.StreamType.STREAM_TYPE_ANY && render != null) render(this, new RenderFrameEventArgs(1, sample[PIPPanel])); /* Optional: Set Mirror State */ mirror = Mirror ? PXCMCapture.Device.MirrorMode.MIRROR_MODE_HORIZONTAL : PXCMCapture.Device.MirrorMode.MIRROR_MODE_DISABLED; if (mirror != sm.captureManager.device.QueryMirrorMode()) sm.captureManager.device.SetMirrorMode(mirror); sm.ReleaseFrame(); /* Optional: Show performance tick */ if (image!=null) timer.Tick(PXCMImage.PixelFormatToString(image.info.format)+" "+image.info.width+"x"+image.info.height); }
ã¯ããããã¯å å®ãªã³ãŒãã§ãã ãã®ã³ãŒãã¯ãç§ã®ãµã³ãã«ã¢ããªã±ãŒã·ã§ã³ãããã¯ããã«å€ãã®ããšãè¡ããŸãããç§ã®whileã«ãŒãã¯ãã®ããã«ã¯äœ¿çšãããŠããŸããã ç§ã®ã¢ããªã±ãŒã·ã§ã³ã¯ã StreamFramesïŒ...ïŒé¢æ°ã䜿çšããŸãã ãã®é¢æ°ã¯ãå éšã§whileã«ãŒããåŠçããåãã¬ãŒã ã«ã¯RSStreamingRGBããµãã¹ã¯ã©ã€ãããã€ãã³ããå«ãŸããŸãã ãã®ããã«åäœããŸãã
- ãããŒPXCMSenseManager.StreamFramesïŒ...ïŒãéå§ããŸã ã
- ã€ãã³ããã³ãã©ã§ã€ãã³ãããã£ããããŸãã
- ã¹ããªãŒãã³ã°ã®æåŸã«ã PXCMSenseManager.CloseïŒïŒãåŒã³åºããŸãã
whileã«ãŒããæåã§ããããã«ãŒããåæ¢ããã¿ã€ãã³ã°ãšæ¹æ³ãç¥ããããªãããããã®ã¢ãããŒããæ°ã«å ¥ã£ãŠããŸãã ç§ã®ä»£ããã«SDKã«ä»»ããŠãã ããã InitCameraïŒïŒé¢æ°ã«ã€ããŠèª¬æãããšããã®ææ³ãã©ã®ããã«æ©èœãããããããã®ã§ãããã§ã¯èª¬æããŸããã ããŒã¿ã¹ããªãŒã ã転éããæ¹æ³ãç解ããSDKãã«ã¡ã©ããéãããŠããçããŒã¿ã®ã«ãŒããå¶åŸ¡ã§ããããã«ããã ãã§ãã
StreamFramesãåŒã³åºããåŸã _isStreamingããŒã«ãã©ã°ãtrueã«èšå®ããŠãã¹ããªãŒã 転éã®éå§ãã¯ã©ã¹ãšã¯ã©ã€ã¢ã³ãã¢ããªã±ãŒã·ã§ã³ã«éç¥ããŸãã
public void StopStreamingïŒïŒ
ã¹ããªãŒãã³ã°ã®åæ¢ã¯ãStartStreamingã®å察ã§ãã ãã®é¢æ°ã¯ãã«ã¡ã©ããã®ããŒã¿ã®éä¿¡ãåæ¢ããSDKã³ãã³ããæäŸãã DisposeïŒïŒãåŒã³åºããŠããŒã¿ãªããžã§ã¯ããç Žæ£ããŸãã
ãã©ã€ããŒããã€ãInitCameraïŒïŒ
InitCameraïŒïŒã¯PXCMSenseManagerã®ã€ã³ã¹ã¿ã³ã¹ãäœæããå¿ èŠãªã¹ããªãŒã ã®ã¿ã€ããå«ããŸãã ã芧ã®ãšãããæ¯ç§30ãã¬ãŒã ã®é床ã§320 x 240ã®è§£å床ãæã€ã«ã©ãŒç»åã®ã¹ããªãŒã ã瀺ããŠããŸãã
èŠããŠãããªããPXCMSenseMangerã®ã€ãã³ãã䜿çšããŠãå©çšå¯èœãªã«ã©ãŒç»åããŒã¿ã®æ°ãããã¬ãŒã ãå©çšã§ããããšãã¯ã©ã¹ã«éç¥ããå¯èœæ§ã«ã€ããŠè©±ããŸããã ãããè¡ãã«ã¯ã PXCMSenseMananger.Handlerã€ãã³ãã¯ã©ã¹ã䜿çšããŸãã ããã»ã¹ã¯éåžžã«ç°¡åã§ããHandlerã¯ã©ã¹ã®ã€ã³ã¹ã¿ã³ã¹ãäœæãã onNewSampleãä»ããŠã€ãã³ããã³ãã©ãŒã«å²ãåœãŠãŠããã PXCMSenseManagerãªããžã§ã¯ããåæåããŸãã _senseManangerãšãã³ãã©ãŒã¯ã©ã¹ã
次ã«ã _initializedãã©ã°ãtrueã«èšå®ããŸãã åè¿°ã®ããã«ããã®ãã©ã°ã䜿çšããŠããã®ã¯ã©ã¹ãŸãã¯ã¯ã©ã€ã¢ã³ãã¢ããªã±ãŒã·ã§ã³ã«RSStreamingã¯ã©ã¹ãåæåãããããšãéç¥ããŸãã
ãã©ã€ããŒãpxcmStatus OnNewSampleïŒïŒ
ããã¯ã PXCMSenseMananger.HandlerïŒïŒãªããžã§ã¯ãã®ã€ãã³ããã³ãã©ãŒã§ãã èŠããŠãããªãã InitCameraïŒïŒé¢æ°ã§ããã®é¢æ°ã®ãªããžã§ã¯ãã€ãã³ããã³ãã©ãŒãå®çŸ©ããŸãã
ã€ãã³ããã³ãã©ã¯ãæå®ãããé¢æ°ã·ã°ããã£ãšäžèŽããå¿ èŠããããŸãã é¢æ°ã¯pxcmStatusãè¿ãã2ã€ã®ãã©ã¡ãŒã¿ãŒãåãå¿ èŠããããŸãã
- åã°ã ã¹ããªãŒã èå¥åã EnableVideoStream sé¢æ°ãä»ããŠè€æ°ã®ã¹ããªãŒã ãèŠæ±ãããå Žåã PXCMCapture.CUID + 0 ã PXCMCapture.CUID + 1ãªã©ã«ãªããŸãã
- ãµã³ãã« å©çšå¯èœãªç»åã
PXCMCapture.Sampleãªããžã§ã¯ãããã¯ã©ã€ã¢ã³ãã¢ããªã±ãŒã·ã§ã³ã§è¡šç€ºã§ãã䜿çšå¯èœãªããããããã«å€æããå¿ èŠããããŸãã
ãŸãã sample.colorãªããžã§ã¯ãã空ã§ã¯ãªãã _colorImageDataã¯ã©ã¹ã®å éšããããããã空ã§ã¯ãªãããšã確èªããŸãã _colorImageDataã«ããŒã¿ãå«ãŸããŠããªãããšã確èªããå¿ èŠããããŸããããŒã¿ãå«ãŸããŠããå Žåã¯ãããã解æŸããå¿ èŠããããŸãã
次ã«ã sample.colorsãªããžã§ã¯ãã䜿çšããŠ_colorImagedataãèšå®ããå¿ èŠããããŸãã ããã¯åºæ¬çã«ã PXCMCapture.Sampleã«ã©ãŒã€ã¡ãŒãžãªããžã§ã¯ãã®ã¡ã¿ããŒã¿ãªããžã§ã¯ãã§ãã ãã®åŸããµã€ãºãæå®ããŠããããããç»åã®äœæã«é²ãããšãã§ããŸãã
ã©ã¹ã¿ãŒã€ã¡ãŒãžãåãåã£ãŠç©ºã§ãªãããšã確èªãããã OnStreamingImageã€ãã³ãããªã³ã«ããŠãã€ãã³ãã®ãœãŒã¹ãšæ°ããRSNewImageArgãªããžã§ã¯ãã瀺ããŸãã
æåŸã«ãçŸåšã®ãã¬ãŒã ãPXCMSenseManangerãªããžã§ã¯ããã解æŸããå¿ èŠããããŸãããŸããããã¯é¢æ°ã®çœ²åã«å¿ èŠãªããã pxcmStatusãè¿ããŸã ã ãã®æç¹ã§ãäŸå€ãåŠçããã³ãŒããè¿œå ã§ããŸãããç°¡åã«ããããã«ãããè¡ããªãããšããå§ãããŸãã ãã®ãããªã³ãŒããæžããå Žåã pxcmStatusã®ç°ãªãç¶æ ãè¿ãããšãã§ããŸãããæåç¶æ ãè¿ãã ãã§ãã
private void DisposeïŒïŒ
DisposeïŒïŒã¯ã¯ãªãŒã³ã¢ãããå®è¡ããŸãã ãã£ã¹ãããã£ãŒã空ã§ã¯ãªããåæåãããŠããããšã確èªããŸãã äž¡æ¹ã®æ¡ä»¶ãæºããããŠããå Žåã圌ã®ã¯ãªãŒãã³ã°ã¡ãœãããåŒã³åºããŸãã RSStreamingããããããã空ã§ãªãããšã確èªããã¯ãªã¢ããŸãã 次ã«ãã©ãã§ãnullãèšå®ããŸãã
MainForm.CS
ã¡ã€ã³ãã©ãŒã ã¯ãã«ã©ãŒã€ã¡ãŒãžã¹ããªãŒã ã衚瀺ããã°ã©ãã£ã«ã«ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ã§ãã ãã®äžã§ã RSStreamingãªããžã§ã¯ããå¶åŸ¡ã§ããŸãã RSStreamingRGBã®ã€ã³ã¹ã¿ã³ã¹ãšããããããã®2ã€ã®ã°ããŒãã«å€æ°ããããŸãã ããããããã«ã¯ã RSStreamingRGBã¯ã©ã¹ã«ãã£ãŠéä¿¡ãããçŸåšã®ãã¬ãŒã ã®çŸåšã®ç»åãå«ãŸããŸãã
ãããªãã¯MainFormïŒïŒ
ãã©ãŒã ã®ã³ã³ã¹ãã©ã¯ã¿ãŒã æ°ããRSSTreamingRGBãªããžã§ã¯ããäœæããã€ãã³ããã³ãã©ãŒã§OnStreamingImageã€ãã³ããæäŸããŸãã
ãã©ã€ããŒããã€ãbtnStream_ClickïŒïŒ
[ã¹ããªãŒãã³ã°ã®éå§]ãã¿ã³ãã¯ãªãã¯ãããšãã®ã€ãã³ããã³ãã©ãŒã _rsStreamingãªããžã§ã¯ãã«ã³ãã³ããäžããŠã ãã®ãªããžã§ã¯ãã®StartStreaming ïŒïŒé¢æ°ãåŒã³åºããŠã¹ããªãŒã ã®éä¿¡ãéå§ããŸãã
ãã©ã€ããŒããã€ãbtnStopStream_ClickïŒïŒ
[ã¹ããªãŒãã³ã°ã®åæ¢]ãã¿ã³ãã¯ãªãã¯ãããšãã®ã€ãã³ããã³ãã©ãŒã _rsStreamingãªããžã§ã¯ãã«ã³ãã³ããäžããŠããã®ãªããžã§ã¯ãã®StopStreamingïŒïŒé¢æ°ãåŒã³åºããŠã¹ããªãŒã ã®è»¢éãåæ¢ããŸãã
private void UpdateColorImageBoxïŒãªããžã§ã¯ããœãŒã¹ãRSNewImageArg eïŒ
UpdateColorImageBox - _rsStream.OnStreamingImageã€ãã³ãã®ã€ãã³ããã³ãã©ãŒã newImageåŒæ°ã空ã§ã¯ãªãããšã確èªã ããã®å Žå_currentBitMapãnewImageãããããããã®ãœãŒã¹ãšããŠäœ¿çšããŠæ°ããããããããã«å²ãåœãŠãŸãã
æ°ãããããããããäœæããªãå Žåã _currentBitMapãã©ãŒã ã¯SDKã«ãã£ãŠäœæãããå ã®ãããããããæããŸãã ãã®ããã RSStreaming.Disposeã¡ãœãããåŒã³åºããšãã«åé¡ãçºçããå¯èœæ§ããããŸãã ã¯ã©ã€ã¢ã³ãããã°ã©ã ã«ã¯ç»åãã¬ãŒã ãããããã®ãã¬ãŒã ã«ã¯SDKããååŸããç»åã衚瀺ãããŸãã ç»åã®ã¢ã¯ãã£ããªåœ¢ç¶ãšãã¬ãŒã ã䜿çšããŠRSStreaming.DisposeãåŒã³åºãããšãããšãSDKãªãœãŒã¹ã解æŸãããç»åãã¬ãŒã ã®å ã®ç»åãåé€ãããããã¯ã©ãã·ã¥ããŸãã
æ°ããç»åã_currentBitMapã«å²ãåœãŠãåŸã pictureBox.InvalidateïŒïŒãåŒã³åºããããã«ãã£ãŠPaint frame pictureã€ãã³ããçºçãããŸãã
private void pictureBox_PaintïŒãªããžã§ã¯ãéä¿¡è ãPaintEventArgs eïŒ
ããã¯ç»åãã¬ãŒã ã®Paintã€ãã³ãã®ãã³ãã©ãŒã§ããã pictureBox.InvalidateïŒïŒãåŒã³åºãããšã§åãæ¿ããããŸãã çŸåšã®ãœãŒã¹ç»åã䜿çšããŠç»åãã¬ãŒã ãåæç»ããã³ãã³ããæäŸããŸãã
æåã«ã _currentBitMapã空ã§ãªãããšã確èªããŠããã _currentBitMapã«æ ŒçŽãããŠããææ°ã®ãããããããèšå®ããŸã ã
ãã©ã€ããŒããã€ãbtnExit_ClickïŒïŒ
ããã§ã¯ãã¹ãŠãåºæ¬ã§ãã CloseïŒïŒãåŒã³åºãã ãã§ãã ããã¯ãã¹ãŠMainForm_FormClosingã¡ãœããã§è¡ããããããã¯ãªãŒã³ã¢ãããåŠçããå¿ èŠã¯ãããŸããã
ãã©ã€ããŒããã€ãbMainForm_FormClosingïŒïŒ
ããã¯ãã€ãã³ããã³ãã©ãŒãéãããã©ãŒã ã€ãã³ãã§ãã ç¹å®ã®é¢æ°ã§CloseïŒïŒã¡ãœãããåŒã³åºããšã FormClosingã€ãã³ããçºçããŸãã ã³ãŒããè€è£œããªãããã«ãããã«ãã¹ãŠã®ã¯ãªãŒãã³ã°ã³ãŒããæçš¿ããŸããã _rsStreamã空ã§ã¯ãªããã¹ããªãŒã ãéä¿¡ãããŠããããšã確èªããŠãã ããã ãããã®æ¡ä»¶ãæºããããŠããå Žåã¯ã _rsStream.StopStreamingïŒïŒãåŒã³åºããŸãã å¿ èŠãªãã®ã¯ãã¹ãŠStopStreamingã§æ¢ã«è¡ãããŠããããã _rsStreamingã®ã¯ãªãŒã³ã¢ããã¡ãœãããåŒã³åºãå¿ èŠã¯ãããŸããã
ãããã«
ãã®èšäºãšãµã³ãã«ã³ãŒããããã°ãIntel RealSense SDKã䜿çšããŠç°¡åãªã«ã©ãŒã€ã¡ãŒãžã³ã°ã¢ããªã±ãŒã·ã§ã³ãäœæããæ¹æ³ãããããç解ã§ããŸãã ç§ã¯ããããã·ã³ãã«ã§ç解å¯èœãªã¢ããªã±ãŒã·ã§ã³ã§è¡ããããšãå®èšŒããããšããŸãããããã¯ãã«ã©ãŒç»åãéä¿¡ããããã®ç¬èªã®ã¢ããªã±ãŒã·ã§ã³ã®äœæãæåãããããã«å¿ èŠãªãã¹ãŠã®èŠçŽ ãå®è£ ããŸãã