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 |
| 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)
| 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
| list path_generator.path_generator.flatten | ( | list_of_lists | ) |
| def path_generator.path_generator.main | ( | ) |
| int path_generator.path_generator.num_segments | ( | np.ndarray | point_chain | ) |
| def path_generator.path_generator.parse_args | ( | ) |
| path_generator.path_generator.precision |
| int path_generator.path_generator.QUADRUPLE_SIZE = 4 |
| path_generator.path_generator.suppress |
| path_generator.path_generator.threshold |