Flyby SDK v0.3.0
Loading...
Searching...
No Matches
lrf.h
Go to the documentation of this file.
1
9#pragma once
10
12#include <flyby/util/error.h>
13
14namespace flyby {
20 class LRFInterface : public Component {
21 public:
22 [[nodiscard]] virtual double get_range() const = 0;
23 };
24
32 class LRF : public LRFInterface {
33 public:
37 LRF() = default;
38
39 ~LRF() override = default;
40
48 [[nodiscard]] double get_range() const override {
50 }
51 };
52}
The base class for laser range finders.
Definition lrf.h:32
double get_range() const override
Returns the current range reading.
Definition lrf.h:48
LRF()=default
The base constructor.
An error representing a function that is not implemented.
Definition error.h:17