path-generator
Version:
A easy motion profile path generator
26 lines (25 loc) • 949 B
TypeScript
import { PathGeneratorError } from '../motionProfiling/errors';
import Trajectory from '../trajectorys/trajectory';
import Setpoint from '../motionProfiling/setpoint';
import Coord from '../motionProfiling/coord';
import Waypoint from '../waypoints/waypoint';
import PathConfig from './path-config';
export default class Path {
protected _trajectory: Trajectory;
protected _isReverse: boolean;
protected _error?: PathGeneratorError;
protected _pathConfig: PathConfig;
protected _waypoints: Waypoint[];
constructor(waypoints: Waypoint[], pathConfig: PathConfig);
protected fixWaypointV(): void;
protected generate(): void;
get waypoints(): Waypoint[];
get pathConfig(): PathConfig;
get sourceSetpoints(): Setpoint[];
get coords(): Coord[];
get error(): PathGeneratorError | undefined;
isIllegal(): boolean;
isTurnInPlace(): boolean;
isReverse(): boolean;
changeDirection(): void;
}