Main Page
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
b
c
d
e
g
i
j
l
m
n
o
p
r
s
t
u
w
~
Variables
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
s
t
u
v
w
Typedefs
Files
File List
File Members
All
a
b
c
e
k
l
m
n
p
r
s
t
u
Functions
Variables
Typedefs
Macros
scripts
base_controller
lib
motor_controller_interface
motor_controller_interface.h
Go to the documentation of this file.
1
#ifndef MOTOR_CONTROLLER_INTF_H
2
#define MOTOR_CONTROLLER_INTF_H
3
4
/*
5
* Author: Franz Pucher
6
*/
7
8
namespace
diffbot
{
9
16
template
<
typename
TMotorDriver>
17
class
MotorControllerIntf
18
{
19
public
:
20
31
virtual
void
setSpeed
(
int
value) = 0;
32
33
protected
:
34
// Generic motor driver
35
TMotorDriver
motor_driver_
;
36
};
37
}
38
39
#endif // MOTOR_CONTROLLER_INTF_H
diffbot
Definition:
base_controller.h:23
diffbot::MotorControllerIntf::setSpeed
virtual void setSpeed(int value)=0
Set the speed of the a motor.
diffbot::MotorControllerIntf::motor_driver_
TMotorDriver motor_driver_
Definition:
motor_controller_interface.h:35
diffbot::MotorControllerIntf
Abstract base interface class for a motor controller.
Definition:
motor_controller_interface.h:17
diffbot_base
Author(s):
autogenerated on Thu Sep 7 2023 02:35:23