Mech-Eye API 2.6.0
API reference documentation for Mech-Eye Industrial 3D Camera
Loading...
Searching...
No Matches
Laser.h
1/*******************************************************************************
2 * BSD 3-Clause License
3 *
4 * Copyright (c) 2016-2025, Mech-Mind Robotics Technologies Co., Ltd.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright notice, this
11 * list of conditions and the following disclaimer.
12 *
13 * 2. Redistributions in binary form must reproduce the above copyright notice,
14 * this list of conditions and the following disclaimer in the documentation
15 * and/or other materials provided with the distribution.
16 *
17 * 3. Neither the name of the copyright holder nor the names of its
18 * contributors may be used to endorse or promote products derived from
19 * this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * Info: https://www.mech-mind.com/
33 *
34 ******************************************************************************/
35
36#pragma once
37#include "Parameter.h"
38
39namespace mmind {
40
41namespace eye {
42
43namespace laser_setting {
44
46{
47public:
48 static constexpr const char* name = "LaserPowerLevel";
49
50 static constexpr const char* description =
51 "Sets laser's power level."
52 "High power is suitable for reflective objects and for situations where the structured "
53 "light stripes have low contrast on the object surface, such as on dark-colored "
54 "objects.\nLow power helps reduce power consumption.";
55
56 static constexpr Parameter::Type type = Parameter::Type::_Int;
57
58 static constexpr int step() { return 10; }
59
60 static constexpr Range<int> range() { return {50, 100}; }
61
62 static constexpr const char* unit = "%";
63};
64
66{
67public:
68 static constexpr const char* name = "LaserFringeCodingMode";
69
70 static constexpr const char* description =
71 "Selects the pattern of the structured light to be projected.\n\nNote:\n* When "
72 "\"Reflective\" is selected, the following tool and parameters are "
73 "unavailable:\n\"FramePartitionCount\" in the \"mmind::eye::laser_setting\" namespace\n** "
74 "\"FringeMinThreshold\" in the \"mmind::eye::pointcloud_processing_setting\" namespace.";
75
76 static constexpr Parameter::Type type = Parameter::Type::_Enum;
77
78 enum struct Value {
85 };
86};
87
89{
90public:
91 static constexpr const char* name = "LaserProcessingMode";
92
93 static constexpr const char* description =
94 "Select the data processing mode for the \"Reflective\" fringe coding mode.\n\n* Faster: "
95 "provides faster processing speed, but the depth data might have missing points. Suitable "
96 "for scenarios with relatively simple reflective conditions.\n* More Complete: provides "
97 "more complete depth data, but the processing speed is slower. Suitable for scenarios with "
98 "complex reflective conditions, such as a bin whose walls often cause interreflection.";
99
100 static constexpr Parameter::Type type = Parameter::Type::_Enum;
101
102 enum struct Value {
108 };
109};
110
112{
113public:
114 static constexpr const char* name = "LaserFrameRange";
115
116 static constexpr const char* description = "Modify the Laser's scan range.";
117
118 static constexpr Parameter::Type type = Parameter::Type::_Range;
119
120 static constexpr Range<int> range() { return {0, 100}; }
121};
122
124{
125public:
126 static constexpr const char* name = "LaserFramePartitionCount";
127
128 static constexpr const char* description =
129 "Set Laser's scan partition count."
130 "If the value is more than 1, the scan from start to end will be partitioned to "
131 "multiple "
132 "parts. It is recommended to use mutiple partition for extremely dark "
133 "objects.\n\nNote: "
134 "\"FramePartitionCount\" is unavailable when \"FringeCodingMode\" category is set to "
135 "\"Reflective\".";
136
137 static constexpr Parameter::Type type = Parameter::Type::_Int;
138
139 static constexpr Range<int> range() { return {1, 4}; }
140};
141} // namespace laser_setting
142
143} // namespace eye
144
145} // namespace mmind
Type
Describes the device parameter data types.
Definition Parameter.h:30
@ _Int
Integer type.
Definition Parameter.h:31
@ _Enum
Enumeration type.
Definition Parameter.h:34
@ _Range
Range type. See Range for details.
Definition Parameter.h:36
Describes a value range.
Definition CommonTypes.h:29