Flyby SDK
v0.3.0
Loading...
Searching...
No Matches
lrf.h
Go to the documentation of this file.
1
9
#pragma once
10
11
#include <
flyby/payload/component/component.h
>
12
#include <
flyby/util/error.h
>
13
14
namespace
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
{
49
throw
not_implemented_error
();
50
}
51
};
52
}
flyby::LRF
The base class for laser range finders.
Definition
lrf.h:32
flyby::LRF::get_range
double get_range() const override
Returns the current range reading.
Definition
lrf.h:48
flyby::LRF::LRF
LRF()=default
The base constructor.
flyby::not_implemented_error
An error representing a function that is not implemented.
Definition
error.h:17
component.h
error.h
include
flyby
payload
component
lrf.h
Generated by
1.12.0