~robot3d-team/robot3d/trunk

« back to all changes in this revision

Viewing changes to inc/srCore/robotCreator.h

  • Committer: Anne van Rossum
  • Date: 2010-08-10 15:58:55 UTC
  • Revision ID: anne@gamix-20100810155855-kve7x2vwouagdij9
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @file RobotCreator.h
 
3
 * @brief 
 
4
 *
 
5
 * This file RobotCreator.h is created at Almende B.V. It is open-source software and part
 
6
 * of the Common Hybrid Agent Platform (CHAP). A toolbox with a lot of open-source tools.
 
7
 * Ranging from thread pools, and TCP/IP components to control architectures and learning
 
8
 * algorithms. This software is published under the GNU Lesser General Public license,
 
9
 * but the software is not allowed to be used for military use, within the bio-industry
 
10
 * or for animal experimentation.
 
11
 *
 
12
 * @author  Anne C. van Rossum
 
13
 * @date    Jul 13, 2010
 
14
 * @project Replicator FP7
 
15
 * @company Almende B.V.
 
16
 * @case        
 
17
 */
 
18
 
 
19
 
 
20
#ifndef ROBOTCREATOR_H_
 
21
#define ROBOTCREATOR_H_
 
22
 
 
23
// General files
 
24
#include <srCore/singleton.h>
 
25
#include <srCore/xmlConfig.h>
 
26
 
 
27
namespace srCore {
 
28
 
 
29
/**
 
30
 * \addtogroup Default
 
31
 * @{
 
32
 */
 
33
 
 
34
/* **************************************************************************************
 
35
 * Interface of RobotCreator
 
36
 * **************************************************************************************/
 
37
 
 
38
/**
 
39
 * Creates robots and adds them to the game manager.
 
40
 */
 
41
class RobotCreator {
 
42
private:
 
43
 
 
44
protected:
 
45
 
 
46
public:
 
47
        //! Constructor
 
48
        RobotCreator();
 
49
 
 
50
        //! Destructor
 
51
        virtual ~RobotCreator();
 
52
 
 
53
        //! Adds robot to the game manager
 
54
        void addRobotToGM(int id, const RobotInitData &parameters, float height);
 
55
};
 
56
 
 
57
///@}
 
58
 
 
59
 
 
60
typedef Singleton<RobotCreator> SimulationRobotCreator;
 
61
 
 
62
}
 
63
 
 
64
#endif /* ROBOTCREATOR_H_ */