JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q22267F
  • License ISC

exported c++ library called Pathfinder

Package Exports

  • pathfinder1-jaci-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pathfinder1-jaci-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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
});