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
29{
30public:
33
34 virtual void loop();
35
37
38 /** Stub to see name in backtrace for easier debugging. @see Thread::run() */
39protected:
40 virtual void
42 {
43 Thread::run();
44 }
45};
46
47#endif
Access to internal navgraph for Plexil.
virtual void loop()
Code to execute in the thread.
fawkes::LockPtr< fawkes::NavGraph > get_navgraph() const
Get access to navgraph.
virtual void run()
Stub to see name in backtrace for easier debugging.
virtual ~PlexilNavgraphAccessThread()
Destructor.
Thread aspect to access NavGraph.
Definition: navgraph.h:36
Thread class encapsulation of pthreads.
Definition: thread.h:46