31 XRT_PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT = 0x00000001,
32 XRT_PLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT = 0x00000002,
33 XRT_PLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT = 0x00000004,
34 XRT_PLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT = 0x00000008,
35 XRT_PLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT = 0x00000010,
36 XRT_PLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT = 0x00000020,
37 XRT_PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT = 0x00000040,
47 XRT_PLANE_DETECTOR_FLAGS_CONTOUR_EXT = 1,
57 XRT_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXT = 0,
58 XRT_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXT = 1,
59 XRT_PLANE_DETECTOR_ORIENTATION_VERTICAL_EXT = 2,
60 XRT_PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXT = 3,
70 XRT_PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXT = 0,
71 XRT_PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXT = 1,
72 XRT_PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXT = 2,
73 XRT_PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXT = 3,
74 XRT_PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXT = 4,
84 XRT_PLANE_DETECTOR_STATE_NONE_EXT = 0,
85 XRT_PLANE_DETECTOR_STATE_PENDING_EXT = 1,
86 XRT_PLANE_DETECTOR_STATE_DONE_EXT = 2,
87 XRT_PLANE_DETECTOR_STATE_ERROR_EXT = 3,
88 XRT_PLANE_DETECTOR_STATE_FATAL_EXT = 4,
99 uint32_t orientation_count;
101 uint32_t semantic_type_count;
123 uint32_t polygon_buffer_count;
133 uint32_t vertex_count;
211 memset(detections, 0,
sizeof(*detections));
#define XRT_MAX_PLANE_ORIENTATIONS_EXT
Max number of plane orientations that can be requested at a time.
Definition: xrt_limits.h:44
xrt_plane_detection_capability_flags_ext
Caps for a plane detector, see xrt_device.
Definition: xrt_plane_detector.h:30
xrt_plane_detector_orientation_ext
Orientation of a plane.
Definition: xrt_plane_detector.h:56
#define XRT_MAX_PLANE_SEMANTIC_TYPE_EXT
Max number of plane semantic types that can be requested at a time.
Definition: xrt_limits.h:49
xrt_plane_detector_semantic_type_ext
Has this plane any semantic meaning?
Definition: xrt_plane_detector.h:69
xrt_plane_detector_flags_ext
Flags used when running plane detection.
Definition: xrt_plane_detector.h:46
xrt_plane_detector_state_ext
State of a plane detector, see xrt_device.
Definition: xrt_plane_detector.h:83
static void xrt_plane_detections_ext_clear(struct xrt_plane_detections_ext *detections)
Small helper to free any data of a xrt_plane_detections_ext struct, does not free the struct itself.
Definition: xrt_plane_detector.h:205
static Eigen::Map< const Eigen::Quaternionf > orientation(const struct xrt_pose &pose)
Return a Eigen type wrapping a pose's orientation (const).
Definition: m_eigen_interop.hpp:199
Each plane has n polygons; ultimately plane metadata from locations and vetices is reconstructed.
Definition: xrt_plane_detector.h:171
uint32_t location_size
size of locations and polygon_info_start_index arrays.
Definition: xrt_plane_detector.h:176
uint32_t polygon_info_size
size of polygon_infos array.
Definition: xrt_plane_detector.h:186
struct xrt_vec2 * vertices
Continuous array of polygon vertices of all polygons for all planes of a query.
Definition: xrt_plane_detector.h:195
struct xrt_plane_polygon_info_ext * polygon_infos
Continuous array of polygon_infos of all polygons for all planes of a query.
Definition: xrt_plane_detector.h:189
uint32_t location_count
How many locations were found.
Definition: xrt_plane_detector.h:173
uint32_t * polygon_info_start_index
Parallel array to locations.
Definition: xrt_plane_detector.h:183
uint32_t vertex_size
size of vertices array.
Definition: xrt_plane_detector.h:192
struct xrt_plane_detector_location_ext * locations
! array of detected locations.
Definition: xrt_plane_detector.h:179
A query for a plane.
Definition: xrt_plane_detector.h:97
struct xrt_vec3 bounding_box_extent
width, height, depth
Definition: xrt_plane_detector.h:107
Location and other info for a plane.
Definition: xrt_plane_detector.h:116
struct xrt_vec2 extents
x = width, y = height
Definition: xrt_plane_detector.h:120
Helper struct to pair up metadata for one polygon.
Definition: xrt_plane_detector.h:132
uint32_t vertices_start_index
Index into the continuous array of vertices for all planes of a query.
Definition: xrt_plane_detector.h:136
A pose composed of a position and orientation.
Definition: xrt_defines.h:465
A relation with two spaces, includes velocity and acceleration.
Definition: xrt_defines.h:657
A 2 element vector with single floats.
Definition: xrt_defines.h:250
A 3 element vector with single floats.
Definition: xrt_defines.h:271
Common defines and enums for XRT.
Header for limits of the XRT interfaces.