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 | Q&A answers.ros.org |
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...
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2017-03-17 02:40:38 -0600
Seen: 1,224 times
Last updated: Mar 17 '17
Are calls to rospy ServiceProxy thread-safe?
Unable to use functions from custom imported module
how does one index array in rospy?
How to recognize when the user is lost in openni_tracker? [closed]
how to publish laser data after manipulation?
Subscribe and publish to topic