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
Stack Of Tasks
pinocchio
Commits
26cd0b4f
Commit
26cd0b4f
authored
Oct 22, 2020
by
Guilhem Saurel
Browse files
gepetto visualizer: explicit error message if GV is not installed
parent
2130f9b7
Pipeline
#11828
passed with stage
in 181 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bindings/python/pinocchio/visualize/gepetto_visualizer.py
View file @
26cd0b4f
...
...
@@ -25,7 +25,15 @@ class GepettoVisualizer(BaseVisualizer):
def
initViewer
(
self
,
viewer
=
None
,
windowName
=
"python-pinocchio"
,
sceneName
=
"world"
,
loadModel
=
False
):
"""Init GepettoViewer by loading the gui and creating a window."""
import
gepetto.corbaserver
try
:
import
gepetto.corbaserver
except
ImportError
:
import
warnings
msg
=
(
"Error while importing the viewer client.
\n
"
"Check whether gepetto-viewer is properly installed"
)
warnings
.
warn
(
msg
,
category
=
UserWarning
,
stacklevel
=
2
)
try
:
self
.
viewer
=
gepetto
.
corbaserver
.
Client
()
if
viewer
is
None
else
viewer
gui
=
self
.
viewer
.
gui
...
...
Write
Preview
Markdown
is supported
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