Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QNode Class Referenceabstract

#include <qnode.hpp>

Inheritance diagram for QNode:
Inheritance graph
[legend]

Signals

void loggingUpdated ()
 
void rosShutdown ()
 

Public Member Functions

QStringListModel * loggingModel ()
 
const std::string & nodeName ()
 
bool on_init ()
 
bool on_init (const std::string &master_url, const std::string &host_url)
 
 QNode (int argc, char **argv, const std::string &name)
 
virtual void run ()=0
 
void shutdown ()
 
virtual ~QNode ()
 

Protected Member Functions

virtual void ros_comms_init ()=0
 

Protected Attributes

int init_argc
 
char ** init_argv
 
QStringListModel logging
 
const std::string node_name
 

Detailed Description

Definition at line 31 of file qnode.hpp.

Constructor & Destructor Documentation

QNode::QNode ( int  argc,
char **  argv,
const std::string &  name 
)

Definition at line 24 of file qnode.cpp.

QNode::~QNode ( )
virtual

Definition at line 30 of file qnode.cpp.

Member Function Documentation

QStringListModel* QNode::loggingModel ( )
inline

Definition at line 43 of file qnode.hpp.

void QNode::loggingUpdated ( )
signal
const std::string& QNode::nodeName ( )
inline

Definition at line 44 of file qnode.hpp.

bool QNode::on_init ( )

Definition at line 45 of file qnode.cpp.

bool QNode::on_init ( const std::string &  master_url,
const std::string &  host_url 
)

Definition at line 56 of file qnode.cpp.

virtual void QNode::ros_comms_init ( )
protectedpure virtual

Implemented in QAdd, QAdd, Listener, and Talker.

void QNode::rosShutdown ( )
signal
virtual void QNode::run ( )
pure virtual

Implemented in QAdd, QAdd, Listener, and Talker.

void QNode::shutdown ( )

This is called by the qt application to stop the ros node before the qt app closes.

Definition at line 37 of file qnode.cpp.

Member Data Documentation

int QNode::init_argc
protected

Definition at line 52 of file qnode.hpp.

char** QNode::init_argv
protected

Definition at line 53 of file qnode.hpp.

QStringListModel QNode::logging
protected

Definition at line 54 of file qnode.hpp.

const std::string QNode::node_name
protected

Definition at line 55 of file qnode.hpp.


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


qt_tutorials
Author(s): Daniel Stonier
autogenerated on Wed Mar 11 2020 03:12:20