Skip to content

Interaction with paramater server #23

Description

@roboticlemon

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 :

int main(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 server
        for(auto k : keys){
            printf("Key is %s\n", k.c_str());
        }
        ros::spin();
        return 0;
}

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions