This class is used to start a ROS server.
More...
#include <thread.hpp>
|
void | errorOccurred (const int error, const QString &program) |
| Signals the error occured when starting the process. More...
|
|
|
| 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...
|
|
|
void | threadError (QProcess::ProcessError error) |
| Signals which error occured when starting the process. More...
|
|
|
void | run () |
| The main method of this thread. More...
|
|
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.
ROSserver::ROSserver |
( |
QObject * |
parent | ) |
|
|
inline |
Starts a ROS server in a separate thread.
- Parameters
-
parent | the process which starts a ROS server. |
Definition at line 43 of file thread.hpp.
void ROSserver::errorOccurred |
( |
const int |
error, |
|
|
const QString & |
program |
|
) |
| |
|
signal |
Signals the error occured when starting the process.
- Parameters
-
error | the error which occured. |
program | the name of the script started. |
- Since
- 0.3.3
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
-
wrksp | The 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
-
seconds | the duration in seconds. |
- See also
- QThread::sleep().
Definition at line 57 of file thread.hpp.
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
-
error | the error which occured. |
- Since
- 0.3.3
Definition at line 36 of file thread.hpp.
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: