path-generator
Version:
A easy motion profile path generator
23 lines (22 loc) • 923 B
TypeScript
import Setpoint from '../motionProfiling/setpoint';
import PathConfig from '../path/path-config';
import Coord from '../motionProfiling/coord';
export default class TankModifier {
protected _rightSetpoints: Setpoint[];
protected _leftSetpoints: Setpoint[];
protected _rightCoords: Coord[];
protected _leftCoords: Coord[];
protected source: Setpoint[];
protected _coords: Coord[];
protected startAngle: number;
protected pathConfig: PathConfig;
get leftSetpoints(): Setpoint[];
get rightSetpoints(): Setpoint[];
get coords(): Coord[];
constructor(source: Setpoint[], coords: Coord[], startAngle: number, pathConfig: PathConfig);
turnInPlace(): void;
spline(): void;
protected getCoord(coord: Coord, robotWidth: number): Coord;
protected calculateSetpoint(setpoints: Setpoint[], coords: Coord[], index: number): void;
protected updateCoordsAngle(): void;
}