Fawkes API
Fawkes Development Version
tf_example_thread.h
1
2
/***************************************************************************
3
* tf_example_thread.h - tf example thread
4
*
5
* Created: Tue Oct 25 17:59:56 2011
6
* Copyright 2011 Tim Niemueller [www.niemueller.de]
7
****************************************************************************/
8
9
/* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU Library General Public License for more details.
18
*
19
* Read the full text in the LICENSE.GPL file in the doc directory.
20
*/
21
22
#ifndef _PLUGINS_TF_EXAMPLE_TF_EXAMPLE_THREAD_H_
23
#define _PLUGINS_TF_EXAMPLE_TF_EXAMPLE_THREAD_H_
24
25
#include <aspect/blackboard.h>
26
#include <aspect/blocked_timing.h>
27
#include <aspect/configurable.h>
28
#include <aspect/logging.h>
29
#include <aspect/tf.h>
30
#include <core/threading/thread.h>
31
32
namespace
fawkes
{
33
namespace
tf {
34
class
TransformListener;
35
}
36
}
// namespace fawkes
37
38
class
TfExampleThread
:
public
fawkes::Thread
,
39
public
fawkes::BlockedTimingAspect
,
40
public
fawkes::LoggingAspect
,
41
public
fawkes::ConfigurableAspect
,
42
public
fawkes::BlackBoardAspect
,
43
public
fawkes::TransformAspect
44
{
45
public
:
46
TfExampleThread
();
47
virtual
~TfExampleThread
();
48
49
virtual
void
init
();
50
virtual
void
loop
();
51
virtual
void
finalize
();
52
53
/** Stub to see name in backtrace for easier debugging. @see Thread::run() */
54
protected
:
55
virtual
void
56
run
()
57
{
58
Thread::run();
59
}
60
61
private
:
62
float
angle_;
63
};
64
65
#endif
TfExampleThread::init
virtual void init()
Initialize the thread.
Definition:
tf_example_thread.cpp:46
TfExampleThread::~TfExampleThread
virtual ~TfExampleThread()
Destructor.
Definition:
tf_example_thread.cpp:41
TfExampleThread::run
virtual void run()
Stub to see name in backtrace for easier debugging.
Definition:
tf_example_thread.h:55
fawkes::BlockedTimingAspect
Definition:
blocked_timing.h:54
TfExampleThread::TfExampleThread
TfExampleThread()
Constructor.
Definition:
tf_example_thread.cpp:33
TfExampleThread::finalize
virtual void finalize()
Finalize the thread.
Definition:
tf_example_thread.cpp:52
fawkes::BlackBoardAspect
Definition:
blackboard.h:36
fawkes
fawkes::LoggingAspect
Definition:
logging.h:36
TfExampleThread::loop
virtual void loop()
Code to execute in the thread.
Definition:
tf_example_thread.cpp:60
fawkes::TransformAspect
Definition:
tf.h:41
TfExampleThread
Definition:
tf_example_thread.h:37
fawkes::Thread
Definition:
thread.h:44
fawkes::ConfigurableAspect
Definition:
configurable.h:36
src
plugins
examples
tf_example
tf_example_thread.h
Generated by
1.8.16