gepetto-viewer-corba
5.5.1
Corba server for gepetto-viewer
|
Helper class to plot a 6D vector with one Linear and one Angular arrow. More...
Public Member Functions | |
def | __init__ (self, groupName, angFactor=pi, linFactor=1.) |
Constructor To tune the parameter of the 3D arrows, directly acces the attributes: More... | |
def | create (self, gui) |
Create the node in the GUI. More... | |
def | remove (self, gui) |
Delete the node in the GUI. More... | |
def | set (self, gui, value, origin=(0, 0, 0)) |
Set the 6D vector to plot. More... | |
Public Attributes | |
name | |
linear | |
The Linear part. More... | |
angular | |
The Angular part. More... | |
angF | |
The factor sent to Angular.set. More... | |
linF | |
The factor sent to Linear.set. More... | |
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:
def gepetto.corbaserver.tools.Vector6.__init__ | ( | self, | |
groupName, | |||
angFactor = pi , |
|||
linFactor = 1. |
|||
) |
Constructor To tune the parameter of the 3D arrows, directly acces the attributes:
groupName | name of an existing group |
angFactor | the norm of the angular part of the vector is divided by this value |
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.
gui | the IDL client (typically the gui attribute of class gepetto.corbaserver.client.Client) |
value | the vector to plot (list or tuple of 6 elements) |
origin | the translation of the origin (list or tuple of 3 elements) |
gepetto.corbaserver.tools.Vector6.angF |
The factor sent to Angular.set.
gepetto.corbaserver.tools.Vector6.angular |
The Angular part.
gepetto.corbaserver.tools.Vector6.linear |
The Linear part.
gepetto.corbaserver.tools.Vector6.linF |
The factor sent to Linear.set.
gepetto.corbaserver.tools.Vector6.name |
|
static |
|
static |