Request to update dynamic reconfigure tutorial for the cpp client

asked 2019-10-23 15:34:18 -0600

vin05 gravatar image

updated 2019-11-06 15:34:14 -0600

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.

edit retag flag offensive close merge delete

Comments

I have been using the following link for my client https://github.com/ros/dynamic_reconf... but so far it doesn't work for me.

vin05 gravatar imagevin05 ( 2019-10-23 15:34:34 -0600 )edit

Are you asking about a dynamic reconfigure client in roscpp? If so, see #q12276 for an answer.

Thomas D gravatar imageThomas D ( 2019-10-23 20:32:59 -0600 )edit
3

was unsuccessful with it

and

it doesn't work for me

What do these mean?

jayess gravatar imagejayess ( 2019-10-24 15:21:42 -0600 )edit

@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?

jayess gravatar imagejayess ( 2019-10-30 18:30:32 -0600 )edit

@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 according me wasn't clear enough.

Line 61 in https://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.

vin05 gravatar imagevin05 ( 2019-11-06 13:51:04 -0600 )edit