diff --git a/point_cloud_transport/include/point_cloud_transport/simple_subscriber_plugin.hpp b/point_cloud_transport/include/point_cloud_transport/simple_subscriber_plugin.hpp index 1b77585..511fe07 100644 --- a/point_cloud_transport/include/point_cloud_transport/simple_subscriber_plugin.hpp +++ b/point_cloud_transport/include/point_cloud_transport/simple_subscriber_plugin.hpp @@ -87,6 +87,16 @@ class SimpleSubscriberPlugin : public SubscriberPlugin return {}; } + //! template function for getting parameter of a given type + template + bool getParam(const std::string & name, T & value) const + { + if (impl_) { + return impl_->node_->get_parameter(name, value); + } + return false; + } + template bool declareParam( const std::string parameter_name, const T value,