Public Member Functions | |
def | __init__ (self, windowName="pinocchio") |
def | place (self, objName, M, refresh=True) |
Public Attributes | |
viewer | |
Class Display: Example of a class implementing a client for the Gepetto-viewer server. The main method of the class is 'place', that sets the position/rotation of a 3D visual object in a scene.
Definition at line 8 of file display.py.
def __init__ | ( | self, | |
windowName = "pinocchio" |
|||
) |
This function connect with the Gepetto-viewer server and open a window with the given name. If the window already exists, it is kept in the current state. Otherwise, the newly-created window is set up with a scene named 'world'.
Definition at line 14 of file display.py.
def place | ( | self, | |
objName, | |||
M, | |||
refresh = True |
|||
) |
This function places (ie changes both translation and rotation) of the object names "objName" in place given by the SE3 object "M". By default, immediately refresh the layout. If multiple objects have to be placed at the same time, do the refresh only at the end of the list.
Definition at line 46 of file display.py.