Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
173460c0
Verified
Commit
173460c0
authored
Apr 29, 2020
by
Igor Kalevatykh
Committed by
Justin Carpentier
May 12, 2020
Browse files
Python binding: remove unnecessary dimension
parent
bec127ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/panda3d-viewer-play.py
View file @
173460c0
...
...
@@ -18,7 +18,6 @@ from panda3d_viewer import ViewerClosedError
from
pinocchio.visualize.panda3d_visualizer
import
Panda3dVisualizer
talos
=
loadTalos
()
nq
=
talos
.
model
.
nq
talos
.
setVisualizer
(
Panda3dVisualizer
())
talos
.
initViewer
()
talos
.
loadViewerModel
(
group_name
=
'talos'
,
color
=
(
1
,
1
,
1
,
1
))
...
...
@@ -28,7 +27,7 @@ talos.loadViewerModel(group_name='talos', color=(1, 1, 1, 1))
def
play_sample_trajectory
():
update_rate
=
60
cycle_time
=
3
traj
=
np
.
repeat
(
talos
.
q0
.
reshape
((
nq
,
1
)),
cycle_time
*
update_rate
,
axis
=
1
)
traj
=
np
.
repeat
(
talos
.
q0
.
reshape
((
-
1
,
1
)),
cycle_time
*
update_rate
,
axis
=
1
)
beta
=
np
.
linspace
(
0
,
1
,
traj
.
shape
[
1
])
traj
[[
2
,
9
,
10
,
11
,
22
,
15
,
16
,
17
,
30
]]
=
(
0.39
+
0.685
*
np
.
cos
(
beta
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment