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
2b81fbdc
Commit
2b81fbdc
authored
Nov 15, 2019
by
Carlos Mastalli
Browse files
[loader] Adapted path to run internal CI as Guilhem suggested
parent
039e41e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/example_robot_data/robots_loader.py
View file @
2b81fbdc
...
...
@@ -8,8 +8,9 @@ from pinocchio.robot_wrapper import RobotWrapper
def
getModelPath
(
subpath
,
printmsg
=
False
):
base
=
'../../../share/example-robot-data'
for
path
in
[
dirname
(
dirname
(
dirname
(
dirname
(
__file__
)))),
dirname
(
dirname
(
dirname
(
__file__
)))]
+
[
join
(
p
,
base
.
strip
(
'/'
))
for
p
in
sys
.
path
]:
main_dir
=
dirname
(
dirname
(
dirname
(
__file__
)))
for
path
in
[
join
(
dirname
(
main_dir
),
'robots'
),
join
(
main_dir
,
'robots'
)
]
+
[
join
(
p
,
base
.
strip
(
'/'
))
for
p
in
sys
.
path
]:
if
exists
(
join
(
path
,
subpath
.
strip
(
'/'
))):
if
printmsg
:
print
(
"using %s as modelPath"
%
path
)
...
...
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