Robotics StackExchange | Archived questions

call dynamic reconfigure service for a self built configuration

Hello,

I have built a node which uses dynamic parameters and I can change them using the rqtreconfigure 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 "/mynode/setparameters" 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 "mypackage::sensorconfig" instead of "dynamicreconfigure::type".

I have seen in this answer how to call the service. The problem is that this is using basic parameters that are already part of the dynamicreconfigure and the new parameteres are added using ".pushback()" on its own type. So my question is: how can I do the ".push_back" with my new configuration type?

Thank you very much.

Asked by apalomer on 2015-01-29 04:53:59 UTC

Comments

Answers