Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Y
yumi-egmri-timingtest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
yumi-egmri-timingtest
Commits
b0314014
Commit
b0314014
authored
7 years ago
by
Anders Blomdell
Browse files
Options
Downloads
Patches
Plain Diff
Plot time difference from robot to nominal time
parent
0bbc83a8
Branches
master
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
analyze.py
+4
-1
4 additions, 1 deletion
analyze.py
with
4 additions
and
1 deletion
analyze.py
+
4
−
1
View file @
b0314014
...
...
@@ -15,6 +15,7 @@ if __name__ == '__main__':
t_tot
=
data
[
-
1
,
2
]
-
data
[
0
,
2
]
t_robot
=
(
data
[...,
1
]
-
data
[
0
,
1
])
/
(
data
[
-
1
,
1
]
-
data
[
0
,
1
])
*
t_tot
t_sensor
=
(
data
[...,
2
]
-
data
[
0
,
2
])
/
(
data
[
-
1
,
2
]
-
data
[
0
,
2
])
*
t_tot
t_nom
=
numpy
.
linspace
(
0
,
1
,
len
(
t_sensor
))
*
t_tot
kp
=
data
[...,
4
:
18
]
d_kp
=
kp
[
1
:,
1
::
2
]
-
kp
[
0
:
-
1
,
1
::
2
]
...
...
@@ -32,7 +33,9 @@ if __name__ == '__main__':
axarr
[
2
].
set_title
(
r
'
Torque [Nm]
'
)
axarr
[
2
].
plot
(
seq
[
cut
],
torque
[...,
i
][
cut
])
axarr
[
3
].
set_title
(
r
'
$t_{robot} - t_{sensor}$
'
)
axarr
[
3
].
plot
(
seq
[
cut
],(
t_robot
-
t_sensor
)[
cut
])
axarr
[
3
].
plot
(
seq
[
cut
],
numpy
.
stack
(((
t_robot
-
t_sensor
),
(
t_robot
-
t_nom
)),
axis
=
1
)[
cut
])
f
.
savefig
(
'
axis_%d_%s.jpg
'
%
(
i
+
1
,
sys
.
argv
[
1
]))
plt
.
show
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment