VirtualHandInterface_SetupInterface#
- class myogestic.gui.widgets.visual_interfaces.virtual_hand_interface.VirtualHandInterface_SetupInterface(main_window, name='VirtualHandInterface')[source]#
Setup interface for the Virtual Hand Interface.
This class is responsible for setting up the Virtual Hand Interface.
- predicted_hand__signal#
Signal that emits the predicted hand data.
- Type:
Signal
- Parameters:
main_window (QMainWindow) – The main window of the application.
name (str) –
The name of the interface. Default is “VirtualHandInterface”.
Important
The name of the interface must be unique.
Methods
__init__
(main_window[, name])Get the path to the Unity executable based on the platform.
Setup the timers for the Virtual Hand Interface.
Update the status of the Virtual Hand Interface.
Clear custom signal buffers for the Virtual Hand Interface.
close_event
(_)Handle the close event of the Virtual Hand Interface.
Connect custom signals for the Virtual Hand Interface.
Disconnect custom signals for the Virtual Hand Interface.
Get custom save data for the Virtual Hand Interface.
Initialize the UI logic for the Virtual Hand Interface.
Handle the case when the Virtual Hand Interface was killed.
Update the predicted hand data for the online protocol.
Read a message from the Virtual Hand Interface.
Read the predicted hand data from the Virtual Hand Interface.
Start the Virtual Hand Interface.
Stop the Virtual Hand Interface.
Toggle the streaming of the Virtual Hand Interface.
Toggle the Virtual Hand Interface.
write_message
(message)Write a message to the Virtual Hand Interface.
Write a status message to the Virtual Hand Interface.
- clear_custom_signal_buffers()[source]#
Clear custom signal buffers for the Virtual Hand Interface.
- Return type:
None
- close_event(_)[source]#
Handle the close event of the Virtual Hand Interface.
- Parameters:
_ (QCloseEvent)
- Return type:
None
- connect_custom_signals()[source]#
Connect custom signals for the Virtual Hand Interface.
- Return type:
None
- disconnect_custom_signals()[source]#
Disconnect custom signals for the Virtual Hand Interface.
- Return type:
None
- interface_was_killed()[source]#
Handle the case when the Virtual Hand Interface was killed.
- Return type:
None
- online_predicted_hand_update(data)[source]#
Update the predicted hand data for the online protocol.
- Parameters:
data (ndarray)
- Return type:
None
- read_predicted_hand()[source]#
Read the predicted hand data from the Virtual Hand Interface.
- Return type:
None
- write_message(message)[source]#
Write a message to the Virtual Hand Interface.
- Parameters:
message (QByteArray)
- Return type:
None