node_handle.hpp
Go to the documentation of this file.
1 #pragma once
2 
11 #include <memory>
12 #include <string>
13 
14 #include <ros/node_handle.h>
15 #include <XmlRpcValue.h>
16 
18 
19 namespace cras
20 {
21 
26 {
27 public:
32  explicit NodeHandleGetParamAdapter(const ::ros::NodeHandle &nh) noexcept;
33  ~NodeHandleGetParamAdapter() override;
34 
35  bool getParam(const ::std::string& name, ::XmlRpc::XmlRpcValue& v) const noexcept override;
36  ::std::string getNamespace() const noexcept override;
37  bool hasParam(const ::std::string& name) const noexcept override;
38  ::std::shared_ptr<::cras::GetParamAdapter> getNamespaced(const ::std::string &ns) const noexcept(false) override;
39 
40 protected:
42 };
43 
44 }
cras::GetParamAdapter
An adapter that allows getting ROS parameters from various sources.
Definition: get_param_adapter.hpp:22
node_handle.h
cras
Definition: any.hpp:15
get_param_adapter.hpp
An adapter that allows getting ROS parameters from various sources.
cras::NodeHandleGetParamAdapter::NodeHandleGetParamAdapter
NodeHandleGetParamAdapter(const ::ros::NodeHandle &nh) noexcept
Create a GetParamAdapter that reads parameters from the given node handle.
cras::NodeHandleGetParamAdapter::getNamespace
::std::string getNamespace() const noexcept override
Get the namespace of this adapter. It should somehow represent the source of the parameters.
cras::NodeHandleGetParamAdapter::nh
ros::NodeHandle nh
Definition: node_handle.hpp:41
XmlRpcValue.h
cras::NodeHandleGetParamAdapter::hasParam
bool hasParam(const ::std::string &name) const noexcept override
cras::NodeHandleGetParamAdapter::getParam
bool getParam(const ::std::string &name, ::XmlRpc::XmlRpcValue &v) const noexcept override
cras::NodeHandleGetParamAdapter::~NodeHandleGetParamAdapter
~NodeHandleGetParamAdapter() override
cras::NodeHandleGetParamAdapter
An adapter that allows getting ROS parameters from a node handle.
Definition: node_handle.hpp:25
cras::NodeHandleGetParamAdapter::getNamespaced
::std::shared_ptr<::cras::GetParamAdapter > getNamespaced(const ::std::string &ns) const noexcept(false) override
XmlRpc::XmlRpcValue
ros::NodeHandle


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Mon Jun 17 2024 02:48:56