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
Guilhem Saurel
pinocchio
Commits
24e8acd9
Commit
24e8acd9
authored
Jan 12, 2017
by
Rohan Budhiraja
Browse files
[Python] Fix robot_wrapper binding
* addMesh returns boolean. Proceed only if addMesh is True
parent
bfb83318
Changes
1
Show whitespace changes
Inline
Side-by-side
bindings/python/scripts/robot_wrapper.py
View file @
24e8acd9
...
...
@@ -179,7 +179,7 @@ class RobotWrapper(object):
meshName
=
self
.
viewerNodeNames
(
visual
)
meshPath
=
visual
.
meshPath
meshScale
=
visual
.
meshScale
self
.
viewer
.
gui
.
addMesh
(
meshName
,
meshPath
)
if
self
.
viewer
.
gui
.
addMesh
(
meshName
,
meshPath
)
:
self
.
viewer
.
gui
.
setScale
(
meshName
,
npToTuple
(
meshScale
))
# Finally, refresh the layout to obtain your first rendering.
...
...
Write
Preview
Supports
Markdown
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