Revision 0c8d22a5 src/mouth_state.cpp

View differences:

src/mouth_state.cpp
25 25
* Excellence Initiative.
26 26
*/
27 27

  
28
#include "mouth_state.h"
29 28
#include <stdio.h>
30 29

  
31
using namespace humotion;
32
using namespace std;
30
#include "humotion/mouth_state.h"
33 31

  
34
MouthState::MouthState(){
35
    opening_left=0.0;
36
    opening_center=0.0;
37
    opening_right=0.0;
32
using humotion::MouthState;
38 33

  
39
    position_left=0.0;
40
    position_center=0.0;
41
    position_right=0.0;
42
}
34
MouthState::MouthState() {
35
    opening_left = 0.0;
36
    opening_center = 0.0;
37
    opening_right = 0.0;
43 38

  
44
MouthState::~MouthState(){
39
    position_left = 0.0;
40
    position_center = 0.0;
41
    position_right = 0.0;
45 42
}
46 43

  
44
MouthState::~MouthState() {
45
}
47 46

  
48

  
49
void MouthState::dump(){
50
    //dump values to stdout:
51
    printf("> MOUTH STATE: %4.2f (%4.2f) %4.2f (%4.2f) %4.2f (%4.2f)  [= pos (opening)]\n", position_left,opening_left,position_center,opening_center,position_right,opening_right);
47
void MouthState::dump() {
48
    // dump values to stdout
49
    printf("> MOUTH STATE: %4.2f (%4.2f) %4.2f (%4.2f) %4.2f (%4.2f)  [= pos (opening)]\n",
50
           position_left, opening_left,
51
           position_center, opening_center,
52
           position_right, opening_right);
52 53
}

Also available in: Unified diff