ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You tagged this rospy
so I'll assume you're asking about python. Yes, python supports global variables within a single OS process. However, you should implement thread-safety if you read/write such a variable from multiple places in your code, typically by using a mutex.