pathfinder1-jaci-js

exported c++ library called Pathfinder

Usage no npm install needed!

<script type="module">
  import pathfinder1JaciJs from 'https://cdn.skypack.dev/pathfinder1-jaci-js';
</script>

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