Package mbdyn :: Package bindings :: Module frames :: Class ReferenceFrame
[hide private]

Class ReferenceFrame

source code

basic_objects.BasicObject --+
                            |
                           ReferenceFrame

The MBDyn reference frame that output values in the absolute reference frame. The object definition is coming from ReferenceFrame, in 'reffrm.h and 'reference_frame.i' for the SWIG interface. Until now, only get_position and get_orientation_matrix are available.

Instance Methods [hide private]
 
__init__(self, c_inst=None)
The C++ instance reference is supposed to be received in the constructor because this object will represent a MBDyn node, element or reference frame
source code
 
fill_position(self)
Fill the position array from the C++ instance.
source code
numpy array
get_position(self)
Return a copy of the numpy array
source code
 
fill_orientation_matrix(self)
Fill the orientation matrix from the C++ instance
source code
numpy array
get_orientation_matrix(self)
Return a copy of the orientation matrix, defining the reference frame.
source code
 
__repr__(self) source code

Inherited from basic_objects.BasicObject: get_label, set_c_inst

Method Details [hide private]

__init__(self, c_inst=None)
(Constructor)

source code 
The C++ instance reference is supposed to be received in the constructor because this object will represent a MBDyn node, element or reference frame
Overrides: basic_objects.BasicObject.__init__
(inherited documentation)

get_position(self)

source code 
Return a copy of the numpy array
Returns: numpy array
a 3x1 vector

get_orientation_matrix(self)

source code 
Return a copy of the orientation matrix, defining the reference frame.
Returns: numpy array
a 3x3 matrix