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>
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