param_helper.h
Go to the documentation of this file.
1 #pragma once
2 
11 #include <string>
12 
13 #include <ros/datatypes.h>
14 #include <ros/node_handle.h>
15 
17 
18 namespace cras
19 {
20 
25 {
26 public:
27  explicit NodeParamHelper(const ::std::string& ns = "", const ::ros::M_string& remappings = {});
28 
29  NodeParamHelper(const ::ros::NodeHandle& parent, const ::std::string& ns);
30 
31  NodeParamHelper(const ::ros::NodeHandle& parent, const ::std::string& ns, const ::ros::M_string& remappings);
32 
34  using ::cras::BoundParamHelper::hasParam;
35  using ::cras::BoundParamHelper::getNamespace;
36 };
37 
38 }
NodeParamHelper(const ::std::string &ns="", const ::ros::M_string &remappings={})
This mixin allows calling the getParam() helpers.
Definition: param_helper.h:24
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...
Definition: node_utils.hpp:110
Bound param helper (allows omitting the param adapter in each getParam call).
Definition: any.hpp:15
Bound param helper (allows omitting the param adapter in each getParam call).


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Jun 17 2023 02:32:53