pathfinder1-jaci-js

1.0.19 • Public • Published

Pathfinder JS

A node.js addod of the C++ library Pathfinder written by Jaci

Install

npm i pathfinder1-jaci-js

Examples

  • Generate a profile for Tank robot and print the left wheel trajectory
var pathLength = 3;
var pathPoints = [[1,1,0],[2,1,0],[3,2,90]];
var timeStep = 0.02;
var maxVelocity = 3;            // m / s
var maxAccelaration = 4;        // m / s / s
var maxJerk = 5;                // m / s / s / s
var wheelBase = 0.7;            // m

pathFinder.generateTank( pathLength, pathPoints, timeStep, maxVelocity, maxAccelaration, maxJerk, wheelBase,(length,centerTrajectory,leftTrajectory,rightTrajectory) => {
  console.log(leftTrajectory);
  //Do something with the trajectory
}, (err) => {
  //Catch Errors in points
});

Readme

Keywords

Package Sidebar

Install

Weekly Downloads

23

Version

1.0.19

License

ISC

Unpacked Size

49.2 kB

Total Files

33

Last publish

Collaborators

  • tecrunners