ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm not sure if I understood your question, but if by communicating between other scripts you mean share the distances with other scripts, you could simply import rospy module, initialise a node, create a rospy.Publisher() to publish data to a Topic of your choice. Then you just subscribe to this Topic from the "other scripts" in order to get the data. Take a look at the ROS tutorial here to see how to create Publishers and Subscribers: http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28python%29