17 This function connect with the Gepetto-viewer server and open a window with the
18 given name. If the window already exists, it is kept in the current state.
19 Otherwise, the newly-created window is set up with a scene named 'world'.
24 self.
viewer = gepetto.corbaserver.Client()
26 print(
"Error while starting the viewer client. ")
27 print(
"Check whether Gepetto-viewer is properly started")
32 windowID = self.
viewer.gui.getWindowID(windowName)
33 print(
"Warning: window '" + windowName +
"' already created.")
35 "The previously created objects will not be destroyed "
36 "and do not have to be created again."
40 windowID = self.
viewer.gui.createWindow(windowName)
42 self.
viewer.gui.createScene(
"world")
43 self.
viewer.gui.addSceneToWindow(
"world", windowID)