is rospy.Publisher.publish() thread safe?
Want to publish() in main and also in child thread on one rospy.Publisher(),is this safe?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Want to publish() in main and also in child thread on one rospy.Publisher(),is this safe?
Yes, rospy.Publisher() is thread safe.
Before publishing a message it acquires a lock for thread safety and releases it after the message is sent.
You can see the source code here: http://docs.ros.org/api/rospy/html/ro...
Asked: 2017-03-17 02:40:38 -0500
Seen: 1,359 times
Last updated: Mar 17 '17
Accessing previous estimated joint states of a robot
message is published delayed (inconsistent)
Does anyone have a Simulink library model to publish to ROS
rospy Subscriber callback threading test
rospy: Calling /clear service programatically
Error when packaging a binary .deb file with bloom: file changed as we read it
Using Rospy to check on empty topic
Cleanly exit from python publisher ensuring all messages sent