Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
example-robot-data
Commits
51b2d581
Commit
51b2d581
authored
Aug 28, 2019
by
Guilhem Saurel
Browse files
make display executable
parent
73ed4f85
Changes
1
Hide whitespace changes
Inline
Side-by-side
example_robot_data/display.py
100644 → 100755
View file @
51b2d581
#!/usr/bin/env python
import
sys
import
example_robot_data
import
robots_loader
DISPLAY_HYQ
=
'hyq'
in
sys
.
argv
DISPLAY_TALOS
=
'talos'
in
sys
.
argv
...
...
@@ -10,36 +13,36 @@ DISPLAY_TIAGO_NO_HAND = 'tiago_no_hand' in sys.argv
DISPLAY_ICUB
=
'icub'
in
sys
.
argv
if
DISPLAY_HYQ
:
hyq
=
example_robot_data
.
loadHyQ
()
hyq
=
robots_loader
.
loadHyQ
()
hyq
.
initViewer
(
loadModel
=
True
)
hyq
.
display
(
hyq
.
q0
)
if
DISPLAY_TALOS
:
talos
=
example_robot_data
.
loadTalos
()
talos
=
robots_loader
.
loadTalos
()
talos
.
initViewer
(
loadModel
=
True
)
talos
.
display
(
talos
.
q0
)
if
DISPLAY_TALOS_ARM
:
talos_arm
=
example_robot_data
.
loadTalosArm
()
talos_arm
=
robots_loader
.
loadTalosArm
()
talos_arm
.
initViewer
(
loadModel
=
True
)
talos_arm
.
display
(
talos_arm
.
q0
)
if
DISPLAY_TALOS_LEGS
:
talos_legs
=
example_robot_data
.
loadTalosLegs
()
talos_legs
=
robots_loader
.
loadTalosLegs
()
talos_legs
.
initViewer
(
loadModel
=
True
)
talos_legs
.
display
(
talos_legs
.
q0
)
if
DISPLAY_TIAGO
:
tiago
=
example_robot_data
.
loadTiago
()
tiago
=
robots_loader
.
loadTiago
()
tiago
.
initViewer
(
loadModel
=
True
)
tiago
.
display
(
tiago
.
q0
)
if
DISPLAY_TIAGO_NO_HAND
:
tiago_no_hand
=
example_robot_data
.
loadTiagoNoHand
()
tiago_no_hand
=
robots_loader
.
loadTiagoNoHand
()
tiago_no_hand
.
initViewer
(
loadModel
=
True
)
tiago_no_hand
.
display
(
tiago_no_hand
.
q0
)
if
DISPLAY_ICUB
:
icub
=
example_robot_data
.
loadICub
()
icub
=
robots_loader
.
loadICub
()
icub
.
initViewer
(
loadModel
=
True
)
icub
.
display
(
icub
.
q0
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment