bob_q3tts.gui_node

Classes

GUInode

ROS 2 node with a Qt GUI for tuning TTS parameters.

Functions

main([args])

Start the GUI node.

Module Contents

class bob_q3tts.gui_node.GUInode

Bases: rclpy.node.Node, PyQt5.QtWidgets.QMainWindow

ROS 2 node with a Qt GUI for tuning TTS parameters.

target_node = 'tts'
set_cli
get_cli
central_widget
main_layout
header
refresh_btn
scroll
content_widget
content_layout
params
groups
widgets
value_labels
ros_timer
ros_loop()

Perform ROS 2 spinning in the main Qt thread.

setup_parameters()

Create GUI widgets for each parameter using a Grid Layout for flexibility.

browse_file(line_edit, param_name)

Open a file dialog to select a WAV file.

sync_parameters()

Read all current values from the target node.

on_sync_response(future)

Update GUI widgets based on current ROS parameter values.

on_bool_change(name, state)

Update a boolean parameter.

on_int_change(name, val, label)

Update an integer parameter and its label.

on_double_change(name, val, scale, label)

Update a double parameter and its label.

on_string_change(name, val)

Update a string parameter.

set_ros_param(name, p_type, val)

Send a SetParameters request to the target node.

bob_q3tts.gui_node.main(args=None)

Start the GUI node.