Sets up a thread for ROS event processing. More...
#include <qtros.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 () |
QtROS (int argc, char *argv[], const char *node_name) | |
void | run () |
This method contains the ROS event loop. Feel free to modify. | |
Private Attributes | |
ros::NodeHandle * | n |
bool | quitfromgui |
Sets up a thread for ROS event processing.
QtThread based class encapsulating the ros basics, i.e., init, node handle creation, spining and quitting. To quit via qt, connect the quitNow slot to, e.g., the aboutToQuit-Signal of qapplication.
QtROS::QtROS | ( | int | argc, |
char * | argv[], | ||
const char * | node_name | ||
) |
ros::NodeHandle QtROS::getNodeHandle | ( | ) | [inline] |
void QtROS::quitNow | ( | ) | [slot] |
void QtROS::rosQuits | ( | ) | [signal] |
Triggered if ros::ok() != true.
void QtROS::run | ( | void | ) |
ros::NodeHandle* QtROS::n [private] |
bool QtROS::quitfromgui [private] |