Extends the PSSource class to provide plume generation based on .pslog files. More...
#include <PSSources.h>
Public Member Functions | |
int | cleanup () |
Function for cleaning up the class. | |
int | generatePoints () |
Function for generating plume points based on a .pslog file. | |
int | getChemicalReading (PSPoint3d *point, PSOdorData *odor_data) |
Function for reading a single chemical point based on the robot current position. | |
PSLog () | |
PSLog constructor. This is the class constructor. | |
int | setup () |
Function for setting up the class. | |
~PSLog () | |
PSLog destructor. | |
Public Attributes | |
double | cellSize |
int | currentFrame |
FILE * | logFile |
std::string | logFilePath |
int | maxPointsPerCell |
int | numOfFrames |
int | period |
Private Attributes | |
std::vector< PSFramePoint > | frame |
Extends the PSSource class to provide plume generation based on .pslog files.
Definition at line 414 of file PSSources.h.
int plumesim::PSLog::cleanup | ( | ) | [virtual] |
Function for cleaning up the class.
none. |
Reimplemented from plumesim::PSSource.
int plumesim::PSLog::generatePoints | ( | ) | [virtual] |
Function for generating plume points based on a .pslog file.
none. |
Reimplemented from plumesim::PSSource.
int plumesim::PSLog::getChemicalReading | ( | PSPoint3d * | point, |
PSOdorData * | odor_data | ||
) | [virtual] |
Function for reading a single chemical point based on the robot current position.
point | A 3D point containning the current position of the robot. |
odor_data | The odor data structure where the result is written. |
Reimplemented from plumesim::PSSource.
int plumesim::PSLog::setup | ( | ) | [virtual] |
Function for setting up the class.
none. |
Reimplemented from plumesim::PSSource.
double plumesim::PSLog::cellSize |
Cell size of the grid in meters.
Definition at line 479 of file PSSources.h.
Current index.
Definition at line 478 of file PSSources.h.
std::vector<PSFramePoint> plumesim::PSLog::frame [private] |
Current frame.
Definition at line 484 of file PSSources.h.
FILE* plumesim::PSLog::logFile |
Pointer to the log file.
Definition at line 473 of file PSSources.h.
std::string plumesim::PSLog::logFilePath |
Path to the log file.
Definition at line 474 of file PSSources.h.
Maximum number of points to be drawn for each cell.
Definition at line 480 of file PSSources.h.
Number of frames.
Definition at line 477 of file PSSources.h.
Original period in ms.
Definition at line 476 of file PSSources.h.