Loading...
Searching...
No Matches
Command-line entry point for completed-session PANGEA mapping.
More...
#include "application_runtime.h"
#include "version.h"
#include "map_config.h"
#include "ortho_map.h"
#include "map_exif.h"
#include "map_writer.h"
#include "map_progress.h"
#include "jpeg_encoder.h"
#include "map_resources.h"
#include <atomic>
#include <chrono>
#include <thread>
#include <functional>
#include <cstring>
#include <sys/file.h>
#include <sys/types.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include "map_pipeline.h"
#include "xyz_export.h"
#include "great_session.h"
Go to the source code of this file.
|
| using | Clock = std::chrono::steady_clock |
|
| static double | processCpuSeconds () |
| | Read cumulative CPU time across the mapping process's threads.
|
| static bool | isStopping () |
| | Check cancellation at a cooperative mapping boundary.
|
| static void | signalHandler (int sig) |
| | Record a stop request without performing cleanup in signal context.
|
| static fs::path | executablePath () |
| | Resolve the running executable independently of the launch directory.
|
| static fs::path | defaultIni () |
| | Locate the default configuration alongside the executable.
|
| static double | seconds (Clock::duration duration) |
| | Convert a monotonic interval without truncating fractional seconds.
|
| static std::string | sessionName () |
| | Create a readable, millisecond-resolution session label.
|
| static void | checkInputs (const pangea_survey::MapConfig &config) |
| | Validate a source session and print its output layout offline.
|
| int | pangeaSurveyMain (int argc, char **argv) |
Command-line entry point for completed-session PANGEA mapping.
Survey processing consumes saved photos and validated session metadata; it is not part of the camera trigger path. Separate per-user locks exclude both another survey and the live PANGEA worker so two independent consumers cannot compete for memory or checkpoint files.
Definition in file survey.cpp.
◆ Clock
| using Clock = std::chrono::steady_clock |
◆ checkInputs()
Validate a source session and print its output layout offline.
- Parameters
-
| config | Requested map and source configuration. |
For XYZ output, validate the internal render grid separately from the published tile plan; they need not share pixel dimensions.
- Exceptions
-
| std::runtime_error | If source admission or layout validation fails. |
Definition at line 188 of file survey.cpp.
◆ defaultIni()
Locate the default configuration alongside the executable.
- Returns
- Candidate path; does not check whether the INI exists.
Definition at line 96 of file survey.cpp.
◆ executablePath()
| fs::path executablePath |
( |
| ) |
|
|
static |
Resolve the running executable independently of the launch directory.
- Returns
- Canonical Linux executable path.
- Exceptions
-
| std::filesystem::filesystem_error | If procfs resolution fails. |
Definition at line 91 of file survey.cpp.
◆ isStopping()
Check cancellation at a cooperative mapping boundary.
- Returns
- True when a stop signal has been recorded.
Wait out operator pauses and throttle against cumulative CPU time. Poll in short sleeps so cancellation remains responsive while paused.
Definition at line 68 of file survey.cpp.
◆ pangeaSurveyMain()
| int pangeaSurveyMain |
( |
int | argc, |
|
|
char ** | argv ) |
Parse worker options, install signal/resource policy, and run one map session.
- Parameters
-
| argc | Argument count. |
| argv | Input/output paths and optional watch, camera, and resource settings. |
- Returns
- Zero on successful completion, otherwise one with a diagnostic.
Definition at line 204 of file survey.cpp.
◆ processCpuSeconds()
| double processCpuSeconds |
( |
| ) |
|
|
static |
Read cumulative CPU time across the mapping process's threads.
- Returns
- CPU seconds, independent of elapsed wall time.
- Exceptions
-
| std::runtime_error | If the process CPU clock cannot be read. |
Definition at line 58 of file survey.cpp.
◆ seconds()
| double seconds |
( |
Clock::duration | duration | ) |
|
|
static |
Convert a monotonic interval without truncating fractional seconds.
- Parameters
-
- Returns
- Interval in seconds.
Definition at line 100 of file survey.cpp.
◆ sessionName()
| std::string sessionName |
( |
| ) |
|
|
static |
Create a readable, millisecond-resolution session label.
- Returns
- Local wall-clock label, not a uniqueness guarantee.
Definition at line 103 of file survey.cpp.
◆ signalHandler()
| void signalHandler |
( |
int | sig | ) |
|
|
static |
Record a stop request without performing cleanup in signal context.
- Parameters
-
| sig | Signal number; all registered stop signals have the same effect. |
Definition at line 84 of file survey.cpp.
◆ activePauseFile
◆ liveCpuPercent
◆ liveCpuStarted
| double liveCpuStarted = 0 |
|
static |
◆ liveStarted
| Clock::time_point liveStarted |
|
static |
◆ resources
◆ stopping
| std::atomic<sig_atomic_t> stopping {0} |
|
static |