Public Slots | Signals | Public Member Functions | Private Attributes
QtRosNode Class Reference

Handles the ROS connection. More...

#include <QtRosNode.h>

List of all members.

Public Slots

void quitNow ()
 Connect to aboutToQuit signals, to stop the thread.

Signals

void rosQuits ()
 Triggered if ros::ok() != true.

Public Member Functions

ros::NodeHandlegetNodeHandle ()
 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_
MainWindowmain_window_
ros::NodeHandlenode_handle_
bool quit_from_gui

Detailed Description

Handles the ROS connection.

Author:
Julian Giesen (R16)(R18)

Definition at line 39 of file QtRosNode.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

QApplication* QtRosNode::application_ [private]

Definition at line 68 of file QtRosNode.h.

Definition at line 67 of file QtRosNode.h.

Definition at line 65 of file QtRosNode.h.

bool QtRosNode::quit_from_gui [private]

Definition at line 64 of file QtRosNode.h.


The documentation for this class was generated from the following files:


robot_face
Author(s): AGAS, Julian Giesen, David Gossow
autogenerated on Mon Oct 6 2014 04:10:26