freneticlib.representations.cartesian_representation

Module Contents

Classes

CatmullRomRepresentation

Helper class that provides a standard way to create an ABC using

Functions

points_to_deltas(control_points)

deltas_to_points(deltas)

freneticlib.representations.cartesian_representation.points_to_deltas(control_points)[source]
freneticlib.representations.cartesian_representation.deltas_to_points(deltas)[source]
class freneticlib.representations.cartesian_representation.CatmullRomRepresentation(control_nodes: int, variation: int = 0, max_angle=35, num_spline_nodes=20, seg_length=10)[source]

Bases: freneticlib.representations.abstract_representation.RoadRepresentation

Helper class that provides a standard way to create an ABC using inheritance.

generate()[source]

Generate a test of length self.length using the function get_value(previous points). :returns: (np.array) a list of delta values.

to_cartesian(test)[source]
get_value(previous: List = None)[source]