parameters: (self, target_frame, hdr)
return_statement: return self.fromTranslationRotation(translation, rotation)
docstring: :param target_frame: the tf target frame, a string
          :param hdr: a message header
          :return: a :class:`numpy.matrix` 4x4 representation of the transform
          :raises: any of the exceptions that :meth:`~tf.Transformer.lookupTransform` can raise
          
          Uses :meth:`lookupTransform` to look up the transform for ROS message header hdr to frame
          target_frame, and returns the transform as a :class:`numpy.matrix`
          4x4.
docstring_summary: :param target_frame: the tf target frame, a string
          :param hdr: a message header
          :return: a :class:`numpy.matrix` 4x4 representation of the transform
          :raises: any of the exceptions that :meth:`~tf.Transformer.lookupTransform` can raise
          
          Uses :meth:`lookupTransform` to look up the transform for ROS message header hdr to frame
          target_frame, and returns the transform as a :class:`numpy.matrix`
          4x4.
docstring_tokens: : param target_frame : the tf target frame a string : param hdr : a message header : return : a : class : numpy . matrix 4x4 representation of the transform : raises : any of the exceptions that : meth : ~tf . Transformer . lookupTransform can raise Uses : meth : lookupTransform to look up the transform for ROS message header hdr to frame target_frame and returns the transform as a : class : numpy . matrix 4x4 .
function: def asMatrix(self, target_frame, hdr):
          """
          :param target_frame: the tf target frame, a string
          :param hdr: a message header
          :return: a :class:`numpy.matrix` 4x4 representation of the transform
          :raises: any of the exceptions that :meth:`~tf.Transformer.lookupTransform` can raise
          
          Uses :meth:`lookupTransform` to look up the transform for ROS message header hdr to frame
          target_frame, and returns the transform as a :class:`numpy.matrix`
          4x4.
          """
          translation,rotation = self.lookupTransform(target_frame, hdr.frame_id, hdr.stamp)
          return self.fromTranslationRotation(translation, rotation)
function_tokens: def asMatrix ( self , target_frame , hdr ) : translation , rotation = self . lookupTransform ( target_frame , hdr . frame_id , hdr . stamp ) return self . fromTranslationRotation ( translation , rotation )