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 #include <core/plugin.h>
27 
28 using namespace fawkes;
29 
30 /** Plugin simulates communication
31  * @author Frederik Zwilling
32  */
34 {
35  public:
36  /** Constructor.
37  * @param config Fawkes configuration
38  */
40  {
41  thread_list.push_back(new GazsimCommThread());
42  }
43 };
44 
45 
46 PLUGIN_DESCRIPTION("Simulates and manages communication for testing with Gazebo")
47 EXPORT_PLUGIN(GazsimCommPlugin)
Plugin interface class.
Definition: plugin.h:33
GazsimCommPlugin(Configuration *config)
Constructor.
Fawkes library namespace.
Plugin simulates communication.
Plugin simulates and manages communication for Simulation in Gazebo.
Interface for configuration handling.
Definition: config.h:67