HTML Reports¶
plotly_reports ¶
create_alignment_report ¶
create_alignment_report(
*,
alignment_parameters: AlignmentParameters,
name: str = "Alignment",
report_settings: ReportSettings = ReportSettings()
) -> str
Render trajectory alignment heatmaps.
Heatmaps are covariance matrix and correlation matrix.
Parameters:
-
alignment_parameters(AlignmentParameters) –Estimated alignment parameters.
-
name(str, default:'Alignment') –Name of the report. Defaults to "Alignment".
-
report_settings(ReportSettings, default:ReportSettings()) –Report settings. Defaults to ReportSettings()
Returns:
-
str–HTML string of the rendered report including the heatmap plots.
Source code in trajectopy\visualization\plotly_reports.py
create_trajectory_report ¶
create_trajectory_report(
*,
trajectories: List[Trajectory],
report_settings: ReportSettings = ReportSettings()
) -> str
Render a HTML report containing trajectory plots.
Parameters:
-
trajectories(List[Trajectory]) –List of trajectories to render.
-
report_settings(ReportSettings, default:ReportSettings()) –Report settings.
Returns:
-
str–HTML string of the rendered report including the trajectory plots.
Source code in trajectopy\visualization\plotly_reports.py
create_deviation_report ¶
create_deviation_report(
ate_result: Union[ATEResult, List[ATEResult]],
rpe_result: Union[RPEResult, List[RPEResult], None],
report_settings: ReportSettings = ReportSettings(),
) -> str
Create a HTML deviation report containing the absolute trajectory error and relative pose error results.
Parameters:
-
ate_result(Union[ATEResult, list[ATEResult]]) –The absolute trajectory error results (one or multiple).
-
rpe_result(Union[RPEResult, list[RPEResult]]) –The relative pose error results (one or multiple).
-
report_settings(ReportSettings, default:ReportSettings()) –The report settings, defaults to ReportSettings().
Returns:
-
str(str) –The deviation report.
Source code in trajectopy\visualization\plotly_reports.py
write_report ¶
Writes a report to the given output file.
Parameters:
-
output_file(str) –The output file path
-
report_text(str) –The report text
Source code in trajectopy\visualization\plotly_reports.py
show_report ¶
This function writes a report to a file and opens it in the default web browser.
Parameters:
-
report_text(str) –The report text
-
filepath(str, default:'') –The file path to save the report. If not given, a random file name will be generated.