Fawkes API  Fawkes Development Version
gazsim_webcam_plugin.cpp
1 /***************************************************************************
2  * gazsim_webcam_plugin.cpp - Plugin simulates a Webcam in Gazebo and
3  * provides a shared memory buffer
4  *
5  * Created: Sat Sep 21 17:34:11 2013
6  * Copyright 2013 Frederik Zwilling
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 <core/plugin.h>
23 
24 #include "gazsim_webcam_thread.h"
25 
26 using namespace fawkes;
27 
28 /** Plugin to simulate a webcam in Gazebo
29  *
30  *
31  * @author Frederik Zwilling
32  */
34 {
35  public:
36 
37  /** Constructor.
38  * @param config Fawkes configuration
39  */
41  : Plugin(config)
42  {
43  thread_list.push_back(new WebcamSimThread());
44  }
45 };
46 
47 PLUGIN_DESCRIPTION("Simulation of a Webcam in Gazebo")
48 EXPORT_PLUGIN(GazsimWebcamPlugin)
Plugin interface class.
Definition: plugin.h:33
Fawkes library namespace.
Thread simulates a number of webcams in Gazebo.
Plugin to simulate a webcam in Gazebo.
GazsimWebcamPlugin(Configuration *config)
Constructor.
Interface for configuration handling.
Definition: config.h:67