wait_for_message definition code example
Example: wait_for_message definition
while not rospy.is_shutdown():
msg = rospy.wait_for_message(..)
...
while not rospy.is_shutdown():
msg = rospy.wait_for_message(..)
...