45#include "rclcpp/rclcpp.hpp"
53#include "ui_mainwindow.h"
55#include <QApplication>
56#include <QStandardItemModel>
71 MainWindow(
int argc,
char** argv, QWidget *parent =
nullptr);
170 "QPushButton {color: rgb(255, 255, 255);"
171 "selection-background-color: rgb(238, 238, 236);"
172 "selection-color: rgb(238, 238, 236);"
173 "background-color: rgb(19, 61, 128);"
174 "alternate-background-color: rgb(0, 0, 0);"
175 "font: bold 75 16pt \"Noto Sans\";}";
176 const QString
sdo_style_sheet_ =
"QPushButton:pressed {background-color: rgb(5, 153, 44);}"
177 "QPushButton {color: rgb(255, 255, 255);"
178 "background-color: rgb(252, 119, 3);"
179 "font: bold 75 15pt \"Noto Sans\";}";
180 const QString
red_style_sheet =
"QPushButton:pressed {background-color: rgb(252, 186, 3);}"
181 "QPushButton {color: rgb(255, 255, 255);"
182 "background-color: rgb(252, 0, 0);"
183 "font: bold 75 15pt \"Noto Sans\";}";
Definition: main_window.hpp:68
uint8_t em_state_
Definition: main_window.hpp:190
void on_b_emergency_mode_clicked()
Definition: main_window.cpp:169
void on_b_enter_cyclic_pdo_clicked()
Definition: main_window.cpp:137
void UpdateGUI()
Definition: main_window.cpp:44
void on_b_init_ecat_clicked()
Definition: main_window.cpp:98
void CallUnconfiguredStateUI()
This function will update UI style (enable-disable buttons) based on unconfigured state style.
Definition: main_window.cpp:235
void ShowEmergencyStatus()
Shows emergency button and switch status in GUI.
Definition: main_window.cpp:321
const QString red_style_sheet
Definition: main_window.hpp:180
void on_b_enable_drives_clicked()
Definition: main_window.cpp:127
Ui::MainWindow * ui
Definition: main_window.hpp:161
std::thread ros_spin_thread_
Definition: main_window.hpp:189
void SetEnabledStyleSheetPDO(QPushButton *button)
Definition: main_window.cpp:70
void CallActiveStateUI()
This function will update UI style (enable-disable buttons) based on active state style.
Definition: main_window.cpp:305
std::shared_ptr< GuiNode > gui_node_
Definition: main_window.hpp:186
void on_b_send_clicked()
Definition: main_window.cpp:200
const QString sdo_style_sheet_
Definition: main_window.hpp:176
int GetDriveStates(const int &statusWord)
timer to update GUI in specific intervals.In this case 25ms.
Definition: main_window.cpp:556
int argc_
Definition: main_window.hpp:162
void on_b_enable_vel_clicked()
Definition: main_window.cpp:88
QString GetReadableStatusWord(int index)
Reads status word and turns it to readable string format.
Definition: main_window.cpp:636
VideoCapture * opencv_video_cap
Definition: main_window.hpp:187
void on_b_enable_pos_clicked()
Definition: main_window.cpp:93
void rosSpinThread()
To use ROS2 spinining functionality in our specific thread.
Definition: main_window.cpp:24
void SetEnabledStyleSheetSDO(QPushButton *button)
Sets GUI appearance for enabled buttons.
Definition: main_window.cpp:64
void ShowAllMotorStatus()
Shows motor status in GUI.
Definition: main_window.cpp:402
QString GetDriveErrorMessage(const int &err_code)
Definition: main_window.cpp:764
void on_b_disable_drives_clicked()
Definition: main_window.cpp:132
void on_b_reinit_ecat_clicked()
Definition: main_window.cpp:111
QTimer my_timer
Definition: main_window.hpp:184
void on_b_stop_cyclic_pdo_clicked()
Definition: main_window.cpp:153
void ResetControlButtonValues(unsigned char &button_val)
Definition: main_window.cpp:218
void on_b_enable_cyclic_pos_clicked()
Definition: main_window.cpp:76
void ShowComStatus()
Shows communication status in GUI.
Definition: main_window.cpp:350
void ShowOperationMode()
Definition: main_window.cpp:593
void SetDisabledStyleSheet(QPushButton *button)
Sets GUI appearance for disabled buttons.
Definition: main_window.cpp:56
const QString blue_style_sheet_
Definition: main_window.hpp:169
MainWindow(int argc, char **argv, QWidget *parent=nullptr)
Definition: main_window.cpp:3
~MainWindow()
Definition: main_window.cpp:17
char ** argv_
Definition: main_window.hpp:163
void on_b_enable_cylic_vel_clicked()
Definition: main_window.cpp:83
void CallInactiveStateUI()
This function will update UI style (enable-disable buttons) based on inactive state style.
Definition: main_window.cpp:288
Definition: video_capture.hpp:61
Definition: gui_node.hpp:67
Definition: endoscope_viewer.hpp:11