Robowflex
v0.1
Making MoveIt Easy
|
ROS parameter server handler to handle namespacing and automatic parameter deletion. More...
#include <handler.h>
Public Member Functions | |
Handler (const std::string &name) | |
Constructor. More... | |
Handler (Handler const &)=delete | |
void | operator= (Handler const &)=delete |
Handler (const IO::Handler &handler, const std::string &name="") | |
Copy constructor. Handles namespacing. More... | |
~Handler () | |
Destructor. Deletes all parameters created through this handler. More... | |
void | loadYAMLtoROS (const YAML::Node &node, const std::string &prefix="") |
Loads the contents of a YAML node to the parameter server under a prefix. More... | |
template<typename T > | |
void | setParam (const std::string &key, const T &value) |
Sets a parameter on the parameter server. More... | |
bool | hasParam (const std::string &key) const |
Checks if the parameter server has key. More... | |
template<typename T > | |
bool | getParam (const std::string &key, T &value) const |
Gets a parameter from the parameter server. More... | |
const ros::NodeHandle & | getHandle () const |
Gets the node handle. More... | |
const std::string & | getName () const |
Gets the name of the handler. More... | |
const std::string & | getNamespace () const |
Gets the namespace of the handler. More... | |
Private Attributes | |
const std::string | name_ |
Name of handler. More... | |
const std::string | namespace_ |
Full namespace of handler. More... | |
ros::NodeHandle | nh_ |
ROS node handle. More... | |
std::vector< std::string > | params_ |
Set parameter keys. More... | |
Static Private Attributes | |
static const std::string | UUID |
UUID of handler. More... | |
ROS parameter server handler to handle namespacing and automatic parameter deletion.
IO::Handler::Handler | ( | const std::string & | name | ) |
Constructor.
[in] | name | Name for namespace. |
Definition at line 512 of file robowflex_library/src/io.cpp.
|
delete |
IO::Handler::Handler | ( | const IO::Handler & | handler, |
const std::string & | name = "" |
||
) |
Copy constructor. Handles namespacing.
[in] | handler | Parent handler. |
[in] | name | Additional namespace to add to parent handler. |
Definition at line 517 of file robowflex_library/src/io.cpp.
IO::Handler::~Handler | ( | ) |
Destructor. Deletes all parameters created through this handler.
Definition at line 522 of file robowflex_library/src/io.cpp.
const ros::NodeHandle & IO::Handler::getHandle | ( | ) | const |
Gets the node handle.
Definition at line 556 of file robowflex_library/src/io.cpp.
const std::string & IO::Handler::getName | ( | ) | const |
Gets the name of the handler.
Definition at line 561 of file robowflex_library/src/io.cpp.
const std::string & IO::Handler::getNamespace | ( | ) | const |
Gets the namespace of the handler.
Definition at line 566 of file robowflex_library/src/io.cpp.
|
inline |
bool IO::Handler::hasParam | ( | const std::string & | key | ) | const |
Checks if the parameter server has key.
[in] | key | Key to check. |
Definition at line 551 of file robowflex_library/src/io.cpp.
void IO::Handler::loadYAMLtoROS | ( | const YAML::Node & | node, |
const std::string & | prefix = "" |
||
) |
Loads the contents of a YAML node to the parameter server under a prefix.
Definition at line 528 of file robowflex_library/src/io.cpp.
|
delete |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |