14 #include <ros/common.h> 15 #if ROS_VERSION_MINIMUM(1, 15, 0) 16 #include <filters/filter_base.hpp> 64 friend struct ::cras::FilterGetParamAdapter<F>;
71 const ::nodelet::Nodelet*
nodelet {
nullptr};
76 #include "impl/filter_base.hpp" FilterBase()
Construct the filter and pass the corresponding Log and GetParam helpers.
const ::nodelet::Nodelet * nodelet
The nodelet this filter is running in. It should be set via setNodelet() after the filter is configur...
ResultType getParam(const ::ros::NodeHandle &node, const ::std::string &name, const ::cras::optional< ResultType > &defaultValue=ResultType(), const ::std::string &unit="", const ::cras::GetParamOptions< ResultType, ParamServerType > &options={})
Get the value of the given ROS parameter, falling back to the specified default value (if not nullopt...
Bound param helper (allows omitting the param adapter in each getParam call).
~FilterBase() override=default
void setNodelet(const ::nodelet::Nodelet *nodelet)
Inform this filter that it is running inside the passed nodelet. This should be called after configur...
This file provides helper methods easing access to parameters passed to nodes, nodelets and filters...
Bound param helper (allows omitting the param adapter in each getParam call).
Utils for working with strings.