Dynamic reconfigure with android
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.
Asked by splash99 on 2019-08-20 08:22:25 UTC
Comments
Are your parameters already configured to be dynamcally reconfigured ?
Asked by Delb on 2019-08-20 09:00:10 UTC
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.Asked by splash99 on 2019-08-20 09:10:47 UTC
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.
Asked by Delb on 2019-08-20 09:19:14 UTC
thanks, I will look them through. But do you know whether I can implent one of these in my java application?
Asked by splash99 on 2019-08-20 09:26:17 UTC
You might need to use rosjava or maybe a socket to communicate with the server.
Asked by Delb on 2019-08-21 01:59:10 UTC
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?
Asked by splash99 on 2019-08-26 08:07:34 UTC