An adapter that allows getting ROS parameters from a node handle.
More...
#include <node_handle.hpp>
An adapter that allows getting ROS parameters from a node handle.
Definition at line 25 of file node_handle.hpp.
◆ NodeHandleGetParamAdapter()
cras::NodeHandleGetParamAdapter::NodeHandleGetParamAdapter |
( |
const ::ros::NodeHandle & |
nh | ) |
|
|
explicitnoexcept |
Create a GetParamAdapter that reads parameters from the given node handle.
- Parameters
-
nh | The node handle to read params from. |
◆ ~NodeHandleGetParamAdapter()
cras::NodeHandleGetParamAdapter::~NodeHandleGetParamAdapter |
( |
| ) |
|
|
override |
◆ getNamespace()
::std::string cras::NodeHandleGetParamAdapter::getNamespace |
( |
| ) |
const |
|
overridevirtualnoexcept |
Get the namespace of this adapter. It should somehow represent the source of the parameters.
- Returns
- The namespace.
Implements cras::GetParamAdapter.
◆ getNamespaced()
::std::shared_ptr<::cras::GetParamAdapter> cras::NodeHandleGetParamAdapter::getNamespaced |
( |
const ::std::string & |
ns | ) |
const |
|
overridenoexcept |
◆ getParam()
bool cras::NodeHandleGetParamAdapter::getParam |
( |
const ::std::string & |
name, |
|
|
::XmlRpc::XmlRpcValue & |
v |
|
) |
| const |
|
overridenoexcept |
◆ hasParam()
bool cras::NodeHandleGetParamAdapter::hasParam |
( |
const ::std::string & |
name | ) |
const |
|
overridenoexcept |
◆ nh
The documentation for this struct was generated from the following file: