|
| SurveyPlayback (std::shared_ptr< Survey > survey, const std::string outputPath, size_t numThreads, bool lasOutput, bool zipOutput, bool exportToFile=true) |
| Survey playback constructor. More...
|
|
void | estimateTime (int legCurrentProgress, bool onGround, double legElapsedLength) |
| Time estimation for the entire simulation and current leg. NOTICE this function is called from trackProgress. More...
|
|
void | trackProgress () |
| Progress tracking and time estimation. More...
|
|
virtual void | doSimStep () |
| Perform computations for current simulation step.
|
|
void | onLegComplete () |
| Handle leg completion.
|
|
void | startLeg (unsigned int legIndex, bool manual) |
| Start specified leg. More...
|
|
void | prepareOutput () |
| Prepare output for current leg (measurements, trajectory and fullwave) More...
|
|
void | clearPointcloudFile () |
| Clear point cloud file for current leg.
|
|
void | startNextLeg (bool manual) |
| Start next leg. More...
|
|
void | shutdown () |
| Handle survey playback shutdown. More...
|
|
std::string | milliToString (long millis) |
| Translate milliseconds to time stamp string. More...
|
|
void | stopAndTurn (unsigned int legIndex, std::shared_ptr< Leg > leg) |
| Perform stop and turn operation to advance to next leg. More...
|
|
std::shared_ptr< Leg > | getCurrentLeg () |
| Obtain current leg. More...
|
|
int | getCurrentLegIndex () |
| Obtain current leg index. More...
|
|
std::string | getLegOutputPrefix () |
| Obtain current leg output prefix. More...
|
|
std::string | getCurrentOutputPath () |
| Obtain current output path. More...
|
|
std::string | getTrajectoryOutputPath () |
| Obtain current trajectory output path. More...
|
|
double | getProgress () |
| Obtain simulation progress. More...
|
|
double | getLegProgress () |
| Obtain current leg progress. More...
|
|
int | getNumEffectiveLegs () |
| Obtain the number of effective legs. More...
|
|
long long | getElapsedTime () |
| Obtain elapsed time. More...
|
|
long | getRemainingTime () |
| Obtain expected remaining time. More...
|
|
long long | getLegElapsedTime () |
| Obtain current leg elapsed time. More...
|
|
long | getLegRemainingTime () |
| Obtain current leg expected remaining time. More...
|
|
| Simulation (unsigned numThreads, double deviceAccuracy) |
| Simulation constructor. More...
|
|
void | start () |
| Start the simmulation.
|
|
void | stop () |
| Stop the simulation. More...
|
|
void | pause (bool pause) |
| Pause or unpause the simulation. More...
|
|
void | shutdown () |
| Handle simulation shutdown.
|
|
void | setSimSpeedFactor (double factor) |
| Set the simulation speed factor. More...
|
|
double | getSimSpeedFactor () |
| Obtain simulation speed factor. More...
|
|
void | setScanner (std::shared_ptr< Scanner > scanner) |
| Set scanner for the simulation. More...
|
|
std::shared_ptr< Scanner > | getScanner () |
| Obtain simulation scanner. More...
|
|
bool | isPaused () |
| Check if simulation is paused (true) or not (false) More...
|
|
bool | isStopped () |
| Check if simulation is stopped (true) or not (false) More...
|
|
size_t | getSimFrequency () |
| Obtain simulation frequency. More...
|
|
void | setSimFrequency (size_t simFrequency) |
| Set simulation frequency. More...
|
|
|
bool | mLegStarted = false |
| Flag to specify if leg has been started (true) or not (false)
|
|
bool | lasOutput = false |
| Flag to specify if LAS format must be used for the output (true) or not (false)
|
|
bool | zipOutput = false |
| Flag to specify if output must be zipped (true) or not (false)
|
|
std::shared_ptr< Survey > | mSurvey |
| The survey itself. More...
|
|
std::string | mOutputFilePathString = "" |
| Path to output file.
|
|
std::string | mFormatString = "%03d" |
| Output format string. It is not used at the moment and might be removed in the future. More...
|
|
unsigned int | mCurrentLegIndex = 0 |
| Index of leg at current simulation stage.
|
|
bool | exportToFile = true |
| Flag specifying if simulation output must be exported to a file (true) or not (false)
|
|
bool | exitAtEnd = false |
| Flag specifying if simulation must end when current leg has been completed (true) or not (false)
|
|
bool | finished = false |
| Flag specifying if simulation has finished (true) or not (false)
|
|
std::shared_ptr< MeasurementsBuffer > | mbuffer = NULL |
|
std::shared_ptr< SimulationCycleCallback > | callback = nullptr |
|
|
unsigned | numSysThreads = std::thread::hardware_concurrency() |
| Number of threads available in the system.
|
|
thread_pool | threadPool |
| Thread pool. More...
|
|
double | mSimSpeedFactor = 1 |
| Simulation speed factor.
|
|
std::shared_ptr< Scanner > | mScanner = NULL |
| Scanner used by the simulation. More...
|
|
size_t | simFrequency = 0 |
| Simulation frequency. If it is 0 then no pause is possible.
|
|
std::mutex | mutex |
| Mutex to handle simulation pause and iterations on a multi threading context.
|
|
std::condition_variable | condvar |
| Condition variable tu handle simulation iterations on a multi threading context.
|
|
std::shared_ptr< std::unique_lock< std::mutex > > | pauseLock = nullptr |
| Shared pointer to the lock used to handle the mutex for simulation pause purposes. More...
|
|
bool | mStopped = false |
| Flag specifying if the simulation has been stopped (true) or not (false)
|
|
bool | mPaused = false |
| Flag specifying if the simulation has been paused (true) or not (false)
|
|
long | timeStart_ms = 0 |
| Time corresponding to simulation start (milliseconds)
|
|
static const long | NANOSECONDS_PER_SECOND = 1000000000 |
| How many nanoseconds there are in a second.
|
|
Survey playback class, used to extend simulation functionalities so it can be controlled.
- See also
- Simulation