Deploy

module Deploy
DeployWindow : public QWidget
The DeployWindow class is a PySide2 Graphical User Interface (GUI) window
that is called by MainWindow class in order to configure a custom session
and write to session_config.json.

Public Functions

__init__(self, debug=False)
The constructor.
Sets the size of the window and configurations for session_config.
Checks if the session_config.json file exists. If true, configure
accordingly. Otherwise, assign default values.
Calls setButtons function to populate window with button.
printDeployConfig(self)
A Non-Return Getter function that prints EPD Deployment
configurations that are not displayed clearly in EPD GUI, on terminal.
setButtons(self)
A Mutator function that defines all buttons in DeployWindow.
deployPackage(self)
A Mutator function that runs a bash script that
checks if the _is_running boolean flag is True or not.\n
If False, run bash script to run ROS2 package with
session_config.json and usecase_config.json
Otherwise, run bash script to kill ROS2 package
processes remotely.
setImageInput(self)
A Mutator function that writes to line 25 of
run.launch.py file based on new image topic.
doesFileExist(self, input_filepath)
 A Getter function that checks if a given file exists.
setVisualizeFlag(self)
A function is triggered by the button labelled, Visualize/Action.
setDockerFlag(self)
A function is triggered by the button labelled, CPU/GPU.
setUseCase(self, index)
A function is triggered by the DropDown Menu labelled, UseCase.
updateSessionConfig(self)
A Mutator function that updates the session_config.json file.
setModel(self)
A function is triggered by the button labelled, ONNX Model.
setLabelList(self)
A function is triggered by the button labelled, Label List.

Public Members

deploy_logger
debug
visualizeFlag
useCPU
usecase_list
usecase_mode
model_button
list_button
usecase_config_button
visualize_button
register_topic_button
topic_button
docker_button
run_button
counting_window
tracking_window

Private Members

_path_to_model
_path_to_label_list
_input_image_topic
_is_running
_DEPLOY_WIN_H
_DEPLOY_WIN_W
_deploy_process
_kill_process
_path_to_session_config
_path_to_usecase_config
_path_to_input_image_json_file