Commit 51b2d581 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

make display executable

parent 73ed4f85
#!/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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment