Struct ILLIXR::data_format::pose::hand_joint_poses
ClassList > ILLIXR > data_format > pose > hand_joint_poses
All joint poses for one hand, along with hand-level metadata. More...
#include <hand_pose.hpp>
Public Attributes
| Type | Name |
|---|---|
| bool | is_active = falseOverall tracking confidence (0.0 = no confidence, 1.0 = full confidence) |
| std::array< hand_joint_pose, XR_HAND_JOINT_COUNT_EXT > | joints Per-joint pose data indexed by joint . |
Public Functions
| Type | Name |
|---|---|
| hand_joint_poses () Default constructor. All joints are default-constructed; hand is not tracked. |
|
| hand_joint_poses (std::array< XrHandJointLocationEXT, XR_HAND_JOINT_COUNT_EXT > & pose, std::array< XrHandJointVelocityEXT, XR_HAND_JOINT_COUNT_EXT > & velocity) |
|
| hand_joint_pose & | operator[] (joint j) Access a joint pose by its joint identifier. |
| const hand_joint_pose & | operator[] (joint j) const Access a joint pose by its joint identifier (const overload). |
| void | update (std::array< XrHandJointLocationEXT, XR_HAND_JOINT_COUNT_EXT > & pose, std::array< XrHandJointVelocityEXT, XR_HAND_JOINT_COUNT_EXT > & velocity) |
Detailed Description
Wraps an array of hand_joint_pose (one per joint) and records whether the hand as a whole is currently being tracked.
Public Attributes Documentation
variable is_active
Overall tracking confidence (0.0 = no confidence, 1.0 = full confidence)
bool ILLIXR::data_format::pose::hand_joint_poses::is_active;
variable joints
Per-joint pose data indexed by joint .
std::array<hand_joint_pose, XR_HAND_JOINT_COUNT_EXT> ILLIXR::data_format::pose::hand_joint_poses::joints;
Public Functions Documentation
function hand_joint_poses [1/2]
Default constructor. All joints are default-constructed; hand is not tracked.
inline ILLIXR::data_format::pose::hand_joint_poses::hand_joint_poses ()
function hand_joint_poses [2/2]
inline ILLIXR::data_format::pose::hand_joint_poses::hand_joint_poses (
std::array< XrHandJointLocationEXT, XR_HAND_JOINT_COUNT_EXT > & pose,
std::array< XrHandJointVelocityEXT, XR_HAND_JOINT_COUNT_EXT > & velocity
)
Constructor using an array of poses and velocities
Parameters:
poseArray of poses (one for each joint)velocityArray of velocities (one for each joint)
function operator[]
Access a joint pose by its joint identifier.
inline hand_joint_pose & ILLIXR::data_format::pose::hand_joint_poses::operator[] (
joint j
)
Parameters:
jThe joint to access
Returns:
Reference to the corresponding hand_joint_pose
function operator[]
Access a joint pose by its joint identifier (const overload).
inline const hand_joint_pose & ILLIXR::data_format::pose::hand_joint_poses::operator[] (
joint j
) const
Parameters:
jThe joint to access
Returns:
Const reference to the corresponding hand_joint_pose
function update
inline void ILLIXR::data_format::pose::hand_joint_poses::update (
std::array< XrHandJointLocationEXT, XR_HAND_JOINT_COUNT_EXT > & pose,
std::array< XrHandJointVelocityEXT, XR_HAND_JOINT_COUNT_EXT > & velocity
)
Update an existing instance with new information
Parameters:
poseThe new posesvelocityThe new velocity information
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/illixr_release/ILLIXR/include/illixr/data_format/poses/hand_pose.hpp