update monado
- xrt_tracking_offset field 'offset' was renamed to 'initial_offset' - STAGE is now supported by default, 'stage_supported' is for drivers that require active polling for the STAGE pose. - new space offset API included
This commit is contained in:
committed by
Patrick Nicolas
parent
38084db8a5
commit
d31e886d51
+1
-1
@@ -183,7 +183,7 @@ FetchContent_Declare(imgui EXCLUDE_FROM_ALL URL https://github.com/ocorn
|
||||
# Server dependencies
|
||||
FetchContent_Declare(monado
|
||||
GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado
|
||||
GIT_TAG 28cb225be12a8a55c221f22103c235aff6de3883
|
||||
GIT_TAG c6d341a935b669ee85761195966fa6f2a02f7e9c
|
||||
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${CMAKE_CURRENT_LIST_DIR}/patches/monado/
|
||||
EXCLUDE_FROM_ALL
|
||||
)
|
||||
|
||||
@@ -169,7 +169,6 @@ wivrn_controller::wivrn_controller(int hand_id,
|
||||
base->orientation_tracking_supported = true;
|
||||
base->hand_tracking_supported = true;
|
||||
base->position_tracking_supported = true;
|
||||
base->stage_supported = true;
|
||||
|
||||
base->tracking_origin = hmd->tracking_origin;
|
||||
|
||||
@@ -314,11 +313,6 @@ xrt_space_relation wivrn_controller::get_tracked_pose(xrt_input_name name, uint6
|
||||
xrt_space_relation res;
|
||||
switch (name)
|
||||
{
|
||||
case XRT_INPUT_GENERIC_STAGE_SPACE_POSE:
|
||||
// STAGE is implicitly defined as the space poses are returned in, therefore STAGE origin is (0, 0, 0).
|
||||
res = (struct xrt_space_relation)XRT_SPACE_RELATION_ZERO;
|
||||
res.relation_flags = XRT_SPACE_RELATION_BITMASK_ALL;
|
||||
return res;
|
||||
case XRT_INPUT_TOUCH_AIM_POSE:
|
||||
std::tie(extrapolation_time, res) = aim.get_at(at_timestamp_ns);
|
||||
break;
|
||||
|
||||
@@ -186,9 +186,8 @@ wivrn_hmd::wivrn_hmd(std::shared_ptr<xrt::drivers::wivrn::wivrn_session> cnx,
|
||||
|
||||
base->hmd = &hmd_parts;
|
||||
base->tracking_origin = &tracking_origin;
|
||||
base->stage_supported = true;
|
||||
tracking_origin.type = XRT_TRACKING_TYPE_OTHER;
|
||||
tracking_origin.offset.orientation = xrt_quat{0, 0, 0, 1};
|
||||
tracking_origin.initial_offset.orientation = xrt_quat{0, 0, 0, 1};
|
||||
strcpy(tracking_origin.name, "No tracking");
|
||||
|
||||
base->update_inputs = wivrn_hmd_update_inputs;
|
||||
@@ -249,13 +248,6 @@ void wivrn_hmd::update_inputs()
|
||||
|
||||
xrt_space_relation wivrn_hmd::get_tracked_pose(xrt_input_name name, uint64_t at_timestamp_ns)
|
||||
{
|
||||
if (name == XRT_INPUT_GENERIC_STAGE_SPACE_POSE)
|
||||
{
|
||||
// STAGE is implicitly defined as the space poses are returned in, therefore STAGE origin is (0, 0, 0).
|
||||
xrt_space_relation relation = (struct xrt_space_relation)XRT_SPACE_RELATION_ZERO;
|
||||
relation.relation_flags = XRT_SPACE_RELATION_BITMASK_ALL;
|
||||
return relation;
|
||||
}
|
||||
if (name != XRT_INPUT_GENERIC_HEAD_POSE)
|
||||
{
|
||||
U_LOG_E("Unknown input name");
|
||||
|
||||
Reference in New Issue
Block a user