1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* @file GroundContactModel.h
*
* @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a>
*/

#ifndef _GroundContactModel_h_
#define _GroundContactModel_h_

#include "Tools/DataStructures/Serializer.h"

class GroundContactModel
{
public:
  enum Foot {
    LEFT,
    RIGHT,
    NONE
  };

  GroundContactModel() : leftGroundContact(false), rightGroundContact(false) {}<--- Member variable 'GroundContactModel::supportFoot' is not initialized in the constructor.

  bool leftGroundContact;
  bool rightGroundContact;
  Foot supportFoot;
};

namespace naoth
{
  template<>
  class Serializer<GroundContactModel>
  {
  public:
    static void serialize(const GroundContactModel& representation,
                          std::ostream& stream);
    static void deserialize(std::istream& stream,
                            GroundContactModel& representation);
  };
}


#endif // _GroundContactModel_h_