Go to the documentation of this file.
30 int main(
int argc,
char** argv)
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");
void setParam(const std::string &key, bool b) const
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
bool getParam(const std::string &key, bool &b) const
bool deleteParam(const std::string &key) const
bool searchParam(const std::string &key, std::string &result) const
bool hasParam(const std::string &key) const
T param(const std::string ¶m_name, const T &default_val) const
int main(int argc, char **argv)
roscpp_tutorials
Author(s): Morgan Quigley, Dirk Thomas
autogenerated on Fri Jun 24 2022 02:27:48