Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
z
+
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
x
y
+
Typedefs
a
b
c
d
f
h
i
n
o
p
q
r
s
t
u
+
Enumerations
a
c
d
e
f
i
m
n
p
q
r
s
t
u
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
w
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Related Functions
c
e
h
i
m
o
p
q
s
t
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
x
z
+
Variables
a
b
c
e
g
i
l
m
n
p
r
s
t
v
x
y
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
p
q
r
s
t
u
Enumerator
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
src
tasks
test
environment_test.cpp
Go to the documentation of this file.
1
/*********************************************************************
2
*
3
* Software License Agreement
4
*
5
* Copyright (c) 2020,
6
* TU Dortmund - Institute of Control Theory and Systems Engineering.
7
* All rights reserved.
8
*
9
* This program is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21
*
22
* Authors: Christoph Rösmann
23
*********************************************************************/
24
25
#include <
corbo-controllers/pid_controller.h
>
26
#include <
corbo-core/reference_trajectory.h
>
27
#include <
corbo-observers/observer_interface.h
>
28
#include <
corbo-plants/simulated_plant.h
>
29
#include <
corbo-systems/output_function_interface.h
>
30
#include <
corbo-systems/system_dynamics_interface.h
>
31
#include <
corbo-tasks/task_closed_loop_control.h
>
32
#include <iostream>
33
#include <memory>
34
35
#include "gtest/gtest.h"
36
37
// The fixture for testing class Foo.
38
class
FooTest
:
public
::testing::Test
39
{
40
protected
:
41
// You can do set-up work for each test here.
42
FooTest
() {}
43
// You can do clean-up work that doesn't throw exceptions here.
44
virtual
~FooTest
() {}
45
// If the constructor and destructor are not enough for setting up
46
// and cleaning up each test, you can define the following methods:
47
48
// Code here will be called immediately after the constructor (right
49
// before each test).
50
virtual
void
SetUp
() { std::cout <<
"nice"
<< std::endl; }
51
// Code here will be called immediately after each test (right
52
// before the destructor).
53
// virtual void TearDown();
54
55
// The mock bar library shaed by all tests
56
// int m_bar;
57
};
58
59
TEST_F
(
FooTest
, blabla)
60
{
61
int
testval = 5;
62
EXPECT_EQ(testval, 5);
63
}
64
65
int
main
(
int
argc,
char
** argv)
66
{
67
::testing::InitGoogleTest(&argc, argv);
68
int
ret
= RUN_ALL_TESTS();
69
70
return
ret
;
71
// return 1;
72
}
73
74
// int main()
75
//{
76
// std::cout << "Hello World!" << std::endl;
77
// return 0;
78
//}
pid_controller.h
simulated_plant.h
reference_trajectory.h
output_function_interface.h
FooTest::~FooTest
virtual ~FooTest()
Definition:
environment_test.cpp:44
task_closed_loop_control.h
FooTest::FooTest
FooTest()
Definition:
environment_test.cpp:42
observer_interface.h
FooTest
Definition:
communication_test.cpp:30
FooTest::SetUp
virtual void SetUp()
Definition:
environment_test.cpp:50
TEST_F
TEST_F(FooTest, blabla)
Definition:
environment_test.cpp:59
ret
DenseIndex ret
Definition:
level1_impl.h:59
main
int main(int argc, char **argv)
Definition:
environment_test.cpp:65
system_dynamics_interface.h
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Mon Feb 28 2022 22:06:51