Fawkes API
Fawkes Development Version
gazebo_plugin.cpp
1
2
/***************************************************************************
3
* gazebo_plugin.cpp - Plugin to access Gazebo features
4
*
5
* Created: Fri Aug 24 11:04:04 2012
6
* Author Bastian Klingen
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#include "node_thread.h"
24
25
// from Gazebo
26
#include <plugins/gazebo/gazebo_plugin.h>
27
28
#include <gazebo/transport/TransportIface.hh>
29
30
using namespace
fawkes
;
31
32
/** @class GazeboPlugin "gazebo_plugin.h"
33
* Plugin to access Gazebo from Fawkes.
34
* This plugin integrates Gazebo and provides access to the Gazebo context
35
* to other plugins.
36
* @author Bastian Klingen
37
*/
38
39
/** Constructor.
40
* @param config Fawkes configuration
41
*/
42
GazeboPlugin::GazeboPlugin
(
Configuration
*config) :
Plugin
(config)
43
{
44
thread_list
.
push_back
(
new
GazeboNodeThread
());
45
}
46
47
PLUGIN_DESCRIPTION(
"Provides access to Gazebo"
)
48
EXPORT_PLUGIN(
GazeboPlugin
)
fawkes::Plugin::thread_list
ThreadList thread_list
Thread list member.
Definition:
plugin.h:57
fawkes::ThreadList::push_back
void push_back(Thread *thread)
Add thread to the end.
Definition:
thread_list.cpp:777
GazeboNodeThread
Definition:
node_thread.h:43
GazeboPlugin
Definition:
gazebo_plugin.h:27
fawkes::Configuration
Definition:
config.h:68
GazeboPlugin::GazeboPlugin
GazeboPlugin(fawkes::Configuration *config)
Constructor.
Definition:
gazebo_plugin.cpp:42
fawkes
fawkes::Plugin
Definition:
plugin.h:37
src
plugins
gazebo
gazebo_plugin.cpp
Generated by
1.8.16