Fawkes API
Fawkes Development Version
navgraph_access_thread.cpp
1
2
/***************************************************************************
3
* navgraph_access_thread.cpp - thread to access navgraph
4
*
5
* Created: Mon Aug 20 10:07:23 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
#include "navgraph_access_thread.h"
23
24
#include <navgraph/navgraph.h>
25
26
/** @class PlexilNavgraphAccessThread "navgraph_access_thread.h"
27
* Access to internal navgraph for Plexil.
28
*
29
* @author Tim Niemueller
30
*/
31
32
/** Constructor. */
33
PlexilNavgraphAccessThread::PlexilNavgraphAccessThread
()
34
: Thread(
"PlexilNavgraphAccessThread"
, Thread::OPMODE_WAITFORWAKEUP)
35
{
36
}
37
38
/** Destructor. */
39
PlexilNavgraphAccessThread::~PlexilNavgraphAccessThread
()
40
{
41
}
42
43
/** Get access to navgraph.
44
* @return navgraph
45
*/
46
fawkes::LockPtr<fawkes::NavGraph>
47
PlexilNavgraphAccessThread::get_navgraph
()
const
48
{
49
return
navgraph
;
50
}
51
52
void
53
PlexilNavgraphAccessThread::loop
()
54
{
55
}
fawkes::LockPtr< fawkes::NavGraph >
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
PlexilNavgraphAccessThread::PlexilNavgraphAccessThread
PlexilNavgraphAccessThread()
Constructor.
Definition:
navgraph_access_thread.cpp:33
fawkes::NavGraphAspect::navgraph
fawkes::LockPtr< NavGraph > navgraph
NavGraph instance shared in framework.
Definition:
navgraph.h:44
src
plugins
plexil
navgraph_access_thread.cpp
Generated by
1.8.20