Fawkes API
Fawkes Development Version
navgraph_access_thread.h
1
2
/***************************************************************************
3
* navgraph_access_thread.h - thread to get hold of navgraph
4
*
5
* Created: Mon Aug 20 10:04:14 2018
6
* Copyright 2006-2018 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_PLEXIL_NAVGRAPH_ACCESS_THREAD_H_
23
#define __PLUGINS_PLEXIL_NAVGRAPH_ACCESS_THREAD_H_
24
25
#include <core/threading/thread.h>
26
#include <navgraph/aspect/navgraph.h>
27
28
class
PlexilNavgraphAccessThread
:
public
fawkes::Thread
,
public
fawkes::NavGraphAspect
29
{
30
public
:
31
PlexilNavgraphAccessThread
();
32
virtual
~PlexilNavgraphAccessThread
();
33
34
virtual
void
loop
();
35
36
fawkes::LockPtr<fawkes::NavGraph>
get_navgraph
()
const
;
37
38
/** Stub to see name in backtrace for easier debugging. @see Thread::run() */
39
protected
:
40
virtual
void
41
run
()
42
{
43
Thread::run();
44
}
45
};
46
47
#endif
fawkes::LockPtr< fawkes::NavGraph >
PlexilNavgraphAccessThread
Definition:
navgraph_access_thread.h:27
PlexilNavgraphAccessThread::run
virtual void run()
Stub to see name in backtrace for easier debugging.
Definition:
navgraph_access_thread.h:44
PlexilNavgraphAccessThread::get_navgraph
fawkes::LockPtr< fawkes::NavGraph > get_navgraph() const
Get access to navgraph.
Definition:
navgraph_access_thread.cpp:47
PlexilNavgraphAccessThread::loop
virtual void loop()
Code to execute in the thread.
Definition:
navgraph_access_thread.cpp:53
PlexilNavgraphAccessThread::~PlexilNavgraphAccessThread
virtual ~PlexilNavgraphAccessThread()
Destructor.
Definition:
navgraph_access_thread.cpp:39
fawkes::NavGraphAspect
Definition:
navgraph.h:39
PlexilNavgraphAccessThread::PlexilNavgraphAccessThread
PlexilNavgraphAccessThread()
Constructor.
Definition:
navgraph_access_thread.cpp:33
fawkes::Thread
Definition:
thread.h:44
src
plugins
plexil
navgraph_access_thread.h
Generated by
1.8.16