Request to update dynamic reconfigure tutorial for the cpp client
I have been working on integrating the dynamic reconfigure tool for my project( cpp ) and tried using the #include <dynamic_reconfigure/client.h>
but was unsuccessful with it. Would someone please update / add the tutorial for Client side in C++ for dynamic reconfigure. Thanks!
Here is the link for current status of the tutorial I am using kinetic.
I have been using this link for implementing this client but so far it doesn't work for me.
Asked by vin05 on 2019-10-23 15:14:31 UTC
Comments
I have been using the following link for my client https://github.com/ros/dynamic_reconfigure/blob/master/test/test_client.cpp but so far it doesn't work for me.
Asked by vin05 on 2019-10-23 15:34:34 UTC
Are you asking about a dynamic reconfigure client in roscpp? If so, see #q12276 for an answer.
Asked by Thomas D on 2019-10-23 20:32:59 UTC
and
What do these mean?
Asked by jayess on 2019-10-24 15:21:42 UTC
@vin05, again, what do you mean by "unsuccessful" and "doesn't work?" These terms are so broad that they're not really useful for providing any context or information for others to answer your question or to provide help. What were you expecting and what were the results, specifically?
Asked by jayess on 2019-10-30 18:30:32 UTC
@jayess, Sorry for the delay , I have been busy with some personal stuff.
In regard to your question , my dynamic_reconfigure client object was not able to talk to the dynamic_reconfigure server. I was trying integrate my existing client with this dynamic reconfigure client and server to take advantage of dynamic variables.
What didn't work for me is the fact that client constructor didn't initialize the client object properly because the client constructor was pointing to the exact location of server file but instead should have just referred to the right server node name like
client("/server")
. Reason behind the issue originates from this line in the documentation which I felt wasn't clear enough.Line 61
inhttps://github.com/ros/dynamic_reconfigure/blob/master/include/dynamic_reconfigure/client.h
.Another thing I found out is to make sure the dependencies in CMakefile should have the
${PROJECT_NAME}_gencfg
even for client executable.Asked by vin05 on 2019-11-06 14:51:04 UTC