def set_bird_view_pos_hpr(self, position, hpr=None):
        """
        Set the x,y position and heading, pitch, roll  for the main camera
        Args:
            position:
            hpr:

        Returns:

        """
        if self.engine.task_manager.hasTaskNamed(self.TOP_DOWN_TASK_NAME):
            # adjust hpr
            p_pos = panda_vector(position, self.engine.global_config["top_down_camera_initial_z"])
            self.camera_x, self.camera_y, self.top_down_camera_height = p_pos[0], p_pos[1], p_pos[2]
            self.camera_hpr = hpr or [0, 0, 0]
            self.engine.task_manager.add(self._top_down_task, self.TOP_DOWN_TASK_NAME, extraArgs=[], appendTask=True)

        Set the x,y position and heading, pitch, roll  for the main camera
        Args:
            position:
            hpr:

        Returns:

        
metadrive/engine/core/main_camera.py