Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
teachable.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005-2011 LpzRobots development team *
3  * Georg Martius <georg dot martius at web dot de> *
4  * Frank Guettler <guettler at informatik dot uni-leipzig dot de *
5  * Frank Hesse <frank at nld dot ds dot mpg dot de> *
6  * Ralf Der <ralfder at mis dot mpg dot de> *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the *
20  * Free Software Foundation, Inc., *
21  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
22  * *
23  ***************************************************************************/
24 #ifndef __TEACHABLE_H
25 #define __TEACHABLE_H
26 
27 #include <selforg/matrix.h>
28 
29 /**
30  Interface for teachable controller.
31 */
32 class Teachable {
33 public:
34 
35  virtual ~Teachable() {}
36 
37  /** The given motor teaching signal is used for this timestep.
38  It is used as a feed forward teaching signal for the controller.
39  Please note, that the teaching signal has to be given each timestep
40  for a continuous teaching process.
41  @param teaching: matrix with dimensions (motornumber,1)
42  */
43  virtual void setMotorTeaching(const matrix::Matrix& teaching) = 0;
44 
45  /** The given sensor teaching signal (distal learning) is used for this timestep.
46  The belonging motor teachung signal is calculated by the inverse model.
47  See setMotorTeaching
48  @param teaching: matrix with dimensions (motorsensors,1)
49  */
50  virtual void setSensorTeaching(const matrix::Matrix& teaching) = 0;
51 
52  /// returns the last motor values (useful for cross motor coupling)
53  virtual matrix::Matrix getLastMotorValues() = 0;
54 
55  /// returns the last sensor values (useful for cross sensor coupling)
56  virtual matrix::Matrix getLastSensorValues() = 0;
57 };
58 
59 
60 #endif
Matrix type.
Definition: matrix.h:65
Interface for teachable controller.
Definition: teachable.h:32
virtual matrix::Matrix getLastSensorValues()=0
returns the last sensor values (useful for cross sensor coupling)
virtual void setMotorTeaching(const matrix::Matrix &teaching)=0
The given motor teaching signal is used for this timestep.
virtual matrix::Matrix getLastMotorValues()=0
returns the last motor values (useful for cross motor coupling)
virtual void setSensorTeaching(const matrix::Matrix &teaching)=0
The given sensor teaching signal (distal learning) is used for this timestep.
virtual ~Teachable()
Definition: teachable.h:35