Public Member Functions | Protected Member Functions | Protected Attributes
srs_env_model::CServerPluginBase Class Reference

Server plugin base class. More...

#include <server_tools.h>

Inheritance diagram for srs_env_model::CServerPluginBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CServerPluginBase (const std::string &name)
 Constructor.
std::string getName ()
 Get plugin name.
virtual void init (ros::NodeHandle &node_handle)
 Initialize plugin - called in server constructor.
virtual void pause (bool bPause, ros::NodeHandle &node_handle)
 Pause/resume plugin. All publishers and subscribers are disconnected on pause.
void publish (const ros::Time &timestamp)
 Called when new scan was inserted and now all can be published.
virtual void reset ()
 Reset plugin content when reseting whole server.
virtual ~CServerPluginBase ()
 Virtual destructor.

Protected Member Functions

virtual void publishInternal (const ros::Time &timestamp)=0
 Publish data - virtual function.
virtual bool shouldPublish ()=0
 Should data be published.

Protected Attributes

boost::mutex m_lockMutex
 Locking mutex.
std::string m_name
 Plugin name.

Detailed Description

Server plugin base class.

Definition at line 126 of file server_tools.h.


Constructor & Destructor Documentation

srs_env_model::CServerPluginBase::CServerPluginBase ( const std::string &  name) [inline]

Constructor.

Definition at line 132 of file server_tools.h.

Virtual destructor.

Definition at line 137 of file server_tools.h.


Member Function Documentation

Get plugin name.

Definition at line 157 of file server_tools.h.

virtual void srs_env_model::CServerPluginBase::init ( ros::NodeHandle node_handle) [inline, virtual]
virtual void srs_env_model::CServerPluginBase::pause ( bool  bPause,
ros::NodeHandle node_handle 
) [inline, virtual]
void srs_env_model::CServerPluginBase::publish ( const ros::Time timestamp) [inline]

Called when new scan was inserted and now all can be published.

Definition at line 145 of file server_tools.h.

virtual void srs_env_model::CServerPluginBase::publishInternal ( const ros::Time timestamp) [protected, pure virtual]
virtual void srs_env_model::CServerPluginBase::reset ( ) [inline, virtual]

Reset plugin content when reseting whole server.

Reimplemented in srs_env_model::CExampleCrawlerPlugin, srs_env_model::CObjTreePlugin, and srs_env_model::CExamplePlugin.

Definition at line 151 of file server_tools.h.

virtual bool srs_env_model::CServerPluginBase::shouldPublish ( ) [protected, pure virtual]

Member Data Documentation

Locking mutex.

Definition at line 172 of file server_tools.h.

Plugin name.

Definition at line 169 of file server_tools.h.


The documentation for this class was generated from the following file:


srs_env_model
Author(s): Vit Stancl (stancl@fit.vutbr.cz), Tomas Lokaj, Jan Gorig, Michal Spanel (spanel@fit.vutbr.cz)
autogenerated on Sun Jan 5 2014 11:50:51