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 -0500
Seen: 450 times
Last updated: Nov 29 '12
joint_states_aggregator and joint_state_publisher
CMakeLists.txt and package.xml files of ros image to cv image conversion
Build C++ Library and use in Python Package (Node)
How do you kill the "zombie" node in ROS2 on local?
ROS turtlesim - not responding to keyboard
Multiple nodes and nodelets in a single process
About listener.cpp tutorial. disobey cpp grammar?
ROS node bridge for publish special topics over the internet