Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 126

call dynamic reconfigure service for a self built configuration

$
0
0
Hello, I have built a node which uses dynamic parameters and I can change them using the rqt_reconfigure without any problem. It works fine. There is one of this parameters that can also be changed depending on a topic subscriber. My idea is to call the service "/my_node/set_parameters" from within the callback function. The problem is that the configuration that I am trying to send is not a basic type but custom configuration. The class of this configuration is "my_package::sensor_config" instead of "dynamic_reconfigure::type". I have seen in [this answer](http://answers.ros.org/question/12276/is-there-a-c-api-for-a-dynamic-reconfigure-client/) how to call the service. The problem is that this is using basic parameters that are already part of the dynamic_reconfigure and the new parameteres are added using ".push_back()" on its own type. So my question is: how can I do the ".push_back" with my new configuration type? Thank you very much.

Viewing all articles
Browse latest Browse all 126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>