Dynamic reconfigure with android

asked 2019-08-20 08:22:25 -0600

splash99 gravatar image

updated 2019-08-20 08:22:49 -0600

Hey guys,

I've already found a way to change the parameters of a parameter server via my Android smartphone application. But is there a way to change my parameters of the dynamic_reconfigure?

This is my currently working solution for the normal parameter server:

protected void setup() {
    params.set("/map_information/pDestinationLat", globalParameters.getDestLat());
    params.set("/map_information/pDestinationLon", globalParameters.getDestLng());

How can I change this, to work with dynamic_reconfigure?


edit retag flag offensive close merge delete


Are your parameters already configured to be dynamcally reconfigured ?

Delb gravatar image Delb  ( 2019-08-20 09:00:10 -0600 )edit

yes, I created two new parameters in the cfg/config.cfg and i can change them with rosrun dynamic_reconfigure dynparam set .... I already finished the dynamic_reconfigre part. Now Im on the application which should change the dynamic parameters.

splash99 gravatar image splash99  ( 2019-08-20 09:10:47 -0600 )edit

Alright, then you need to use a dynamic reconfigure client to send your requests. Have you seen this tutorial ? It's for python but according to #q12276 there is also a C++ API now.

Delb gravatar image Delb  ( 2019-08-20 09:19:14 -0600 )edit

thanks, I will look them through. But do you know whether I can implent one of these in my java application?

splash99 gravatar image splash99  ( 2019-08-20 09:26:17 -0600 )edit

You might need to use rosjava or maybe a socket to communicate with the server.

Delb gravatar image Delb  ( 2019-08-21 01:59:10 -0600 )edit

I'm already using rosjava and it works with the parameter server. But what do I need to implement, so I can communicate with the dynamic_reconfigure server?

splash99 gravatar image splash99  ( 2019-08-26 08:07:34 -0600 )edit