Fawkes API  Fawkes Development Version
gazsim_comm_plugin.cpp
1 /***************************************************************************
2  * gazsim_comm_plugin.cpp - Plugin simulates peer-to-peer communication over
3  * an network with configurable instability and manages
4  * the frowarding of messages to different ports on
5  * the same machine.
6  *
7  * Created: Thu Sep 12 11:06:41 2013
8  * Copyright 2013 Frederik Zwilling
9  *
10  ****************************************************************************/
11 
12 /* This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Library General Public License for more details.
21  *
22  * Read the full text in the LICENSE.GPL file in the doc directory.
23  */
24 
25 #include "gazsim_comm_thread.h"
26 
27 #include <core/plugin.h>
28 
29 using namespace fawkes;
30 
31 /** Plugin simulates communication
32  * @author Frederik Zwilling
33  */
35 {
36 public:
37  /** Constructor.
38  * @param config Fawkes configuration
39  */
40  explicit GazsimCommPlugin(Configuration *config) : Plugin(config)
41  {
42  thread_list.push_back(new GazsimCommThread());
43  }
44 };
45 
46 PLUGIN_DESCRIPTION("Simulates and manages communication for testing with Gazebo")
47 EXPORT_PLUGIN(GazsimCommPlugin)
Plugin simulates communication.
GazsimCommPlugin(Configuration *config)
Constructor.
Plugin simulates and manages communication for Simulation in Gazebo.
Interface for configuration handling.
Definition: config.h:68
Plugin interface class.
Definition: plugin.h:34
Fawkes library namespace.