Unverified Commit dfb53c89 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
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
......@@ -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
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)
self.viewer = gepetto.corbaserver.Client() if viewer is None else viewer
gui = self.viewer.gui
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment