devkit_ui.pages.run.joystick_control_card
Classes
|
- class devkit_ui.pages.run.joystick_control_card.JoystickControlCard(*args: Any, **kwargs: Any)[source]
Bases:
card- __init__(global_store: GlobalViewModel, state: Joystick, on_move: Callable[[float, float], None], on_stop: Callable[[], None], on_estop: Callable[[], None])[source]
Initialize the joystick control card with its state and control callbacks.
- Parameters:
global_store (GlobalViewModel) – Global application state containing the emergency-stop status.
state (RunViewModel.Joystick) – Joystick state containing the displayed pose.
on_move (Callable[[float, float], None]) – Callback invoked with the joystick’s y and x coordinates.
on_stop (Callable[[], None]) – Callback invoked when joystick movement ends.
on_estop (Callable[[], None]) – Callback invoked when the emergency-stop button is pressed.