parameters: (output, left_camera_config, right_camera_config, imu_config)
docstring: Write configurations to disk.
docstring_summary: Write configurations to disk.
docstring_tokens: Write configurations to disk .
function: def output_kimera_configs(output, left_camera_config, right_camera_config, imu_config):
      """Write configurations to disk."""
      env = get_jinja_env()
      imu_template = env.get_template("imu.yaml")
      camera_template = env.get_template("camera.yaml")
  
      if output is not None:
          output_path = pathlib.Path(output)
      else:
          output_path = pathlib.Path(".").absolute()
  
      with (output_path / "LeftCameraParams.yaml").open("w") as fout:
          fout.write(camera_template.render(**left_camera_config))
  
      with (output_path / "RightCameraParams.yaml").open("w") as fout:
          fout.write(camera_template.render(**right_camera_config))
  
      with (output_path / "ImuParams.yaml").open("w") as fout:
          fout.write(imu_template.render(**imu_config))
function_tokens: def output_kimera_configs ( output , left_camera_config , right_camera_config , imu_config ) : env = get_jinja_env ( ) imu_template = env . get_template ( "imu.yaml" ) camera_template = env . get_template ( "camera.yaml" ) if output is not None : output_path = pathlib . Path ( output ) else : output_path = pathlib . Path ( "." ) . absolute ( ) with ( output_path / "LeftCameraParams.yaml" ) . open ( "w" ) as fout : fout . write ( camera_template . render ( * * left_camera_config ) ) with ( output_path / "RightCameraParams.yaml" ) . open ( "w" ) as fout : fout . write ( camera_template . render ( * * right_camera_config ) ) with ( output_path / "ImuParams.yaml" ) . open ( "w" ) as fout : fout . write ( imu_template . render ( * * imu_config ) )