Common
common packages for kyubic
 
Loading...
Searching...
No Matches
path_generator.path_generator Namespace Reference

Classes

class  Parameter
 

Functions

int num_segments (np.ndarray point_chain)
 
list flatten (list_of_lists)
 
def catmull_rom_spline (tuple P0, tuple P1, tuple P2, tuple P3, int num_points, float alpha=0.5)
 
list catmull_rom_chain (np.ndarray points, int num_points)
 
def parse_args ()
 
def main ()
 

Variables

 threshold
 
 precision
 
 suppress
 
int QUADRUPLE_SIZE = 4
 

Function Documentation

◆ catmull_rom_chain()

list path_generator.path_generator.catmull_rom_chain ( np.ndarray  points,
int  num_points 
)
Calculate Catmull-Rom for a sequence of initial points and return the combined curve.
:param points: Base points from which the quadruples for the algorithm are taken
:param num_points: The number of points to include in each curve segment
:return: The chain of all points (points of all segments)

◆ catmull_rom_spline()

def path_generator.path_generator.catmull_rom_spline ( tuple  P0,
tuple  P1,
tuple  P2,
tuple  P3,
int  num_points,
float   alpha = 0.5 
)
Compute the points in the spline segment
:param P0, P1, P2, and P3: The (x,y) point pairs that define the Catmull-Rom spline
:param num_points: The number of points to include in the resulting curve segment
:param alpha: 0.5 for the centripetal spline, 0.0 for the uniform spline, 1.0 for the chordal spline.
:return: The points

◆ flatten()

list path_generator.path_generator.flatten (   list_of_lists)

◆ main()

def path_generator.path_generator.main ( )

◆ num_segments()

int path_generator.path_generator.num_segments ( np.ndarray  point_chain)

◆ parse_args()

def path_generator.path_generator.parse_args ( )

Variable Documentation

◆ precision

path_generator.path_generator.precision

◆ QUADRUPLE_SIZE

int path_generator.path_generator.QUADRUPLE_SIZE = 4

◆ suppress

path_generator.path_generator.suppress

◆ threshold

path_generator.path_generator.threshold