parameters: (self)
return_statement: return tf.transformations.euler_from_quaternion(rot)[2]
docstring: to get Yaw of robot
          :return:
          the Yaw value of the robot
docstring_summary: to get Yaw of robot
          :return:
          the Yaw value of the robot
docstring_tokens: to get Yaw of robot : return : the Yaw value of the robot
function: def __get_robot_pos(self):
          """
          to get Yaw of robot
          :return:
          the Yaw value of the robot
          """
          try:
              trans, rot = self.tf_listener.lookupTransform(self.frame_odom,
                                                            self.frame_base,
                                                            rospy.Time(0))
          except (tf.Exception, tf.ConnectivityException, tf.LookupException):
              rospy.logerr('tf catch exception when robot looking up transform')
              exit(-1)
          return tf.transformations.euler_from_quaternion(rot)[2]
function_tokens: def __get_robot_pos ( self ) : try : trans , rot = self . tf_listener . lookupTransform ( self . frame_odom , self . frame_base , rospy . Time ( 0 ) ) except ( tf . Exception , tf . ConnectivityException , tf . LookupException ) : rospy . logerr ( 'tf catch exception when robot looking up transform' ) exit ( - 1 ) return tf . transformations . euler_from_quaternion ( rot ) [ 2 ]