Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ include(cmake/dependencies.cmake)
# e.g. core/include/Core/raylib_render.hpp) that links against them. Required
# unconditionally: apps/multi_view_tls_registration (step2) is raylib-based.
include(cmake/raylib.cmake)
include(cmake/step1_run_report.cmake)

# ============================================================================
# Core Library
Expand Down
6 changes: 4 additions & 2 deletions apps/lidar_odometry_step_1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ target_include_directories(
target_link_libraries(
lidar_odometry_step_1
PRIVATE
step1_run_report
# core_raylib_utils brings in core_raylib (core, raylib), raylib_widgets and rlImGui.
core_raylib_utils
imgui_raylib
Expand Down Expand Up @@ -118,7 +119,8 @@ target_include_directories(

target_link_libraries(
drag_folder_with_mandeye_data_and_drop_here-precision_forestry
PRIVATE
PRIVATE
step1_run_report
vqf
Fusion
unordered_dense::unordered_dense
Expand Down Expand Up @@ -148,4 +150,4 @@ endif()

hdmapping_install_app(
lidar_odometry_step_1
drag_folder_with_mandeye_data_and_drop_here-precision_forestry)
drag_folder_with_mandeye_data_and_drop_here-precision_forestry)
164 changes: 146 additions & 18 deletions apps/lidar_odometry_step_1/lidar_odometry.cpp

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions apps/lidar_odometry_step_1/lidar_odometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <sstream>

#include "lidar_odometry_utils.h"
#include "run_report.h"
#include "toml_io.h"
#include <HDMapping/HDMAPPING_ConfigureInfo.hpp>
#include <laszip/laszip_api.h>
Expand Down Expand Up @@ -36,12 +37,16 @@ void remove_cache(const LidarOdometryParams& params);
void run_consistency(std::vector<WorkerData>& worker_data, const LidarOdometryParams& params);
void filter_reference_buckets(LidarOdometryParams& params);
void load_reference_point_clouds(const std::vector<std::string>& input_file_names, LidarOdometryParams& params);
void save_result(std::vector<WorkerData>& worker_data, LidarOdometryParams& params, fs::path outwd, double elapsed_seconds);
void save_parameters_toml(const LidarOdometryParams& params, const fs::path& outwd, double elapsed_seconds);
void save_processing_results_json(const LidarOdometryParams& params, const fs::path& outwd, double elapsed_seconds);
bool save_result(std::vector<WorkerData>& worker_data, LidarOdometryParams& params, fs::path outwd, double elapsed_seconds);
bool save_parameters_toml(const LidarOdometryParams& params, const fs::path& outwd, double elapsed_seconds);
bool save_processing_results_json(const LidarOdometryParams& params, const fs::path& outwd, double elapsed_seconds);
void save_trajectory_to_ascii(std::vector<WorkerData>& worker_data, std::string output_file_name);
std::string save_results_automatic(
LidarOdometryParams& params, std::vector<WorkerData>& worker_data, const std::string& working_directory, double elapsed_seconds);
std::vector<WorkerData> run_lidar_odometry(const std::string& input_dir, LidarOdometryParams& params);
// bool SaveParametersToTomlFile(const std::string &filepath, const LidarOdometryParams &params);
// bool LoadParametersFromTomlFile(const std::string &filepath, LidarOdometryParams &params);

bool save_failed_run_report(LidarOdometryParams& params, const fs::path& output, const std::string& error);

bool save_run_status_report(LidarOdometryParams& params, const fs::path& output, const std::string& status, const std::string& error);
Loading
Loading