class_docstr: Class for modeling a non-linear 2D localization problem.
  
  The state is composed of a planar orientation and position, and is thus a
  member of SE(2).
  A sensor provides the linear and angular speed, while another one provides
  sparse position observations.
docstr: Construct the rotation matrix associated to the angle theta.
  
  Parameters
  ----------
  theta : float
      Rotation angle.
  
  Returns
  -------
  rot : array-like, shape=[2, 2]
      2D rotation matrix of angle theta.
docstr_tok: ["Construct","the","rotation","matrix","associated","to","the","angle","theta",".","Parameters","--","--","--","--","--","theta",":","float","Rotation","angle",".","Returns","--","--","--","-","rot",":","array-like",",","shape=","[","2",",","2","]","2D","rotation","matrix","of","angle","theta","."]
code: def rotation_matrix(self, theta):
      """Construct the rotation matrix associated to the angle theta.
  
      Parameters
      ----------
      theta : float
          Rotation angle.
  
      Returns
      -------
      rot : array-like, shape=[2, 2]
          2D rotation matrix of angle theta.
      """
      if gs.ndim(gs.array(theta)) <= 1:
          theta = gs.array([theta])
      return self.group.rotations.matrix_from_rotation_vector(theta)
  
imports: import geomstats.backend
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.matrices import Matrices
  from geomstats.geometry.special_euclidean import SpecialEuclidean
label_desc: Use image node_id 3 for calling the Localization obj's underlying member method code with example usage: obj.rotation_matrix(theta) and returns: self