You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With standard dynamic reconfigure, new paramaters are mirrored on the ros paramater server such that you can do rosparam list and see your paramaters.
With this library however I can't see the paramaters at all with rosparam list. They appear in rqt_reconfigure but are apparently invisible to the rosparam api. Am I misunderstanding the library or have I done something wrong? Just making a small modification to the sample code on the readme to printout the keys :
intmain(int argc, char **argv) {
ros::init(argc, argv, "ddynamic_tutorials");
ros::NodeHandle nh("~/other_namespace");
ddynamic_reconfigure::DDynamicReconfigure ddr(nh);
int int_param = 0;
ddr.registerVariable<int>("int_param", &int_param, "param description");
ddr.publishServicesTopics();
std::vector<std::string> keys;
nh.getParamNames(keys);
// Print out keys on param serverfor(auto k : keys){
printf("Key is %s\n", k.c_str());
}
ros::spin();
return0;
}
The only printed keys are the default roscore ones. I am on ROS Melodic, 18.04.
Any guidance is much appreciated. I am trying to use this vastly superior package with control_toolbox.
The text was updated successfully, but these errors were encountered:
You may find this useful:
pnh_.param("demo_value", demo_value_enabled_, false);
ddr_.registerVariable("demo_value", &demo_value_enabled_, boost::bind(changeDemoValue, _1), "Enable Demo Value", false, true, "Demo Category");
I setup each parameter both in the typical parameter server and inside ddr. This allows me to see them listed, as well as, lets me work with them inside ddr and use them for callbacks.
You may find this useful: pnh_.param("demo_value", demo_value_enabled_, false); ddr_.registerVariable("demo_value", &demo_value_enabled_, boost::bind(changeDemoValue, _1), "Enable Demo Value", false, true, "Demo Category");
I setup each parameter both in the typical parameter server and inside ddr. This allows me to see them listed, as well as, lets me work with them inside ddr and use them for callbacks.
With standard dynamic reconfigure, new paramaters are mirrored on the ros paramater server such that you can do
rosparam list
and see your paramaters.With this library however I can't see the paramaters at all with rosparam list. They appear in rqt_reconfigure but are apparently invisible to the rosparam api. Am I misunderstanding the library or have I done something wrong? Just making a small modification to the sample code on the readme to printout the keys :
The only printed keys are the default roscore ones. I am on ROS Melodic, 18.04.
Any guidance is much appreciated. I am trying to use this vastly superior package with control_toolbox.
The text was updated successfully, but these errors were encountered: