hpp-gepetto-viewer
4.9.0
Display of hpp robots and obstacles in gepetto-viewer
|
Viewer factory. More...
Public Member Functions | |
def | __init__ (self, problemSolver) |
Constructor. More... | |
def | buildRobotBodies (self) |
def | addLandmark (self, linkname, size) |
def | loadObstacleModel (self, filename, prefix, guiOnly=False) |
Load obstacles from a urdf file. More... | |
def | loadPolyhedronObstacleModel (self, name, filename, guiOnly=False) |
Load polyhedron from a 3D mesh file. More... | |
def | moveObstacle (self, name, position, guiOnly=False) |
Move Obstacle. More... | |
def | computeObjectPosition (self) |
def | publishRobots (self) |
def | displayRoadmap (self, nameRoadmap, radiusSphere=0.01, sizeAxis=0.03, colorNode=[1.0, colorEdge=[0.85, joint=None) |
def | __call__ (self, args) |
def | createViewer (self, ViewerClass=Viewer, viewerClient=None, ghost=False, host=None, args, kwargs) |
Create a client to gepetto-viewer-server and send stored commands. More... | |
Public Attributes | |
guiRequest | |
problemSolver | |
robot | |
Static Public Attributes | |
bool | removeLightSources = True |
Whether light sources in collada files should be removed at loading. More... | |
Viewer factory.
Store commands to be sent to gepetto-viewer-server
, create clients on demand and send stored commands.
def gepetto.viewer_factory.ViewerFactory.__init__ | ( | self, | |
problemSolver | |||
) |
Constructor.
problemSolver | instance of hpp.corbaserver.problem_solver.ProblemSolver, |
def gepetto.viewer_factory.ViewerFactory.__call__ | ( | self, | |
args | |||
) |
def gepetto.viewer_factory.ViewerFactory.addLandmark | ( | self, | |
linkname, | |||
size | |||
) |
def gepetto.viewer_factory.ViewerFactory.buildRobotBodies | ( | self | ) |
def gepetto.viewer_factory.ViewerFactory.computeObjectPosition | ( | self | ) |
def gepetto.viewer_factory.ViewerFactory.createViewer | ( | self, | |
ViewerClass = Viewer , |
|||
viewerClient = None , |
|||
ghost = False , |
|||
host = None , |
|||
args, | |||
kwargs | |||
) |
Create a client to gepetto-viewer-server
and send stored commands.
The arguments of Viewer.__init__ can be passed through kwargs
def gepetto.viewer_factory.ViewerFactory.displayRoadmap | ( | self, | |
nameRoadmap, | |||
radiusSphere = 0.01 , |
|||
sizeAxis = 0.03 , |
|||
colorNode = [1.0 , |
|||
colorEdge = [0.85 , |
|||
joint = None |
|||
) |
def gepetto.viewer_factory.ViewerFactory.loadObstacleModel | ( | self, | |
filename, | |||
prefix, | |||
guiOnly = False |
|||
) |
Load obstacles from a urdf file.
filename | name of the urdf file, may contain "package://" |
prefix | prefix added to object names in case the same file is loaded several times, |
guiOnly | whether to control only gepetto-viewer-server |
def gepetto.viewer_factory.ViewerFactory.loadPolyhedronObstacleModel | ( | self, | |
name, | |||
filename, | |||
guiOnly = False |
|||
) |
Load polyhedron from a 3D mesh file.
filename | name of the 3D mesh file, may contain "package://" |
name | name of the object, |
guiOnly | whether to control only gepetto-viewer-server |
def gepetto.viewer_factory.ViewerFactory.moveObstacle | ( | self, | |
name, | |||
position, | |||
guiOnly = False |
|||
) |
Move Obstacle.
name | Name of the object |
position | Position of the object as a 7-d vector (translation-quaternion) |
guiOnly | whether to control only gepetto-viewer-server |
def gepetto.viewer_factory.ViewerFactory.publishRobots | ( | self | ) |
gepetto.viewer_factory.ViewerFactory.guiRequest |
gepetto.viewer_factory.ViewerFactory.problemSolver |
|
static |
Whether light sources in collada files should be removed at loading.
gepetto.viewer_factory.ViewerFactory.robot |