Add debug log when receiving pico face tracking info

This commit is contained in:
Sapphire
2025-06-01 10:21:47 +02:00
committed by xytovl
parent f7b77d21b8
commit cd72cf68b0
6 changed files with 148 additions and 65 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ void xr::pico_face_tracker::get_weights(XrTime time, wivrn::from_headset::tracki
spdlog::warn("Failed to set tracking mode: {}", xr::to_string(res));
}
exit:
exit:
out_expressions.is_valid = false;
return;
}
-27
View File
@@ -1,27 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "xr.h"
#include "spdlog/fmt/fmt.h"
std::string xr::to_string(XrVersion version)
{
return fmt::format("{}.{}.{}", XR_VERSION_MAJOR(version), XR_VERSION_MINOR(version), XR_VERSION_PATCH(version));
}
+1 -37
View File
@@ -26,40 +26,4 @@
#include "swapchain.h"
#include "system.h"
#include "xr/check.h"
#include "xr/pico_eye_types.h"
#include "xr/pico_eye_types_reflection.h"
#include <cstddef>
#include <string>
#include <openxr/openxr_reflection.h>
namespace xr
{
#define XR_ENUM_CASE_STR(name, val) \
case name: \
return #name;
#define XR_ENUM_STR(enumType) \
constexpr const char * to_string(enumType e) \
{ \
switch (e) \
{ \
XR_LIST_ENUM_##enumType(XR_ENUM_CASE_STR) default : return "Unknown"; \
} \
}
XR_ENUM_STR(XrResult);
XR_ENUM_STR(XrFormFactor);
XR_ENUM_STR(XrViewConfigurationType);
XR_ENUM_STR(XrEnvironmentBlendMode);
XR_ENUM_STR(XrReferenceSpaceType);
XR_ENUM_STR(XrActionType);
XR_ENUM_STR(XrEyeVisibility);
XR_ENUM_STR(XrSessionState);
XR_ENUM_STR(XrObjectType);
XR_ENUM_STR(XrStructureType);
XR_ENUM_STR(XrTrackingStateCodePICO);
std::string to_string(XrVersion version);
} // namespace xr
#include "xr/to_string.h"