Skip to content

Commit 5abb5d3

Browse files
committed
cStaticLidarImporter class for raw data reading
1 parent ff988e8 commit 5abb5d3

File tree

3 files changed

+372
-541
lines changed

3 files changed

+372
-541
lines changed

MMVII/include/MMVII_StaticLidar.h

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,49 @@ namespace MMVII
1515
1616
*/
1717

18+
19+
cPt3dr cart2spher(const cPt3dr & aPtCart);
20+
cPt3dr spher2cart(const cPt3dr & aPtspher);
21+
tREAL8 toMinusPiPlusPi(tREAL8 aAng, tREAL8 aOffset = 0.);
22+
23+
24+
class cStaticLidarImporter
25+
{
26+
public:
27+
cStaticLidarImporter();
28+
void readPlyPoints(std::string aPlyFileName);
29+
void readE57Points(std::string aE57FileName);
30+
void convertToThetaPhiDist();
31+
void convertToXYZ();
32+
33+
bool HasCartesian(){ return mHasCartesian;}
34+
bool HasIntensity(){ return mHasIntensity;}
35+
bool HasSpherical(){ return mHasSpherical;}
36+
bool HasRowCol(){ return mHasRowCol;}
37+
bool NoMiss(){ return mNoMiss;}
38+
int MaxCol(){ return mMaxCol;}
39+
int MaxLine(){ return mMaxLine;}
40+
tREAL8 DistMinToExist(){ return mDistMinToExist;}
41+
42+
// line and col for each point
43+
std::vector<int> mVectPtsLine;
44+
std::vector<int> mVectPtsCol;
45+
// points
46+
std::vector<cPt3dr> mVectPtsXYZ;
47+
std::vector<tREAL8> mVectPtsIntens;
48+
std::vector<cPt3dr> mVectPtsTPD;
49+
protected:
50+
// data
51+
bool mHasCartesian; // in original read data
52+
bool mHasIntensity; // in original read data
53+
bool mHasSpherical; // in original read data
54+
bool mHasRowCol; // in original read data
55+
int mMaxCol, mMaxLine;
56+
57+
bool mNoMiss; // seems to be full
58+
tREAL8 mDistMinToExist;
59+
};
60+
1861
class cStaticLidar: public cSensorCamPC
1962
{
2063
friend class cAppli_ImportStaticScan;

0 commit comments

Comments
 (0)