6 #include "Simulation.h" 116 std::shared_ptr<Survey> survey,
117 const std::string outputPath,
136 int legCurrentProgress,
138 double legElapsedLength
161 void startLeg(
unsigned int legIndex,
bool manual);
206 void stopAndTurn(
unsigned int legIndex, std::shared_ptr<Leg> leg);
double getLegProgress()
Obtain current leg progress.
Definition: SurveyPlayback.h:248
void shutdown()
Handle survey playback shutdown.
Definition: SurveyPlayback.cpp:306
double getProgress()
Obtain simulation progress.
Definition: SurveyPlayback.h:242
std::string mFormatString
Output format string. It is not used at the moment and might be removed in the future.
Definition: SurveyPlayback.h:50
long getRemainingTime()
Obtain expected remaining time.
Definition: SurveyPlayback.h:266
long legElapsedTime_ms
Elapsed time (milliseconds) since current leg started.
Definition: SurveyPlayback.h:90
std::string mOutputFilePathString
Path to output file.
Definition: SurveyPlayback.h:43
double elapsedLength
Currently elapsed length. It can be understood as the summation of all traveled legs.
Definition: SurveyPlayback.h:66
double progress
Survey simulation progress tracking.
Definition: SurveyPlayback.h:70
Class representing a simulation.
Definition: Simulation.h:17
long legRemainingTime_ms
Expected remaining time (milliseconds) for current leg completion.
Definition: SurveyPlayback.h:94
void estimateTime(int legCurrentProgress, bool onGround, double legElapsedLength)
Time estimation for the entire simulation and current leg. NOTICE this function is called from trackP...
Definition: SurveyPlayback.cpp:91
long remainingTime_ms
Expected remaining time (milliseconds) for survey simulation.
Definition: SurveyPlayback.h:86
std::string getCurrentOutputPath()
Obtain current output path.
Definition: SurveyPlayback.cpp:191
int getNumEffectiveLegs()
Obtain the number of effective legs.
Definition: SurveyPlayback.h:254
long legStartTime_ns
Time (nanoseconds) when the leg started.
Definition: SurveyPlayback.h:78
long getLegRemainingTime()
Obtain current leg expected remaining time.
Definition: SurveyPlayback.h:277
void stopAndTurn(unsigned int legIndex, std::shared_ptr< Leg > leg)
Perform stop and turn operation to advance to next leg.
Definition: SurveyPlayback.cpp:321
bool zipOutput
Flag to specify if output must be zipped (true) or not (false)
Definition: SurveyPlayback.h:32
int getCurrentLegIndex()
Obtain current leg index.
Definition: SurveyPlayback.cpp:180
void startLeg(unsigned int legIndex, bool manual)
Start specified leg.
Definition: SurveyPlayback.cpp:220
std::string getLegOutputPrefix()
Obtain current leg output prefix.
Definition: SurveyPlayback.cpp:184
std::string getTrajectoryOutputPath()
Obtain current trajectory output path.
Definition: SurveyPlayback.cpp:203
long long getElapsedTime()
Obtain elapsed time.
Definition: SurveyPlayback.h:260
std::string milliToString(long millis)
Translate milliseconds to time stamp string.
Definition: SurveyPlayback.cpp:311
bool mLegStarted
Flag to specify if leg has been started (true) or not (false)
Definition: SurveyPlayback.h:23
bool exportToFile
Flag specifying if simulation output must be exported to a file (true) or not (false) ...
Definition: Simulation.h:94
void prepareOutput()
Prepare output for current leg (measurements, trajectory and fullwave)
Definition: SurveyPlayback.cpp:354
Survey playback class, used to extend simulation functionalities so it can be controlled.
Definition: SurveyPlayback.h:15
void startNextLeg(bool manual)
Start next leg.
Definition: SurveyPlayback.cpp:289
int numEffectiveLegs
Number of effective legs.
Definition: SurveyPlayback.h:61
virtual void doSimStep()
Perform computations for current simulation step.
Definition: SurveyPlayback.cpp:153
const std::string outputPath
Root output path.
Definition: SurveyPlayback.h:56
void clearPointcloudFile()
Clear point cloud file for current leg.
Definition: SurveyPlayback.cpp:390
std::shared_ptr< Leg > getCurrentLeg()
Obtain current leg.
Definition: SurveyPlayback.cpp:171
void onLegComplete()
Handle leg completion.
Definition: SurveyPlayback.cpp:211
long long getLegElapsedTime()
Obtain current leg elapsed time.
Definition: SurveyPlayback.h:272
double legProgress
Progress tracking for current leg.
Definition: SurveyPlayback.h:74
bool lasOutput
Flag to specify if LAS format must be used for the output (true) or not (false)
Definition: SurveyPlayback.h:28
SurveyPlayback(std::shared_ptr< Survey > survey, const std::string outputPath, size_t numThreads, bool lasOutput, bool zipOutput, bool exportToFile=true)
Survey playback constructor.
Definition: SurveyPlayback.cpp:23
long elapsedTime_ms
Elapsed time (milliseconds) since survey simulation started.
Definition: SurveyPlayback.h:82
void trackProgress()
Progress tracking and time estimation.
Definition: SurveyPlayback.cpp:133
std::shared_ptr< Survey > mSurvey
The survey itself.
Definition: SurveyPlayback.h:38