Handles the ROS connection. More...
#include <QtRosNode.h>
Public Slots | |
| void | quitNow () | 
| Connect to aboutToQuit signals, to stop the thread.   | |
Signals | |
| void | rosQuits () | 
| Triggered if ros::ok() != true.   | |
Public Member Functions | |
| ros::NodeHandle * | getNodeHandle () | 
| QtRosNode (int argc, char *argv[], const char *node_name, MainWindow *main_window, QApplication *app) | |
| void | run () | 
| This method contains the ROS event loop. Feel free to modify.   | |
Private Attributes | |
| QApplication * | application_ | 
| MainWindow * | main_window_ | 
| ros::NodeHandle * | node_handle_ | 
| bool | quit_from_gui | 
Handles the ROS connection.
Definition at line 39 of file QtRosNode.h.
| QtRosNode::QtRosNode | ( | int | argc, | 
| char * | argv[], | ||
| const char * | node_name, | ||
| MainWindow * | main_window, | ||
| QApplication * | app | ||
| ) | 
Note: The constructor will block until connected with roscore Instead of ros::spin(), start this thread with the start() method to run the event loop of ros
Definition at line 25 of file QtRosNode.cpp.
| ros::NodeHandle* QtRosNode::getNodeHandle | ( | ) |  [inline] | 
        
Definition at line 49 of file QtRosNode.h.
| void QtRosNode::quitNow | ( | ) |  [slot] | 
        
Connect to aboutToQuit signals, to stop the thread.
Definition at line 36 of file QtRosNode.cpp.
| void QtRosNode::rosQuits | ( | ) |  [signal] | 
        
Triggered if ros::ok() != true.
| void QtRosNode::run | ( | ) | 
This method contains the ROS event loop. Feel free to modify.
Definition at line 41 of file QtRosNode.cpp.
QApplication* QtRosNode::application_ [private] | 
        
Definition at line 68 of file QtRosNode.h.
MainWindow* QtRosNode::main_window_ [private] | 
        
Definition at line 67 of file QtRosNode.h.
ros::NodeHandle* QtRosNode::node_handle_ [private] | 
        
Definition at line 65 of file QtRosNode.h.
bool QtRosNode::quit_from_gui [private] | 
        
Definition at line 64 of file QtRosNode.h.