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
dfb53c89
Unverified
Commit
dfb53c89
authored
Oct 23, 2020
by
Justin Carpentier
Committed by
GitHub
Oct 23, 2020
Browse files
Merge pull request #1329 from nim65s/devel
gepetto visualizer: explicit error message if GV is not installed
parents
2130f9b7
26cd0b4f
Pipeline
#11829
passed with stage
in 212 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bindings/python/pinocchio/visualize/gepetto_visualizer.py
View file @
dfb53c89
...
...
@@ -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
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