Dynamic reconfigure with android

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

splash99 gravatar image

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

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?

Thanks.

edit retag flag offensive close merge delete

Comments

Are your parameters already configured to be dynamcally reconfigured ?

Delb gravatar imageDelb ( 2019-08-20 09:00:10 -0500 )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 imagesplash99 ( 2019-08-20 09:10:47 -0500 )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 imageDelb ( 2019-08-20 09:19:14 -0500 )edit

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

splash99 gravatar imagesplash99 ( 2019-08-20 09:26:17 -0500 )edit

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

Delb gravatar imageDelb ( 2019-08-21 01:59:10 -0500 )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 imagesplash99 ( 2019-08-26 08:07:34 -0500 )edit