ffeatools.modules.FFEA_trajectory.FFEA_traj_blob Class Reference

Public Member Functions

def __init__ (self, num_nodes=0)
 
def set_frame (self, frame)
 
def set_subblob (self, pin)
 
def calc_centroid_trajectory (self, subblob_index=-1)
 
def reset (self)
 

Data Fields

 num_nodes
 
 motion_state
 
 num_subblobs
 
 frame
 
 subblob
 

Constructor & Destructor Documentation

◆ __init__()

def ffeatools.modules.FFEA_trajectory.FFEA_traj_blob.__init__ (   self,
  num_nodes = 0 
)

Member Function Documentation

◆ calc_centroid_trajectory()

def ffeatools.modules.FFEA_trajectory.FFEA_traj_blob.calc_centroid_trajectory (   self,
  subblob_index = -1 
)
Calculate the centroid (average position of all the nodes) of a
given blob. You can also specify the index of a sub-blob, and get
the centroid of that sub-blob.
In: self, subblob index
Out: a 2-d array, which is [x,y,z] wide and as tall as the number
of nodes in your blob\sub-blob.

◆ reset()

def ffeatools.modules.FFEA_trajectory.FFEA_traj_blob.reset (   self)

◆ set_frame()

def ffeatools.modules.FFEA_trajectory.FFEA_traj_blob.set_frame (   self,
  frame 
)

◆ set_subblob()

def ffeatools.modules.FFEA_trajectory.FFEA_traj_blob.set_subblob (   self,
  pin 
)
Create a subblob from a pin object.
In: self, the pin object
Out: the ID of the generated subblob.

Field Documentation

◆ frame

◆ motion_state

ffeatools.modules.FFEA_trajectory.FFEA_traj_blob.motion_state

◆ num_nodes

◆ num_subblobs

◆ subblob


The documentation for this class was generated from the following file: