Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ROSserver Class Reference

This class is used to start a ROS server. More...

#include <thread.hpp>

Inheritance diagram for ROSserver:
Inheritance graph
[legend]

Signals

void errorOccurred (const int error, const QString &program)
 Signals the error occured when starting the process. More...
 

Public Member Functions

 ROSserver (QObject *parent)
 Starts a ROS server in a separate thread. More...
 
void setWorkspace (const std::string &wrksp)
 Set the workspace name. More...
 
void sleep (const long &seconds) const
 Waits for a given duration, in seconds. More...
 
void stop ()
 Stops the ROS server (and the thread's execution). More...
 

Private Slots

void threadError (QProcess::ProcessError error)
 Signals which error occured when starting the process. More...
 

Private Member Functions

void run ()
 The main method of this thread. More...
 

Private Attributes

bool ROS_run
 Should the ROS server continue to run? More...
 
std::string workspace
 Name of the workspace selected. More...
 

Detailed Description

This class is used to start a ROS server.

It is a Qt thread, to run in a separate thread.

Since
0.2.1

Definition at line 21 of file thread.hpp.

Constructor & Destructor Documentation

ROSserver::ROSserver ( QObject *  parent)
inline

Starts a ROS server in a separate thread.

Parameters
parentthe process which starts a ROS server.

Definition at line 43 of file thread.hpp.

Member Function Documentation

void ROSserver::errorOccurred ( const int  error,
const QString &  program 
)
signal

Signals the error occured when starting the process.

Parameters
errorthe error which occured.
programthe name of the script started.
Since
0.3.3
void ROSserver::run ( )
private

The main method of this thread.

Definition at line 14 of file thread.cpp.

void ROSserver::setWorkspace ( const std::string &  wrksp)
inline

Set the workspace name.

Parameters
wrkspThe new workspace name.
Since
0.3.2

Definition at line 48 of file thread.hpp.

void ROSserver::sleep ( const long &  seconds) const
inline

Waits for a given duration, in seconds.

Parameters
secondsthe duration in seconds.
See also
QThread::sleep().

Definition at line 57 of file thread.hpp.

void ROSserver::stop ( )
inline

Stops the ROS server (and the thread's execution).

Definition at line 60 of file thread.hpp.

void ROSserver::threadError ( QProcess::ProcessError  error)
inlineprivateslot

Signals which error occured when starting the process.

Parameters
errorthe error which occured.
Since
0.3.3

Definition at line 36 of file thread.hpp.

Member Data Documentation

bool ROSserver::ROS_run
private

Should the ROS server continue to run?

Definition at line 25 of file thread.hpp.

std::string ROSserver::workspace
private

Name of the workspace selected.

Since
0.3.3

Definition at line 28 of file thread.hpp.


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


qt_ctrl
Author(s): Alexis Scheuer
autogenerated on Wed Dec 16 2020 15:51:32