Loading [MathJax]/extensions/tex2jax.js
iCub-main
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace 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
y
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
b
c
d
e
h
i
j
l
m
n
p
r
s
t
w
z
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
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
Enumerations
a
b
c
e
g
i
l
n
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
i
l
m
p
r
s
t
u
Properties
Related Symbols
a
b
c
g
i
l
o
q
r
s
t
w
Files
File List
File 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
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Typedefs
Enumerations
Enumerator
_
a
c
d
e
g
j
m
n
p
s
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
icub-main
src
tools
trajectoryPlayer
sine.m
Go to the documentation of this file.
1
sampling_period
= 20; %ms
2
frequency
= 1; %hertz
3
amplitude
= 10; %degrees
4
offset
= 0; %degrees
5
time
= [0: 0.020: 10];
6
7
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8
out
=
amplitude
*sin(
time
*2*pi*
frequency
)+
offset
;
9
10
figure
(1)
11
hold
on
12
grid
on
13
plot (
time
,
out
)
14
15
fileID
= fopen('trajectory.txt','w');
16
%
A
= [
time
;
out
];
17
%
fprintf
(
fileID
,'%6.3
f
%6.3
f
\
n
',
A
);
18
A
= [
out
];
19
fprintf
(
fileID
,'%6.3
f
\
n
',
A
);
20
fclose
(
fileID
);
f
f
Definition
compute_ekf_sym.m:22
n
int n
Definition
debugFunctions.cpp:58
on
grid on
Definition
show_eyes_axes.m:5
fclose
fclose(fileID)
out
out
Definition
sine.m:8
amplitude
hertz amplitude
Definition
sine.m:3
A
A
Definition
sine.m:16
sampling_period
sampling_period
Definition
sine.m:1
fprintf
fprintf(fileID,'%6.3f %6.3f\n', A)
offset
degrees offset
Definition
sine.m:4
frequency
ms frequency
Definition
sine.m:2
fileID
out fileID
Definition
sine.m:15
figure
figure(1) hold on grid on plot(time
time
degrees time
Definition
sine.m:5
Generated on Wed Apr 9 2025 08:53:54 for iCub-main by
1.9.8