Search parameters in namespaces does not work
Hi,
I am using ROS melodic on Ubuntu18.04.
I have the following code snippet:
ros::init(argc, argv, "parameters");
ros::NodeHandle n;
double param_in_namespace = 7.0;
std::string namespace;
n.setParam("/namespace/param", param_in_namespace);
n.searchParam("param", namespace);
I would expect that the "namespace" variable has the value "/namespace/param" but when I execute this example, I get an empty string for namespace.
Is that how it should work, or is my expected value wrong?