trajectopy 6.2.0__tar.gz → 6.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. {trajectopy-6.2.0 → trajectopy-6.2.1}/PKG-INFO +1 -1
  2. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_trajectory.py +12 -0
  3. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_visualization.py +32 -0
  4. trajectopy-6.2.1/trajectopy/__version__.py +1 -0
  5. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/core/positions.py +2 -1
  6. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/core/trajectory.py +3 -2
  7. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/interpolation.py +2 -1
  8. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/visualization/__init__.py +87 -81
  9. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/visualization/plots.py +1111 -931
  10. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/index.md +2 -1
  11. trajectopy-6.2.1/trajectopy-docs/docs/api/results/correlation.md +3 -0
  12. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/visualization/display.md +2 -0
  13. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/index.md +156 -153
  14. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/settings.md +204 -204
  15. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/user_guide.md +12 -4
  16. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/mkdocs.yml +1 -0
  17. trajectopy-6.2.0/trajectopy/__version__.py +0 -1
  18. {trajectopy-6.2.0 → trajectopy-6.2.1}/.gitattributes +0 -0
  19. {trajectopy-6.2.0 → trajectopy-6.2.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  20. {trajectopy-6.2.0 → trajectopy-6.2.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  21. {trajectopy-6.2.0 → trajectopy-6.2.1}/.github/workflows/ci.yml +0 -0
  22. {trajectopy-6.2.0 → trajectopy-6.2.1}/.github/workflows/release.yml +0 -0
  23. {trajectopy-6.2.0 → trajectopy-6.2.1}/.gitignore +0 -0
  24. {trajectopy-6.2.0 → trajectopy-6.2.1}/.pre-commit-config.yaml +0 -0
  25. {trajectopy-6.2.0 → trajectopy-6.2.1}/.pylintrc +0 -0
  26. {trajectopy-6.2.0 → trajectopy-6.2.1}/CITATION.cff +0 -0
  27. {trajectopy-6.2.0 → trajectopy-6.2.1}/LICENSE +0 -0
  28. {trajectopy-6.2.0 → trajectopy-6.2.1}/README.md +0 -0
  29. {trajectopy-6.2.0 → trajectopy-6.2.1}/example_data/KITTI_ORB.traj +0 -0
  30. {trajectopy-6.2.0 → trajectopy-6.2.1}/example_data/KITTI_SPTAM.traj +0 -0
  31. {trajectopy-6.2.0 → trajectopy-6.2.1}/example_data/KITTI_gt.traj +0 -0
  32. {trajectopy-6.2.0 → trajectopy-6.2.1}/example_scripts/align.py +0 -0
  33. {trajectopy-6.2.0 → trajectopy-6.2.1}/example_scripts/alignment.py +0 -0
  34. {trajectopy-6.2.0 → trajectopy-6.2.1}/example_scripts/ate.py +0 -0
  35. {trajectopy-6.2.0 → trajectopy-6.2.1}/example_scripts/deviation_plots.py +0 -0
  36. {trajectopy-6.2.0 → trajectopy-6.2.1}/example_scripts/rpe.py +0 -0
  37. {trajectopy-6.2.0 → trajectopy-6.2.1}/example_scripts/trajectory_plot.py +0 -0
  38. {trajectopy-6.2.0 → trajectopy-6.2.1}/installer/trajectopy.iss +0 -0
  39. {trajectopy-6.2.0 → trajectopy-6.2.1}/pyproject.toml +0 -0
  40. {trajectopy-6.2.0 → trajectopy-6.2.1}/requirements.txt +0 -0
  41. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/__init__.py +0 -0
  42. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/data/abs_dev.result +0 -0
  43. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/data/align_entry.result +0 -0
  44. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/data/generated_trajectory.traj +0 -0
  45. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/data/noisy_trajectory.traj +0 -0
  46. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/data/open_loop_trajectory.traj +0 -0
  47. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/data/rel_dev_meter.result +0 -0
  48. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/data/rel_dev_second.result +0 -0
  49. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_alignment.py +0 -0
  50. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_approximation.py +0 -0
  51. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_architecture.py +0 -0
  52. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_comparison.py +0 -0
  53. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_context_menus.py +0 -0
  54. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_correlation.py +0 -0
  55. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_fast_reading.py +0 -0
  56. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_gui_models.py +0 -0
  57. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_gui_operations.py +0 -0
  58. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_gui_smoke.py +0 -0
  59. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_inplace_contract.py +0 -0
  60. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_io.py +0 -0
  61. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_kml.py +0 -0
  62. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_manual_alignment.py +0 -0
  63. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_matching.py +0 -0
  64. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_merging.py +0 -0
  65. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_pipeline.py +0 -0
  66. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_positions_rotations.py +0 -0
  67. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_processing_edge_cases.py +0 -0
  68. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_processing_errors.py +0 -0
  69. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_project.py +0 -0
  70. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_readers_edge_cases.py +0 -0
  71. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_readers_errors.py +0 -0
  72. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_regressions.py +0 -0
  73. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_settings.py +0 -0
  74. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_settings_edge_cases.py +0 -0
  75. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_settings_serialization.py +0 -0
  76. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_settings_validation.py +0 -0
  77. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_sorting.py +0 -0
  78. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_trajectory_validation.py +0 -0
  79. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/test_update_check.py +0 -0
  80. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/testdata.py +0 -0
  81. {trajectopy-6.2.0 → trajectopy-6.2.1}/test/util.py +0 -0
  82. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/LICENSE +0 -0
  83. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/__init__.py +0 -0
  84. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/__main__.py +0 -0
  85. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/cli/__init__.py +0 -0
  86. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/cli/main.py +0 -0
  87. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/core/__init__.py +0 -0
  88. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/core/parameters.py +0 -0
  89. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/core/rotations.py +0 -0
  90. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/core/settings.py +0 -0
  91. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/exceptions.py +0 -0
  92. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/__init__.py +0 -0
  93. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/app.py +0 -0
  94. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/log.py +0 -0
  95. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/managers/__init__.py +0 -0
  96. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/managers/file_manager.py +0 -0
  97. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/managers/plot_manager.py +0 -0
  98. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/managers/project_manager.py +0 -0
  99. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/managers/requests.py +0 -0
  100. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/managers/trajectory_manager.py +0 -0
  101. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/managers/ui_manager.py +0 -0
  102. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/models/__init__.py +0 -0
  103. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/models/entries.py +0 -0
  104. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/models/property_model.py +0 -0
  105. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/models/result_model.py +0 -0
  106. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/models/selection.py +0 -0
  107. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/models/table_model.py +0 -0
  108. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/models/trajectory_model.py +0 -0
  109. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/project.py +0 -0
  110. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/project_format.py +0 -0
  111. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/resources/full-icon-poppins.png +0 -0
  112. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/resources/icon-bg.ico +0 -0
  113. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/resources/icon-bg.png +0 -0
  114. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/resources/icon.png +0 -0
  115. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/themes.py +0 -0
  116. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/update_check.py +0 -0
  117. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/utils.py +0 -0
  118. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/__init__.py +0 -0
  119. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/about_window.py +0 -0
  120. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/alignment_edit_window.py +0 -0
  121. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/dof_organizer.py +0 -0
  122. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/entry_table_view.py +0 -0
  123. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/json_settings_view.py +0 -0
  124. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/kml_dialog.py +0 -0
  125. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/log_panel.py +0 -0
  126. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/main_window.py +0 -0
  127. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/manual_alignment_window.py +0 -0
  128. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/menu_helpers.py +0 -0
  129. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/playback_window.py +0 -0
  130. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/preview_plot.py +0 -0
  131. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/preview_plot_3d.py +0 -0
  132. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/progress_window.py +0 -0
  133. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/properties_panel.py +0 -0
  134. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/result_context_menu.py +0 -0
  135. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/result_selection_window.py +0 -0
  136. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/result_table_view.py +0 -0
  137. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/splash_screen.py +0 -0
  138. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/timeline_widget.py +0 -0
  139. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/trajectory_context_menu.py +0 -0
  140. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/views/trajectory_table_view.py +0 -0
  141. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/gui/worker.py +0 -0
  142. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/io/__init__.py +0 -0
  143. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/io/ascii.py +0 -0
  144. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/io/header.py +0 -0
  145. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/io/kml.py +0 -0
  146. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/io/results_io.py +0 -0
  147. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/io/rosbag.py +0 -0
  148. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/io/rosmsg.py +0 -0
  149. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/io/trajectory_io.py +0 -0
  150. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/io/utils.py +0 -0
  151. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/__init__.py +0 -0
  152. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/alignment.py +0 -0
  153. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/approximation.py +0 -0
  154. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/evaluation.py +0 -0
  155. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/__init__.py +0 -0
  156. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/alignment/__init__.py +0 -0
  157. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/alignment/data.py +0 -0
  158. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/alignment/direct.py +0 -0
  159. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/alignment/egrad_interface.py +0 -0
  160. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/alignment/equations.py +0 -0
  161. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/alignment/estimation.py +0 -0
  162. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/alignment/parameters.py +0 -0
  163. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/approximation/__init__.py +0 -0
  164. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/approximation/cubic_approximation.py +0 -0
  165. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/approximation/line_approximation.py +0 -0
  166. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/lib/approximation/voxelizer.py +0 -0
  167. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/matching.py +0 -0
  168. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/merging.py +0 -0
  169. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/processing/sorting.py +0 -0
  170. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/py.typed +0 -0
  171. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/readers/__init__.py +0 -0
  172. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/readers/ascii.py +0 -0
  173. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/readers/rosbag.py +0 -0
  174. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/readers/rosmsg.py +0 -0
  175. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/readers/utils.py +0 -0
  176. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/results/__init__.py +0 -0
  177. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/results/alignment_result.py +0 -0
  178. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/results/ate_result.py +0 -0
  179. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/results/correlation.py +0 -0
  180. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/results/rpe_result.py +0 -0
  181. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/__init__.py +0 -0
  182. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/colors.py +0 -0
  183. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/common.py +0 -0
  184. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/definitions.py +0 -0
  185. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/formatting.py +0 -0
  186. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/geometry.py +0 -0
  187. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/linalg.py +0 -0
  188. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/numeric.py +0 -0
  189. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/resources.py +0 -0
  190. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/utils/statistics.py +0 -0
  191. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/visualization/_svg_export.py +0 -0
  192. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/visualization/axes.py +0 -0
  193. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/visualization/figure.py +0 -0
  194. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy/visualization/style.py +0 -0
  195. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/core/parameters.md +0 -0
  196. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/core/positions.md +0 -0
  197. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/core/rotations.md +0 -0
  198. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/core/settings.md +0 -0
  199. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/core/trajectory.md +0 -0
  200. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/io/kml.md +0 -0
  201. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/io/results_io.md +0 -0
  202. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/io/rosbag.md +0 -0
  203. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/io/trajectory_io.md +0 -0
  204. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/processing/alignment.md +0 -0
  205. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/processing/approximation.md +0 -0
  206. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/processing/evaluation.md +0 -0
  207. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/processing/interpolation.md +0 -0
  208. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/processing/matching.md +0 -0
  209. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/processing/merging.md +0 -0
  210. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/processing/sorting.md +0 -0
  211. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/results/alignment_result.md +0 -0
  212. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/results/ate_result.md +0 -0
  213. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/results/rpe_result.md +0 -0
  214. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/api/visualization/figures.md +0 -0
  215. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/assets/icon.png +0 -0
  216. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/file_formats.md +0 -0
  217. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/javascripts/mathjax.js +0 -0
  218. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy-docs/docs/stylesheets/extra.css +0 -0
  219. {trajectopy-6.2.0 → trajectopy-6.2.1}/trajectopy.spec +0 -0
  220. {trajectopy-6.2.0 → trajectopy-6.2.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: trajectopy
3
- Version: 6.2.0
3
+ Version: 6.2.1
4
4
  Summary: Trajectory Evaluation in Python
5
5
  Project-URL: Homepage, https://gereon-t.github.io/trajectopy/
6
6
  Project-URL: Documentation, https://gereon-t.github.io/trajectopy/
@@ -16,6 +16,18 @@ class TestTrajectory(unittest.TestCase):
16
16
  def setUp(self) -> None:
17
17
  np.random.seed(42)
18
18
 
19
+ def test_mask_without_stored_velocities(self) -> None:
20
+ """Derived velocities follow from the masked positions instead of being masked twice."""
21
+ trajectory = open_loop_trajectory.copy()
22
+ trajectory._velocity_xyz = None
23
+ keep = np.zeros(len(trajectory), dtype=bool)
24
+ keep[100:200] = True
25
+
26
+ masked = trajectory.mask(keep, inplace=False)
27
+
28
+ self.assertEqual(len(masked.velocity_xyz), 100)
29
+ np.testing.assert_allclose(masked.velocity_xyz[:-1], trajectory.velocity_xyz[100:199])
30
+
19
31
  def test_match_timestamps(self) -> None:
20
32
  trajectory_ref = open_loop_trajectory.copy()
21
33
  trajectory = open_loop_trajectory.copy()
@@ -106,6 +106,38 @@ class TestVisualization(unittest.TestCase):
106
106
  with self.subTest(results=len(ate_results)):
107
107
  self._render_all(vis.deviation_figures(ate_results, rpe_results))
108
108
 
109
+ def test_speed_figure_defaults_to_along_track(self):
110
+ figure = vis.ate_speed_figure([self.ate_result])
111
+ self.assertEqual(next(iter(figure.variants)), "Along-Track")
112
+ self.assertIn("ATE over Speed", [f.title for f in vis.deviation_figures([self.ate_result])])
113
+ self._render_all([figure, vis.ate_speed_figure([self.ate_result] * 2, PlotSettings(ate_unit_is_mm=True))])
114
+
115
+ def test_speed_fit(self):
116
+ speed = np.linspace(0.0, 10.0, 50)
117
+ fit = vis.speed_fit(speed, 0.2 + 0.05 * speed)
118
+ self.assertAlmostEqual(fit.offset, 0.2)
119
+ self.assertAlmostEqual(fit.slope, 0.05)
120
+ self.assertIsNone(vis.speed_fit(np.full(5, 3.0), np.arange(5.0))) # no speed variation
121
+
122
+ def test_speed_fit_recovers_time_offset(self):
123
+ from trajectopy.core.trajectory import Trajectory
124
+
125
+ # straight-ish curve driven with varying speed
126
+ t = np.arange(0.0, 60.0, 0.01)
127
+ s = 5.0 * t + 40.0 * np.sin(t / 5.0) # arc length, speed between 0 and 13 m/s
128
+ xyz = np.c_[s, 50.0 * np.sin(s / 200.0), np.zeros_like(s)]
129
+ reference = Trajectory.from_arrays(xyz, timestamps=t, name="reference")
130
+ # noisy positions stamped 20 ms too early: the evaluated trajectory is 20 ms ahead
131
+ noise = np.random.default_rng(0).normal(0.0, 0.03, xyz.shape)
132
+ shifted = Trajectory.from_arrays(xyz + noise, timestamps=t - 0.02, name="shifted")
133
+ result = ate(shifted, reference, align=False)
134
+ fit = vis.speed_fit(vis.smoothed_speed(result.trajectory), result.pos_dev_along)
135
+ self.assertAlmostEqual(fit.slope, 0.02, delta=1e-3)
136
+ self.assertAlmostEqual(fit.offset, 0.0, delta=5e-3)
137
+ # without averaging, the noisy speeds flatten the fitted line
138
+ raw = vis.speed_fit(vis.smoothed_speed(result.trajectory, window=0.0), result.pos_dev_along)
139
+ self.assertLess(raw.slope, 0.015)
140
+
109
141
  def test_deviation_figures_only_rpe(self):
110
142
  figures = vis.deviation_figures(rpe_results=[self.rpe_result])
111
143
  self.assertTrue(all(figure.title.startswith("RPE") for figure in figures))
@@ -0,0 +1 @@
1
+ __version__ = "6.2.1"
@@ -1,4 +1,5 @@
1
1
  import copy
2
+ from typing import Any
2
3
 
3
4
  import numpy as np
4
5
  from pyproj import CRS, Transformer
@@ -488,7 +489,7 @@ def _crs(epsg: int) -> CRS:
488
489
  raise PointSetError(f"Unknown EPSG code {epsg}.") from error
489
490
 
490
491
 
491
- def transform_coordinates(transformer: Transformer, xyz: np.ndarray, **options) -> np.ndarray:
492
+ def transform_coordinates(transformer: Transformer, xyz: np.ndarray, **options: Any) -> np.ndarray:
492
493
  """Transforms n x 3 coordinates with a pyproj transformer.
493
494
 
494
495
  A single point is passed as numbers: older pyproj versions treat one-element arrays as a point and convert
@@ -591,8 +591,9 @@ class Trajectory:
591
591
 
592
592
  traj_self.path_lengths = traj_self.path_lengths[mask]
593
593
 
594
- if traj_self.velocity_xyz is not None:
595
- traj_self.velocity_xyz = traj_self.velocity_xyz[mask]
594
+ # only stored velocities are masked, derived ones follow from the masked positions
595
+ if traj_self._velocity_xyz is not None:
596
+ traj_self._velocity_xyz = traj_self._velocity_xyz[mask]
596
597
 
597
598
  return traj_self
598
599
 
@@ -85,9 +85,10 @@ def _interpolate_linear(
85
85
  if trajectory.sorting == Sorting.PATH_LENGTH:
86
86
  trajectory.timestamps = np.interp(index_cropped, trajectory.path_lengths, trajectory.timestamps)
87
87
 
88
+ # velocities first, derived ones depend on the original positions
89
+ _interpolate_velocity_linear(trajectory, index_cropped)
88
90
  _interpolate_positions_linear(trajectory, index_cropped)
89
91
  _interpolate_rotations_linear(trajectory, index_cropped)
90
- _interpolate_velocity_linear(trajectory, index_cropped)
91
92
 
92
93
  if trajectory.sorting == Sorting.TIME:
93
94
  trajectory.timestamps = index_cropped
@@ -1,81 +1,87 @@
1
- """Plots of trajectories, evaluation results and alignment parameters.
2
-
3
- All plots are built with pyqtgraph and are the same in scripts and in the GUI. Install the plotting
4
- dependencies with ``pip install "trajectopy[plot]"``.
5
-
6
- Example:
7
- >>> import trajectopy as tpy
8
- >>> from trajectopy import visualization as vis
9
- >>> ate_result = tpy.ate(traj_est, traj_ref)
10
- >>> figures = vis.deviation_figures([ate_result], settings=tpy.PlotSettings(ate_unit_is_mm=True))
11
- >>> vis.export_figures(figures, "plots") # PNG files, works headless
12
- >>> vis.show(figures) # interactive window
13
- """
14
-
15
- import importlib
16
- from typing import TYPE_CHECKING, Any
17
-
18
- # Public names and the submodule defining them. They are imported on first use, so that the
19
- # Qt-independent helpers (e.g. ``trajectopy.visualization.axes``) work without the plotting extras.
20
- _EXPORTS = {
21
- "Figure": "figure",
22
- "PlotWindow": "figure",
23
- "export_figures": "figure",
24
- "show": "figure",
25
- "set_theme": "style",
26
- "alignment_figures": "plots",
27
- "ate_components_figure": "plots",
28
- "ate_correlation_figure": "plots",
29
- "ate_distribution_figure": "plots",
30
- "ate_figure": "plots",
31
- "ate_histogram_figure": "plots",
32
- "ate_map_figure": "plots",
33
- "ate_statistics_figure": "plots",
34
- "deviation_figures": "plots",
35
- "parameter_matrix_figure": "plots",
36
- "positions_figure": "plots",
37
- "rpe_figures": "plots",
38
- "rpy_figure": "plots",
39
- "trajectory_figures": "plots",
40
- "trajectory_map_figure": "plots",
41
- "xyz_figure": "plots",
42
- }
43
-
44
- __all__ = sorted(_EXPORTS)
45
-
46
-
47
- def __getattr__(name: str) -> Any:
48
- if name not in _EXPORTS:
49
- raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
50
- try:
51
- module = importlib.import_module(f"{__name__}.{_EXPORTS[name]}")
52
- except ImportError as error:
53
- raise ImportError('Plotting requires the plotting dependencies: pip install "trajectopy[plot]"') from error
54
- return getattr(module, name)
55
-
56
-
57
- def __dir__() -> list[str]:
58
- return sorted([*globals(), *_EXPORTS])
59
-
60
-
61
- if TYPE_CHECKING: # pragma: no cover - for static type checkers and IDEs
62
- from trajectopy.visualization.figure import Figure, PlotWindow, export_figures, show
63
- from trajectopy.visualization.plots import (
64
- alignment_figures,
65
- ate_components_figure,
66
- ate_correlation_figure,
67
- ate_distribution_figure,
68
- ate_figure,
69
- ate_histogram_figure,
70
- ate_map_figure,
71
- ate_statistics_figure,
72
- deviation_figures,
73
- parameter_matrix_figure,
74
- positions_figure,
75
- rpe_figures,
76
- rpy_figure,
77
- trajectory_figures,
78
- trajectory_map_figure,
79
- xyz_figure,
80
- )
81
- from trajectopy.visualization.style import set_theme
1
+ """Plots of trajectories, evaluation results and alignment parameters.
2
+
3
+ All plots are built with pyqtgraph and are the same in scripts and in the GUI. Install the plotting
4
+ dependencies with ``pip install "trajectopy[plot]"``.
5
+
6
+ Example:
7
+ >>> import trajectopy as tpy
8
+ >>> from trajectopy import visualization as vis
9
+ >>> ate_result = tpy.ate(traj_est, traj_ref)
10
+ >>> figures = vis.deviation_figures([ate_result], settings=tpy.PlotSettings(ate_unit_is_mm=True))
11
+ >>> vis.export_figures(figures, "plots") # PNG files, works headless
12
+ >>> vis.show(figures) # interactive window
13
+ """
14
+
15
+ import importlib
16
+ from typing import TYPE_CHECKING, Any
17
+
18
+ # Public names and the submodule defining them. They are imported on first use, so that the
19
+ # Qt-independent helpers (e.g. ``trajectopy.visualization.axes``) work without the plotting extras.
20
+ _EXPORTS = {
21
+ "Figure": "figure",
22
+ "PlotWindow": "figure",
23
+ "export_figures": "figure",
24
+ "show": "figure",
25
+ "set_theme": "style",
26
+ "alignment_figures": "plots",
27
+ "ate_components_figure": "plots",
28
+ "ate_correlation_figure": "plots",
29
+ "ate_distribution_figure": "plots",
30
+ "ate_figure": "plots",
31
+ "ate_histogram_figure": "plots",
32
+ "ate_map_figure": "plots",
33
+ "ate_speed_figure": "plots",
34
+ "ate_statistics_figure": "plots",
35
+ "deviation_figures": "plots",
36
+ "parameter_matrix_figure": "plots",
37
+ "positions_figure": "plots",
38
+ "rpe_figures": "plots",
39
+ "rpy_figure": "plots",
40
+ "smoothed_speed": "plots",
41
+ "speed_fit": "plots",
42
+ "trajectory_figures": "plots",
43
+ "trajectory_map_figure": "plots",
44
+ "xyz_figure": "plots",
45
+ }
46
+
47
+ __all__ = sorted(_EXPORTS)
48
+
49
+
50
+ def __getattr__(name: str) -> Any:
51
+ if name not in _EXPORTS:
52
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
53
+ try:
54
+ module = importlib.import_module(f"{__name__}.{_EXPORTS[name]}")
55
+ except ImportError as error:
56
+ raise ImportError('Plotting requires the plotting dependencies: pip install "trajectopy[plot]"') from error
57
+ return getattr(module, name)
58
+
59
+
60
+ def __dir__() -> list[str]:
61
+ return sorted([*globals(), *_EXPORTS])
62
+
63
+
64
+ if TYPE_CHECKING: # pragma: no cover - for static type checkers and IDEs
65
+ from trajectopy.visualization.figure import Figure, PlotWindow, export_figures, show
66
+ from trajectopy.visualization.plots import (
67
+ alignment_figures,
68
+ ate_components_figure,
69
+ ate_correlation_figure,
70
+ ate_distribution_figure,
71
+ ate_figure,
72
+ ate_histogram_figure,
73
+ ate_map_figure,
74
+ ate_speed_figure,
75
+ ate_statistics_figure,
76
+ deviation_figures,
77
+ parameter_matrix_figure,
78
+ positions_figure,
79
+ rpe_figures,
80
+ rpy_figure,
81
+ smoothed_speed,
82
+ speed_fit,
83
+ trajectory_figures,
84
+ trajectory_map_figure,
85
+ xyz_figure,
86
+ )
87
+ from trajectopy.visualization.style import set_theme