<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to control the infrared laser using matlab wrapper in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687982#M16212</link>
    <description>Hi THelb,

This issue has been discussed in the thread below. You may find it helpful.
&lt;A href="https://forums.intel.com/s/question/0D50P0000490Z2fSAE/obtain-the-infrared-frame-in-matlab-for-d435"&gt;https://forums.intel.com/s/question/0D50P0000490Z2fSAE/obtain-the-infrared-frame-in-matlab-for-d435&lt;/A&gt;

Regards,
Alexandra</description>
    <pubDate>Wed, 06 Mar 2019 23:45:41 GMT</pubDate>
    <dc:creator>Alexandra_C_Intel</dc:creator>
    <dc:date>2019-03-06T23:45:41Z</dc:date>
    <item>
      <title>How to control the infrared laser using matlab wrapper</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687979#M16209</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have been trying this for a long time now, sadly i still did not get to a solution. I am using D435 with matlab wrapper and i need to control the laser power (turn it off or make it less bright). Since working with the mex file is quite confusing for me, i have not yet figured out the correct syntax to do so. I would therefore appreciate some help a lot.&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 18:58:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687979#M16209</guid>
      <dc:creator>THelb</dc:creator>
      <dc:date>2019-03-06T18:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the infrared laser using matlab wrapper</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687980#M16210</link>
      <description>&lt;P&gt;Hi THelb,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your interest in the Intel RealSense D435 camera. &lt;/P&gt;&lt;P&gt;You can use this function to enable/disable the emitter:&lt;/P&gt;&lt;P&gt;depth_sensor.set_option(sens.option.emitter_enabled, 0); disable emitter&lt;/P&gt;&lt;P&gt;depth_sensor.set_option(sens.option.emitter_enabled, 1); - enable emitter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alexandra&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 22:50:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687980#M16210</guid>
      <dc:creator>Alexandra_C_Intel</dc:creator>
      <dc:date>2019-03-06T22:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the infrared laser using matlab wrapper</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687981#M16211</link>
      <description>&lt;P&gt;Hi Alexandra, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. Unfortunately it does not work for me yet. Calling the function &lt;/P&gt;&lt;P&gt;depth_sensor.set_option(sens.option.emitter_enabled, 0);  &lt;/P&gt;&lt;P&gt;i get the following error message:   Undefined variable "sens" or class "sens.option.emitter_enabled".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried replacing the part "sens.option.emitter_enabled" with 18 (according to option.m this is the equivalent):&lt;/P&gt;&lt;P&gt;depth_sensor.set_option(18, 0);&lt;/P&gt;&lt;P&gt;Which then led to this error:   Undefined variable "depth_sensor" or class "depth_sensor.set_option".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess i first have to define or call depth_sensor in any way, but i don't know how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One short further question: how could i set the laser power of the emitter? according to the data sheet, it should be possible to set it to 0, 30, 60, 90, ...., 360)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 23:14:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687981#M16211</guid>
      <dc:creator>THelb</dc:creator>
      <dc:date>2019-03-06T23:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the infrared laser using matlab wrapper</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687982#M16212</link>
      <description>Hi THelb,

This issue has been discussed in the thread below. You may find it helpful.
&lt;A href="https://forums.intel.com/s/question/0D50P0000490Z2fSAE/obtain-the-infrared-frame-in-matlab-for-d435"&gt;https://forums.intel.com/s/question/0D50P0000490Z2fSAE/obtain-the-infrared-frame-in-matlab-for-d435&lt;/A&gt;

Regards,
Alexandra</description>
      <pubDate>Wed, 06 Mar 2019 23:45:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687982#M16212</guid>
      <dc:creator>Alexandra_C_Intel</dc:creator>
      <dc:date>2019-03-06T23:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the infrared laser using matlab wrapper</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687983#M16213</link>
      <description>&lt;P&gt;Hi Alexandra,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for that link. Unfortunately it seems to be broken. "The page requested has moved or no longer exists."&lt;/P&gt;&lt;P&gt;But obtaining the IR frame is not an issue for me, that works perfectly fine so far. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what i have coded for that so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pipe = realsense.pipeline();&lt;/P&gt;&lt;P&gt;cfg = realsense.config();&lt;/P&gt;&lt;P&gt;cfg.enable_stream(realsense.stream.infrared, 1, 1280, 720, realsense.format.y8);&lt;/P&gt;&lt;P&gt;pipeprofile = pipe.start(cfg);&lt;/P&gt;&lt;P&gt;fs = pipe.wait_for_frames();&lt;/P&gt;&lt;P&gt;ir_frame = fs.first(3);&lt;/P&gt;&lt;P&gt;data = ir_frame.get_data();&lt;/P&gt;&lt;P&gt;imshow(permute(reshape(data, 1280, 720), [2 1]))&lt;/P&gt;&lt;P&gt;pipe.stop();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 23:52:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687983#M16213</guid>
      <dc:creator>THelb</dc:creator>
      <dc:date>2019-03-06T23:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the infrared laser using matlab wrapper</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687984#M16214</link>
      <description>Hi THelb,

For setting the Emitter_Enabled option, you should implement the code like this:
dev = profile.get_device();
sens = dev.first('depth_sensor');
sens.set_option(realsense.option.emitter_enabled, 0); %or 1

Please let me know if it works.

Regards,
Alexandra</description>
      <pubDate>Fri, 08 Mar 2019 17:20:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687984#M16214</guid>
      <dc:creator>Alexandra_C_Intel</dc:creator>
      <dc:date>2019-03-08T17:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the infrared laser using matlab wrapper</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687985#M16215</link>
      <description>&lt;P&gt;Hi Alexandra,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much, it works now!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;THelb&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 20:38:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-control-the-infrared-laser-using-matlab-wrapper/m-p/687985#M16215</guid>
      <dc:creator>THelb</dc:creator>
      <dc:date>2019-03-08T20:38:24Z</dc:date>
    </item>
  </channel>
</rss>

