![]() |
EtherCAT Control Framework v0.9
Implementation of EtherCAT protocol using IgH EtherCAT library for robot controller.
|
#include <main_window.hpp>
Public Member Functions | |
MainWindow (int argc, char **argv, QWidget *parent=nullptr) | |
~MainWindow () | |
Private Slots | |
void | UpdateGUI () |
void | ResetControlButtonValues (unsigned char &button_val) |
void | on_b_enable_cyclic_pos_clicked () |
void | on_b_enable_cylic_vel_clicked () |
void | on_b_enable_vel_clicked () |
void | on_b_enable_pos_clicked () |
void | on_b_init_ecat_clicked () |
void | on_b_reinit_ecat_clicked () |
void | on_b_enable_drives_clicked () |
void | on_b_disable_drives_clicked () |
void | on_b_enter_cyclic_pdo_clicked () |
void | on_b_stop_cyclic_pdo_clicked () |
void | on_b_emergency_mode_clicked () |
void | on_b_send_clicked () |
Private Member Functions | |
void | rosSpinThread () |
To use ROS2 spinining functionality in our specific thread. More... | |
void | ShowAllMotorStatus () |
Shows motor status in GUI. More... | |
void | ShowComStatus () |
Shows communication status in GUI. More... | |
void | ShowEmergencyStatus () |
Shows emergency button and switch status in GUI. More... | |
QString | GetReadableStatusWord (int index) |
Reads status word and turns it to readable string format. More... | |
void | CallUnconfiguredStateUI () |
This function will update UI style (enable-disable buttons) based on unconfigured state style. More... | |
void | CallInactiveStateUI () |
This function will update UI style (enable-disable buttons) based on inactive state style. More... | |
void | CallActiveStateUI () |
This function will update UI style (enable-disable buttons) based on active state style. More... | |
void | SetDisabledStyleSheet (QPushButton *button) |
Sets GUI appearance for disabled buttons. More... | |
void | SetEnabledStyleSheetSDO (QPushButton *button) |
Sets GUI appearance for enabled buttons. More... | |
void | SetEnabledStyleSheetPDO (QPushButton *button) |
void | ShowOperationMode () |
QString | GetDriveErrorMessage (const int &err_code) |
int | GetDriveStates (const int &statusWord) |
timer to update GUI in specific intervals.In this case 25ms. More... | |
Private Attributes | |
Ui::MainWindow * | ui |
int | argc_ |
char ** | argv_ |
const QString | blue_style_sheet_ |
const QString | sdo_style_sheet_ |
const QString | red_style_sheet |
QTimer | my_timer |
std::shared_ptr< GuiNode > | gui_node_ |
VideoCapture * | opencv_video_cap |
std::thread | ros_spin_thread_ |
uint8_t | em_state_ =0 |
MainWindow::MainWindow | ( | int | argc, |
char ** | argv, | ||
QWidget * | parent = nullptr |
||
) |
MainWindow::~MainWindow | ( | ) |
|
private |
This function will update UI style (enable-disable buttons) based on active state style.
|
private |
This function will update UI style (enable-disable buttons) based on inactive state style.
|
private |
This function will update UI style (enable-disable buttons) based on unconfigured state style.
|
private |
|
private |
timer to update GUI in specific intervals.In this case 25ms.
|
private |
Reads status word and turns it to readable string format.
index | slave index |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
To use ROS2 spinining functionality in our specific thread.
|
private |
Sets GUI appearance for disabled buttons.
|
private |
|
private |
Sets GUI appearance for enabled buttons.
|
private |
Shows motor status in GUI.
|
private |
Shows communication status in GUI.
|
private |
Shows emergency button and switch status in GUI.
|
private |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |