From 94785126d907dc97cfe5456094e7fca1c30f2da9 Mon Sep 17 00:00:00 2001 From: silencht Date: Tue, 11 Nov 2025 11:40:57 +0800 Subject: [PATCH] [update] decrease default fps --- src/televuer/televuer.py | 4 ++-- src/televuer/tv_wrapper.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/televuer/televuer.py b/src/televuer/televuer.py index b61de0a..d0ae8f2 100644 --- a/src/televuer/televuer.py +++ b/src/televuer/televuer.py @@ -11,7 +11,7 @@ from pathlib import Path class TeleVuer: def __init__(self, use_hand_tracking: bool, pass_through:bool=False, binocular: bool=True, img_shape: tuple=None, - cert_file=None, key_file=None, webrtc: bool=False, webrtc_url: str=None, display_fps: float=60.0): + cert_file=None, key_file=None, webrtc: bool=False, webrtc_url: str=None, display_fps: float=30.0): """ TeleVuer class for OpenXR-based XR teleoperate applications. This class handles the communication with the Vuer server and manages image and pose data. @@ -31,7 +31,7 @@ class TeleVuer: :param key_file: str, path to the SSL key file. :param webrtc: bool, whether to use WebRTC for real-time communication. if False, use ImageBackground. :param webrtc_url: str, URL for the WebRTC offer. - :param display_fps: float, target frames per second for display updates (default: 60.0). + :param display_fps: float, target frames per second for display updates (default: 30.0). """ self.use_hand_tracking = use_hand_tracking self.display_fps = display_fps diff --git a/src/televuer/tv_wrapper.py b/src/televuer/tv_wrapper.py index b9376df..6bf6a0f 100644 --- a/src/televuer/tv_wrapper.py +++ b/src/televuer/tv_wrapper.py @@ -194,7 +194,7 @@ class TeleData: class TeleVuerWrapper: def __init__(self, use_hand_tracking: bool, pass_through: bool=False, binocular: bool=True, img_shape: tuple=(480, 1280), - cert_file = None, key_file = None, webrtc: bool=False, webrtc_url: str=None, display_fps: float=60.0, + cert_file = None, key_file = None, webrtc: bool=False, webrtc_url: str=None, display_fps: float=30.0, return_hand_rot_data: bool=False): """ TeleVuerWrapper is a wrapper for the TeleVuer class, which handles XR device's data suit for robot control. @@ -215,6 +215,8 @@ class TeleVuerWrapper: :param key_file: str, path to the SSL key file. :param webrtc: bool, whether to use WebRTC for real-time communication. if False, use ImageBackground. :param webrtc_url: str, URL for the WebRTC offer. + :param display_fps: float, target frames per second for display updates (default: 30.0). + :param return_hand_rot_data: bool, whether to return hand rotation data in TeleData """ self.use_hand_tracking = use_hand_tracking self.return_hand_rot_data = return_hand_rot_data