File interface.cpp
FileList > openxr > interface.cpp
Go to the source code of this file
#include "interface.h"#include "illixr/data_format/hand_tracking_data.hpp"#include "illixr/math_util.hpp"#include "illixr/phonebook.hpp"#include "illixr/switchboard.hpp"#include "ixr_openxr.hpp"#include "oxr_objects.h"#include <boost/interprocess/managed_shared_memory.hpp>#include <boost/interprocess/sync/named_mutex.hpp>#include <boost/interprocess/sync/scoped_lock.hpp>#include <sstream>
Classes
| Type | Name |
|---|---|
| struct | ht_illixr_handle_t |
| struct | valid_points |
Public Attributes
| Type | Name |
|---|---|
| const std::vector< int > | invalid = /* multi line expression */ |
| const std::map< int, int > | oxr_to_ixr_points = /* multi line expression */ |
Public Functions
| Type | Name |
|---|---|
| XrResult | illixr_xrCreateHandTrackerEXT (XrSession session, const XrHandTrackerCreateInfoEXT * createInfo, XrHandTrackerEXT * handTracker) |
| XrResult XRAPI_CALL | illixr_xrDestroyHandTrackerEXT (XrHandTrackerEXT handTracker) |
| XrResult XRAPI_CALL | illixr_xrLocateHandJointsEXT (XrHandTrackerEXT handTracker, const XrHandJointsLocateInfoEXT * locateInfo, XrHandJointLocationsEXT * locations) |
Public Attributes Documentation
variable invalid
const std::vector<int> invalid;
The OpenXR standard has 25 hand points, while the medipipe code has only 21. This list gives the OpenXR hand points which have no equivalent in mediapipe.
variable oxr_to_ixr_points
const std::map<int, int> oxr_to_ixr_points;
Mapping of OpenXR hand points to ILLIXR hand points.
Public Functions Documentation
function illixr_xrCreateHandTrackerEXT
XrResult illixr_xrCreateHandTrackerEXT (
XrSession session,
const XrHandTrackerCreateInfoEXT * createInfo,
XrHandTrackerEXT * handTracker
)
Create a hand joints handle.
Parameters:
sessionAn XrSession in which the hand tracker will be active.createInfoThe XrHandTrackerCreateInfoEXT used to specify the hand tracker.handTrackerThe returned XrHandTrackerEXT handle.
Returns:
XrResult instance.
function illixr_xrDestroyHandTrackerEXT
XrResult XRAPI_CALL illixr_xrDestroyHandTrackerEXT (
XrHandTrackerEXT handTracker
)
Destroy a hand joints handle
Parameters:
handTrackerAn XrHandTrackerEXT previously created by illixr_xrCreateHandTrackerEXT.
Returns:
XrResult instance.
function illixr_xrLocateHandJointsEXT
XrResult XRAPI_CALL illixr_xrLocateHandJointsEXT (
XrHandTrackerEXT handTracker,
const XrHandJointsLocateInfoEXT * locateInfo,
XrHandJointLocationsEXT * locations
)
Locate hand joint locations
Parameters:
handTrackerAn XrHandTrackerEXT previously created by illixr_xrCreateHandTrackerEXT.locateInfoPointer to XrHandJointsLocateInfoEXT describing information to locate hand joints.locationsPointer to XrHandJointLocationsEXT receiving the returned hand joint locations.
Returns:
XrResult instance.
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/openxr/interface.cpp