- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
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.
Thank you very much in advance!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi THelb,
Thank you for your interest in the Intel RealSense D435 camera.
You can use this function to enable/disable the emitter:
depth_sensor.set_option(sens.option.emitter_enabled, 0); disable emitter
depth_sensor.set_option(sens.option.emitter_enabled, 1); - enable emitter
Regards,
Alexandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alexandra,
Thank you for your reply. Unfortunately it does not work for me yet. Calling the function
depth_sensor.set_option(sens.option.emitter_enabled, 0);
i get the following error message: Undefined variable "sens" or class "sens.option.emitter_enabled".
I then tried replacing the part "sens.option.emitter_enabled" with 18 (according to option.m this is the equivalent):
depth_sensor.set_option(18, 0);
Which then led to this error: Undefined variable "depth_sensor" or class "depth_sensor.set_option".
I guess i first have to define or call depth_sensor in any way, but i don't know how.
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)
Thank you very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alexandra,
Thank you for that link. Unfortunately it seems to be broken. "The page requested has moved or no longer exists."
But obtaining the IR frame is not an issue for me, that works perfectly fine so far.
This is what i have coded for that so far:
pipe = realsense.pipeline();
cfg = realsense.config();
cfg.enable_stream(realsense.stream.infrared, 1, 1280, 720, realsense.format.y8);
pipeprofile = pipe.start(cfg);
fs = pipe.wait_for_frames();
ir_frame = fs.first(3);
data = ir_frame.get_data();
imshow(permute(reshape(data, 1280, 720), [2 1]))
pipe.stop();
Thank you very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alexandra,
thank you very much, it works now!
Regards,
THelb
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page