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
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ endif()

# Applications for typical workflow - see images/workflow.png
add_subdirectory(apps/mandeye_raw_data_viewer)
add_subdirectory(apps/mandeye_raw_data_viewer_legacy)
add_subdirectory(apps/lidar_odometry_step_1)
add_subdirectory(apps/lidar_odometry_step_1_legacy)
add_subdirectory(apps/mandeye_single_session_viewer)
add_subdirectory(apps/multi_view_tls_registration)
add_subdirectory(apps/multi_view_tls_registration_legacy)
Expand Down
26 changes: 12 additions & 14 deletions apps/lidar_odometry_step_1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ set(SOURCES
points_global_spill.h points_global_spill.cpp
raw_cloud_loader.h raw_cloud_loader.cpp
toml_io.h toml_io.cpp
"../../core/src/utils.cpp"
)

# Windows: add resource file
Expand All @@ -39,6 +38,9 @@ add_executable(
target_compile_definitions(lidar_odometry_step_1 PRIVATE WITH_GUI=1)
target_apply_hdmapping_profiler(lidar_odometry_step_1)

# lidar_odometry_gui.cpp is raylib-based (ported off GLUT; the GLUT build is kept as
# apps/lidar_odometry_step_1_legacy): <Core/raylib_utils.hpp> (core_raylib_utils) replaces
# <Core/utils.hpp> with the same names, so only the GL calls changed.
target_include_directories(
lidar_odometry_step_1
PRIVATE include
Expand All @@ -48,11 +50,6 @@ target_include_directories(
${THIRDPARTY_DIRECTORY}/glm
${EIGEN3_INCLUDE_DIR}
${THIRDPARTY_DIRECTORY}/tomlplusplus/include
${THIRDPARTY_DIRECTORY}/imgui
${THIRDPARTY_DIRECTORY}/imgui/backends
${THIRDPARTY_DIRECTORY}/ImGuizmo
${THIRDPARTY_DIRECTORY}/glew-cmake/include
${FREEGLUT_INCLUDE_DIR}
${THIRDPARTY_DIRECTORY}/json/include
${THIRDPARTY_DIRECTORY}/portable-file-dialogs-master
${LASZIP_INCLUDE_DIR}/LASzip/include
Expand All @@ -62,19 +59,18 @@ target_include_directories(

target_link_libraries(
lidar_odometry_step_1
PRIVATE
vqf
PRIVATE
# core_raylib_utils brings in core_raylib (core, raylib), raylib_widgets and rlImGui.
core_raylib_utils
imgui_raylib
imguizmo_raylib
vqf
Fusion
unordered_dense::unordered_dense
spdlog::spdlog
UTL::include
OpenGL::GLU
${FREEGLUT_LIBRARY}
${OPENGL_gl_LIBRARY}
${PLATFORM_LASZIP_LIB}
${PLATFORM_MISCELLANEOUS_LIBS}
${CORE_LIBRARIES}
${GUI_LIBRARIES})
${PLATFORM_MISCELLANEOUS_LIBS})

if(WIN32)
add_custom_command(
Expand All @@ -92,6 +88,8 @@ endif()

add_executable(
drag_folder_with_mandeye_data_and_drop_here-precision_forestry drag_folder_with_mandeye_data_and_drop_here-precision_forestry.cpp ${SOURCES}
# Still GLUT-based.
"../../core/src/utils.cpp"
)

target_compile_definitions(drag_folder_with_mandeye_data_and_drop_here-precision_forestry PRIVATE WITH_GUI=1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ void step1(const std::atomic<bool>& loPause, std::string input_folder_name)
void step2(const std::atomic<bool>& loPause)
{
double ts_failure = 0.0;
if (compute_step_2(worker_data, params, ts_failure, loProgress, loPause, full_debug_messages))
std::atomic<bool> parked{ false };
if (compute_step_2(worker_data, params, ts_failure, loProgress, loPause, full_debug_messages, parked))
step_2_done = true;
else
{
Expand Down Expand Up @@ -1603,7 +1604,8 @@ bool step2(std::vector<WorkerData>& worker_data, LidarOdometryParams& params, co
{
double ts_failure = 0.0;
std::atomic<float> loProgress;
return compute_step_2(worker_data, params, ts_failure, loProgress, loPause, full_debug_messages);
std::atomic<bool> parked{ false };
return compute_step_2(worker_data, params, ts_failure, loProgress, loPause, full_debug_messages, parked);
}

void save_results(
Expand Down
3 changes: 2 additions & 1 deletion apps/lidar_odometry_step_1/lidar_odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1282,8 +1282,9 @@ std::vector<WorkerData> run_lidar_odometry(const std::string& input_dir, LidarOd
double ts_failure = 0.0;

std::atomic<float> loProgress;
std::atomic<bool> parked{ false };

if (!compute_step_2(worker_data, params, ts_failure, loProgress, pause, true))
if (!compute_step_2(worker_data, params, ts_failure, loProgress, pause, true, parked))
{
std::cout << "Calculation failed at step 2 of lidar odometry, exiting." << std::endl;

Expand Down
Loading
Loading