Ask Your Question
0

shared dynamic_reconfigure_servers in different nodes

asked 2012-12-14 07:35:14 -0500

updated 2012-12-14 07:35:44 -0500

Is it possible to have two different nodes with an dynamic_reconfigure::Server<t> sharing the same "resource name" in the rosgraph context? This would be interesting to share configurations between different nodes. If someone send a config update request, then both nodes would be configured simultaneusly.

Node1.cpp for process 1:
---
dynamic_reconfigure::Server<myconfigtype> server1(ros::NodeHandle("/shared/name"));
server1.setCallback(myP1Callback);
...

Node2.cpp for process 2:
---
dynamic_reconfigure::Server<myconfigtype> server2(ros::NodeHandle("/shared/name"));
server2.setCallback(myP2Callback);
...

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2012-12-14 11:13:03 -0500

joq gravatar image

I don't think so.

They would both have to declare the same ROS service.

edit flag offensive delete link more

Comments

1

I had just tested it. It doesn't work. As you say they both shares a service named "set_update" (a point-to-point operation). One interesting point its that everything looks work,but only one receives the updates. In the end I'll have to use topics. I think this would be a desirable feature.

Pablo Iñigo Blasco gravatar image Pablo Iñigo Blasco  ( 2012-12-14 11:24:26 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-12-14 07:35:14 -0500

Seen: 84 times

Last updated: Dec 14 '12