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
95c1797a
Commit
95c1797a
authored
Jun 19, 2020
by
Guilhem Saurel
Browse files
panda: allow load in __main__
parent
832c7fe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/example_robot_data/__main__.py
View file @
95c1797a
...
...
@@ -8,7 +8,7 @@ eigenpy.switchToNumpyMatrix()
ROBOTS
=
[
'anymal'
,
'anymal_kinova'
,
'hyq'
,
'solo'
,
'solo12'
,
'talos'
,
'talos_arm'
,
'talos_legs'
,
'kinova'
,
'tiago'
,
'tiago_no_hand'
,
'icub'
,
'ur5'
,
'romeo'
,
'hector'
,
'double_pendulum'
,
'iris'
'tiago_no_hand'
,
'icub'
,
'ur5'
,
'romeo'
,
'hector'
,
'double_pendulum'
,
'iris'
,
'panda'
]
parser
=
ArgumentParser
()
...
...
@@ -100,3 +100,8 @@ if args.robot == 'iris':
iris
=
robots_loader
.
loadIris
()
iris
.
initViewer
(
loadModel
=
True
)
iris
.
display
(
iris
.
q0
)
if
args
.
robot
==
'panda'
:
panda
=
robots_loader
.
loadPanda
()
panda
.
initViewer
(
loadModel
=
True
)
panda
.
display
(
panda
.
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