iCub-main
icub-main
src
simulators
iCubSimulation
fake
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
27
bool
FakeSimulationBundle::onBegin
() {
28
return
true
;
29
}
30
31
LogicalJoints
*
FakeSimulationBundle::createJoints
(
RobotConfig
& config) {
32
config.
setFlags
();
33
return
new
FakeLogicalJoints
;
34
}
35
36
WorldManager
*
FakeSimulationBundle::createWorldManager
(
RobotConfig
& config) {
37
return
new
FakeWorldManager
;
38
}
39
40
Simulation
*
FakeSimulationBundle::createSimulation
(
RobotConfig
& config) {
41
return
new
FakeSimulation
;
42
}
43
44
bool
FakeSimulationBundle::onEnd
() {
45
return
true
;
46
}
47
48
FakeLogicalJoints.h
FakeSimulationBundle.h
FakeSimulation.h
FakeWorldManager.h
FakeLogicalJoints
Definition:
FakeLogicalJoints.h:29
FakeSimulationBundle::createJoints
virtual LogicalJoints * createJoints(RobotConfig &config)
Definition:
FakeSimulationBundle.cpp:31
FakeSimulationBundle::createWorldManager
virtual WorldManager * createWorldManager(RobotConfig &config)
Definition:
FakeSimulationBundle.cpp:36
FakeSimulationBundle::createSimulation
virtual Simulation * createSimulation(RobotConfig &config)
Definition:
FakeSimulationBundle.cpp:40
FakeSimulationBundle::onEnd
virtual bool onEnd()
Definition:
FakeSimulationBundle.cpp:44
FakeSimulationBundle::onBegin
virtual bool onBegin()
Definition:
FakeSimulationBundle.cpp:27
FakeSimulation
Definition:
FakeSimulation.h:28
FakeWorldManager
Definition:
FakeWorldManager.h:26
LogicalJoints
Route control for the robots controlled joints to their implementation.
Definition:
LogicalJoints.h:31
RobotConfig
Definition:
RobotConfig.h:55
RobotConfig::setFlags
void setFlags()
Definition:
RobotConfig.cpp:37
Simulation
Definition:
Simulation.h:28
WorldManager
Definition:
WorldManager.h:28
Generated on Tue Jan 31 2023 13:24:10 for iCub-main by
1.9.1