Class Component
About :
A Component is the deeper node of a bill of material. The component defines a solid part in a mechanism
Functions
Function | summury |
---|---|
__init__(self) | Instantiation method (more…) |
duplicate(self, DICT={}) | Specialisation of article duplicate method (more…) |
set_topologic_surface(self, TS) | Set the topologic surface of the component (more…) |
get_topologic_surface(self) | Get the component topologic surface (more…) |
center(self) | get the center of gravity of the component (more…) |
urdf_string(self, where=’’, urdf=’’, local=True) | Complet the urdf string with the component urdf definition (more…) |
Methods desciption :
init
def __init__(self)
Instantiation method
Attributes
- _mesh_rep=’’ : a file location to a mesh representing the component shape
- _center=(0,0,0) : the center of gravity
- _axis1=(1,0,0) : first axis of inertia
- _axis2=(0,1,0) : second axis of inertia
- _axis3=(0,0,1) : third axis of inertia
- _mass=0 : component mass
- _inertia=(0,0,0,0,0,0) : inertia matrix
- _gyration_radius=(0,0,0) : gyration axis
- _topologic_surface=None : topological surface : link to B-REP representation
duplicate
def duplicate(self, DICT={})
Specialisation of article duplicate method Duplicate the component as a new one
- → DICT: a dictionary of copies
- ← the new component copy
set_topologic_surface
def set_topologic_surface(self, TS)
Set the topologic surface of the component
- → TS: a topologic surface
get_topologic_surface
def get_topologic_surface(self)
Get the component topologic surface
- ← a topologic surface
center
def center(self)
get the center of gravity of the component
- ← center
urdf_string
def urdf_string(self, where='', urdf='', local=True)
Complet the urdf string with the component urdf definition
- → where: location of wavefront files
- → urdf: the initial urdf string
- → local: local or global position
- ← the completed urdf string