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)
Using MoveIt programmatically and integrating with ros_control
How to use publish and use multiple sonar range_msg data (using rosserial) on a single topic?
rospy Subscriber callback threading test
Implement shared memory data publishing between nodelets [closed]
Get package path with rospy [closed]
How to process PointCloud2 message data in python?
Error when packaging a binary .deb file with bloom: file changed as we read it