    def crop_image(self, name, image):
        """Crop realsense images to be a square."""
        if name == "wrist_1":
            return image[90:390, 170:470, :]
        elif name == "wrist_2":
            return image[90:390, 170:470, :]
        else:
            return ValueError(f"Camera {name} not recognized in cropping")
Crop realsense images to be a square.
serl_robot_infra/franka_env/envs/pcb_env/franka_pcb_insert.py