Skip to content

Instantly share code, notes, and snippets.

View joydeep-b's full-sized avatar

Joydeep Biswas joydeep-b

View GitHub Profile
const r = require('robotLibrary');
const id = 0;
r.setId(id);
const gridCellSize = 300;
function getX() {
return Math.floor(r.queryWorld().ourBots[id].pX / gridCellSize + 0.5);
}
const kWindowSize = 400;
const kBallRadius = 50;
let x = 200;
let y = 200;
let vx = 3.5;
let vy = 1.8;
@joydeep-b
joydeep-b / simple-2d-rrt-planner.js
Last active May 30, 2019 14:49
RRT Planner with visualizations to demo on ocelot-ide.org
let rrt = require('rrt');
let Point = rrt.Point;
let Line = rrt.Line;
let c = lib220.newCanvas(400, 400);
function drawMap(canvas, map) {
map.forEach(function(l) {
drawLine(canvas, l.p1, l.p2, [0, 0, 0]);
});
}

Keybase proof

I hereby claim:

  • I am joydeep-b on github.
  • I am joydeepb (https://keybase.io/joydeepb) on keybase.
  • I have a public key ASCwOFE6Ye2s2bLoQtFkN5FGfzToNLk9REcAR4ONQm69HAo

To claim this, I am signing this object: