2.2.0 • Published 3 years ago

path-generator v2.2.0

Weekly downloads
10
License
ISC
Repository
github
Last release
3 years ago

PathGenerator Package

PathGenerator is a motion profile generator, which you can easily generat path for your robot to follow. To see an example of using this package you can take a look at PathGenerator App. This package is based of Jaci's PathFinder with some improvements.

Usage

Basic

const { Waypoint, PathConfig, Path } = require('path-generator');

const waypoints = [new Waypoint(0, 0, 0, 0, 2), new Waypoint(1.5, 1.5, 90, 2, 2), new Waypoint(3, 3, 0, 0, 0)];
const pathConfig = new PathConfig(0.8, 3.5, 3);
const path = new Path(waypoints, pathConfig);

Tank

const { Tank } = require('path-generator');
const { Path, PathConfig, Waypoint } = Tank;

const waypoints = [new Waypoint(0, 0, 0, 0, 2), new Waypoint(1.5, 1.5, 90, 2, 2), new Waypoint(3, 3, 0, 0, 0)];
const pathConfig = new PathConfig(0.8, 3.5, 3);
const path = new Path(waypoints, pathConfig);

Holonomic

const { Holonomic } = require('path-generator');
const { Path, PathConfig, Waypoint } = Holonomic;

const waypoints = [
	new Waypoint(0, 0, 0, 0, 0, 2),
	new Waypoint(1.5, 1.5, 90, 0, 2, 2),
	new Waypoint(3, 3, 0, 180, 0, 0),
];
const pathConfig = new PathConfig(0.8, 3.5, 3);
const path = new Path(waypoints, pathConfig);
  • Note:
    • Not tested on a robot yet!
2.2.0

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago