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: 451 times
Last updated: Nov 29 '12
joint_states_aggregator and joint_state_publisher
Stopping and re-initializing a node or stopping spin without shutting down node [closed]
Can't see ROS2 node in ros2 node list output on Ubuntu Server on Raspberry Pi 4
ROS2 how to assign callback to publisher node without create_wall_timer.
is there a way to publish topics of the same node at different rates
how do I run my own node by launch file?