30 int main(
int argc,
char** argv)
47 ROS_INFO(
"Got param: %s", s.c_str());
51 ROS_ERROR(
"Failed to get param 'my_param'");
58 n.
param(
"my_num", i, 42);
63 n.
param<std::string>(
"my_param", s,
"default_value");
67 n.
setParam(
"my_param",
"hello there");
77 ROS_INFO(
"No param named 'my_param'");
82 std::string param_name;
91 ROS_INFO(
"No param 'b' found in an upward search");
bool deleteParam(const std::string &key) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
bool searchParam(const std::string &key, std::string &result) const
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
bool getParam(const std::string &key, std::string &s) const
bool hasParam(const std::string &key) const
void setParam(const std::string &key, const XmlRpc::XmlRpcValue &v) const