Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 import rospy
00010
00011
00012
00013
00014
00015
00016 def get_rosdistro():
00017 '''
00018 Abstraction for pulling the rosdistro version (e.g. groovy/hydro). We
00019 are using the configured parameter here, but you could equally use one
00020 of the non-runtime techniques in rospkg elucidated on ros answers by
00021 Jack:
00022
00023 http://answers.ros.org/question/36485/how-do-i-test-the-ros-version-in-python-code/
00024
00025 @return the human readable string version for the ros distro
00026 @str
00027 '''
00028 return rospy.get_param("/rosdistro").rstrip()