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 }
NodeHandleGetParamAdapter(const ::ros::NodeHandle &nh) noexcept
Create a GetParamAdapter that reads parameters from the given node handle.
An adapter that allows getting ROS parameters from various sources.
An adapter that allows getting ROS parameters from a node handle.
Definition: node_handle.hpp:25
bool hasParam(const ::std::string &name) const noexcept override
::std::string getNamespace() const noexcept override
Get the namespace of this adapter. It should somehow represent the source of the parameters.
::std::shared_ptr<::cras::GetParamAdapter > getNamespaced(const ::std::string &ns) const noexcept(false) override
Definition: any.hpp:15
bool getParam(const ::std::string &name, ::XmlRpc::XmlRpcValue &v) const noexcept override
An adapter that allows getting ROS parameters from various sources.


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