#include <example_plugin.h>
Public Member Functions | |
CExamplePlugin (const std::string &name="ExamplePlugin ") | |
Constructor. Plugin name can be used for debug string output. | |
virtual void | init (ros::NodeHandle &node_handle) |
virtual void | reset () |
This method is called when user wants to reset server. | |
Protected Member Functions | |
virtual void | publishInternal (const ros::Time ×tamp) |
virtual bool | shouldPublish () |
Simple plugin - just explaining what methods do...
Definition at line 39 of file example_plugin.h.
srs_env_model::CExamplePlugin::CExamplePlugin | ( | const std::string & | name = "ExamplePlugin " | ) | [inline] |
Constructor. Plugin name can be used for debug string output.
Definition at line 43 of file example_plugin.h.
virtual void srs_env_model::CExamplePlugin::init | ( | ros::NodeHandle & | node_handle | ) | [inline, virtual] |
This method is called by server on start. Use node_handle to do parameters reading and all initializations here (subscriber connection, publisher creation, etc.)
Reimplemented from srs_env_model::CServerPluginBase.
Definition at line 50 of file example_plugin.h.
virtual void srs_env_model::CExamplePlugin::publishInternal | ( | const ros::Time & | timestamp | ) | [inline, protected, virtual] |
New scan has been inserted in the octomap. After that publishing stage starts and if this node has something to publish (see last method), this method is called.
Implements srs_env_model::CServerPluginBase.
Definition at line 59 of file example_plugin.h.
virtual void srs_env_model::CExamplePlugin::reset | ( | ) | [inline, virtual] |
This method is called when user wants to reset server.
Reimplemented from srs_env_model::CServerPluginBase.
Definition at line 53 of file example_plugin.h.
virtual bool srs_env_model::CExamplePlugin::shouldPublish | ( | ) | [inline, protected, virtual] |
Return true, if you want to publish something now. Called before onPublish method.
Implements srs_env_model::CServerPluginBase.
Definition at line 63 of file example_plugin.h.