simondlevy / BreezySLAM

Simple, efficient, open-source package for Simultaneous Localization and Mapping
GNU Lesser General Public License v3.0
758 stars 251 forks source link

where is `laser_t` defined? #27

Closed walchko closed 6 years ago

walchko commented 6 years ago

I have looked through the c and cpp code and can't find the definition for laser_t that you use in your constructor. Also, how does this compile without that definition?

Laser::Laser(
    int scanSize,
    float scanRateHz,
    float detection_angle_degrees,
    float distance_no_detection_mm,
    int detection_margin,
    float offset_mm
    )
{    
    this->laser = new laser_t;

    this->laser->scan_size = scanSize;
    this->laser->scan_rate_hz = scanRateHz;
    this->laser->detection_angle_degrees = detection_angle_degrees;
    this->laser->distance_no_detection_mm = distance_no_detection_mm;
    this->laser->detection_margin = detection_margin;
    this->laser->offset_mm = offset_mm;
}
simondlevy commented 6 years ago

Thanks for pointing this out Kevin. The code that references laser_t is obsolete (no longer used). I've removed it.