Added default constructor for LidarDetection

This commit is contained in:
Daniel Santos-Olivan 2020-07-07 18:35:22 +02:00 committed by Marc Garcia Puig
parent 1926b68e70
commit 0d6a2ea184
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,8 @@ namespace s11n {
geom::Location point;
float intensity;
LidarDetection() :
point(0.0f, 0.0f, 0.0f), intensity{0.0f} { }
LidarDetection(float x, float y, float z, float intensity) :
point(x, y, z), intensity{intensity} { }
LidarDetection(geom::Location p, float intensity) :
@ -65,7 +67,6 @@ namespace s11n {
};
public:
explicit LidarMeasurement(uint32_t ChannelCount = 0u)
: _header(Index::SIZE + ChannelCount, 0u) {
_header[Index::ChannelCount] = ChannelCount;