xrt: Rename hand_origin to hand_pose

hand_origin is confusing because it implies it is the origin of the coordinate system the hand is in.
It actually is the hand pose in the "global" coordinate system.
This commit is contained in:
Christoph Haag 2020-12-27 23:52:38 +01:00 committed by Jakob Bornecrantz
parent c84dbad03e
commit e2c1bc1d16
3 changed files with 6 additions and 6 deletions

View file

@ -738,7 +738,7 @@ u_hand_joints_set_out_data(struct u_hand_tracking *set,
m_space_graph_resolve(&graph, &l[i].relation);
}
out_value->hand_origin = *hand_relation;
out_value->hand_pose = *hand_relation;
}
void

View file

@ -674,7 +674,7 @@ struct xrt_hand_joint_set
} values;
// in driver global space, without tracking_origin offset
struct xrt_space_relation hand_origin;
struct xrt_space_relation hand_pose;
};
/*!

View file

@ -2404,7 +2404,7 @@ oxr_session_hand_joints(struct oxr_logger *log,
if (baseSpc->type == XR_REFERENCE_SPACE_TYPE_STAGE) {
m_space_graph_add_relation(&graph, &value.hand_origin);
m_space_graph_add_relation(&graph, &value.hand_pose);
m_space_graph_add_pose_if_not_identity(
&graph, tracking_origin_offset);
@ -2412,7 +2412,7 @@ oxr_session_hand_joints(struct oxr_logger *log,
// for local space, first do stage space and transform
// result to local @todo: improve local space
m_space_graph_add_relation(&graph, &value.hand_origin);
m_space_graph_add_relation(&graph, &value.hand_pose);
m_space_graph_add_pose_if_not_identity(
&graph, tracking_origin_offset);
@ -2427,7 +2427,7 @@ oxr_session_hand_joints(struct oxr_logger *log,
oxr_session_get_view_relation_at(log, sess, at_time,
&view_relation);
m_space_graph_add_relation(&graph, &value.hand_origin);
m_space_graph_add_relation(&graph, &value.hand_pose);
m_space_graph_add_pose_if_not_identity(
&graph, tracking_origin_offset);
@ -2456,7 +2456,7 @@ oxr_session_hand_joints(struct oxr_logger *log,
input->input->name, at_time, &act_space_relation);
m_space_graph_add_relation(&graph, &value.hand_origin);
m_space_graph_add_relation(&graph, &value.hand_pose);
m_space_graph_add_pose_if_not_identity(
&graph, tracking_origin_offset);