what does a topic get when 2 nodes publish to it?
If 2 nodes are publishing to the topic l_leg_uhz_position_controller/command what would the joint do? try doing both?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
If 2 nodes are publishing to the topic l_leg_uhz_position_controller/command what would the joint do? try doing both?
In general, messages from multiple publishers get interleaved, with no reasonable way to predict the order in which they will be received. In some cases that can be quite useful, for example when aggregating rosout or diagnostic messages.
As @Ben_S said, the semantics of mixing controller messages depend entirely on that controller's implementation. Most likely it will get confused.
In such a case, most likely the last received command will override any previous ones. If you would like to know the behaviour of a specific controller, i would advise to have a look at the documentation or ultimately at the source code itself if the case isnt mentioned in the docs.
Asked: 2012-11-28 01:19:10 -0600
Seen: 481 times
Last updated: Nov 29 '12