(self)
return nose_to_target.dot(head_orientation)[:2]
Returns a vector from nose to target in local coordinate of the head.
Returns a vector from nose to target in local coordinate of the head.
Returns a vector from nose to target in local coordinate of the head .
def nose_to_target(self):
    """Returns a vector from nose to target in local coordinate of the head."""
    nose_to_target = (self.named.data.geom_xpos['target'] -
                      self.named.data.geom_xpos['nose'])
    head_orientation = self.named.data.xmat['head'].reshape(3, 3)
    return nose_to_target.dot(head_orientation)[:2]
def nose_to_target ( self ) : nose_to_target = ( self . named . data . geom_xpos [ 'target' ] - self . named . data . geom_xpos [ 'nose' ] ) head_orientation = self . named . data . xmat [ 'head' ] . reshape ( 3 , 3 ) return nose_to_target . dot ( head_orientation ) [ : 2 ]