iCub-main
FakeSimulationBundle.cpp
Go to the documentation of this file.
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 /*
4 * Copyright (C) 2010 RobotCub Consortium, European Commission FP6 Project IST-004370
5 * Author: Paul Fitzpatrick, Vadim Tikhanoff
6 * email: paulfitz@alum.mit.edu, vadim.tikhanoff@iit.it
7 * website: www.robotcub.org
8 * Permission is granted to copy, distribute, and/or modify this program
9 * under the terms of the GNU General Public License, version 2 or any
10 * later version published by the Free Software Foundation.
11 *
12 * A copy of the license can be found at
13 * http://www.robotcub.org/icub/license/gpl.txt
14 *
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18 * Public License for more details
19 */
20 
21 #include "FakeLogicalJoints.h"
22 #include "FakeSimulationBundle.h"
23 
24 #include "FakeWorldManager.h"
25 #include "FakeSimulation.h"
26 
28  return true;
29 }
30 
32  config.setFlags();
33  return new FakeLogicalJoints;
34 }
35 
37  return new FakeWorldManager;
38 }
39 
41  return new FakeSimulation;
42 }
43 
45  return true;
46 }
47 
48 
virtual LogicalJoints * createJoints(RobotConfig &config)
virtual WorldManager * createWorldManager(RobotConfig &config)
virtual Simulation * createSimulation(RobotConfig &config)
Route control for the robots controlled joints to their implementation.
Definition: LogicalJoints.h:31
void setFlags()
Definition: RobotConfig.cpp:37