|
gepetto-viewer-corba
5.7.1
Corba server for gepetto-viewer
|
Public Member Functions | |
| def | __init__ (self, groupName, angFactor=pi, linFactor=1.0) |
| def | create (self, gui) |
| def | remove (self, gui) |
| def | set (self, gui, value, origin=(0, 0, 0)) |
Public Attributes | |
| name | |
| linear | |
| angular | |
| angF | |
| linF | |
Static Public Attributes | |
| string | suffixLin = "linear" |
| string | suffixAng = "angular" |
Helper class to plot a 6D vector with one Linear and one Angular arrow.
The 3 first components of the 6D vector are sent to the Linear arrow
and the 3 last ones are sent to the Angular arrow.
It is useful to plot velocities of a body, forces and torques...
Example usage:
\\code
from gepetto.corbaserver import Client
from gepetto.corbaserver.tools import Vector6
client = Client()
gui = client.gui
gui.createWindow ("window")
vector = Vector6 ("window")
vector.create (gui)
vector.set (gui, [.1, .2, .3, .1, -.2, .3])
\\endcode
| def gepetto.corbaserver.tools.Vector6.__init__ | ( | self, | |
| groupName, | |||
angFactor = pi, |
|||
linFactor = 1.0 |
|||
| ) |
Constructor
To tune the parameter of the 3D arrows, directly acces the attributes:
- Vector6.linear
- Vector6.angular
- Vector6.linF
- Vector6.angF
\\param groupName name of an **existing** group
\\param angFactor the norm of the angular part of the vector is divided by
this value
\\param linFactor the norm of the linear part of the vector is divided by
this value
| def gepetto.corbaserver.tools.Vector6.create | ( | self, | |
| gui | |||
| ) |
Create the node in the GUI.
| def gepetto.corbaserver.tools.Vector6.remove | ( | self, | |
| gui | |||
| ) |
Delete the node in the GUI.
| def gepetto.corbaserver.tools.Vector6.set | ( | self, | |
| gui, | |||
| value, | |||
origin = (0, 0, 0) |
|||
| ) |
Set the 6D vector to plot
\\param gui the IDL client (typically the \\c gui attribute
of class gepetto.corbaserver.client.Client)
\\param value the vector to plot (list or tuple of 6 elements)
\\param origin the translation of the origin (list or tuple of 3 elements)
| gepetto.corbaserver.tools.Vector6.angF |
| gepetto.corbaserver.tools.Vector6.angular |
| gepetto.corbaserver.tools.Vector6.linear |
| gepetto.corbaserver.tools.Vector6.linF |
| gepetto.corbaserver.tools.Vector6.name |
|
static |
|
static |