Monado OpenXR Runtime
rs_interface.h File Reference

Interface to RealSense devices. More...

Go to the source code of this file.

Macros

#define REALSENSE_MOVIDIUS_VID   0x03E7
 
#define REALSENSE_MOVIDIUS_PID   0x2150
 
#define REALSENSE_TM2_VID   0x8087
 
#define REALSENSE_TM2_PID   0x0B37
 
#define RS_TRACKING_DISABLED   -1
 
#define RS_TRACKING_UNSPECIFIED   0
 
#define RS_TRACKING_DEVICE_SLAM   1
 
#define RS_TRACKING_HOST_SLAM   2
 

Functions

struct xrt_auto_proberrs_create_auto_prober (void)
 Create a auto prober for rs devices. More...
 
struct xrt_fsrs_source_create (struct xrt_frame_context *xfctx, int device_idx)
 Creates a RealSense SLAM source from the appropriate device_idx. More...
 
struct xrt_devicers_create_tracked_device_internal_slam (void)
 Creates an xrt_device that exposes the onboard tracking of a Realsense device (ie. More...
 

Detailed Description

Interface to RealSense devices.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ rs_create_tracked_device_internal_slam()

struct xrt_device * rs_create_tracked_device_internal_slam ( void  )

Creates an xrt_device that exposes the onboard tracking of a Realsense device (ie.

probably a T265)

Returns
An xrt_device that you can call get_tracked_pose on with XRT_INPUT_GENERIC_TRACKER_POSE

Creates an xrt_device that exposes the onboard tracking of a Realsense device (ie.

References rs_container::context, rs_container::device_count, rs_container::device_list, DO, and find_capable_device().

◆ rs_source_create()

struct xrt_fs * rs_source_create ( struct xrt_frame_context xfctx,
int  device_idx 
)

Creates a RealSense SLAM source from the appropriate device_idx.

The streaming configuration is loaded from the global config file.

Parameters
xfctxFrame context this frameserver lifetime is tied to.
device_idxIndex of the realsense device to use. Usually 0 if you only have one RealSense device.
Returns
Frameserver with SLAM streaming capabilities.

Creates a RealSense SLAM source from the appropriate device_idx.

References xrt_fs::configure_capture, xrt_fs::enumerate_modes, rs_source::log_level, rs_source_configure_capture(), rs_source_enumerate_modes(), xrt_fs::stream_start, and U_TYPED_CALLOC.