code: def transform_from_rot_trans(R, t):
      
      R = R.reshape(3, 3)
      t = t.reshape(3, 1)
      return np.vstack((np.hstack([R, t]), [0, 0, 0, 1]))
docs: Transforation matrix from rotation matrix and translation vector.