This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ompl/base/goals/GoalStates.h> | |
#include <ompl/base/spaces/RealVectorStateSpace.h> | |
#include <ompl/geometric/planners/prm/LazyPRMstar.h> | |
#include <ompl/geometric/planners/prm/PRMstar.h> | |
#include <iostream> | |
namespace ob = ompl::base; | |
namespace og = ompl::geometric; | |
int main(int argc, char *argv[]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import numpy as np | |
from scipy.spatial import ConvexHull | |
points = np.array([[0, 0], | |
[0, 1], | |
[1, 0], | |
[1, 1]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.spatial as spatial | |
import numpy as np | |
A = np.array(([[-1, 0, 0], | |
[0, -1, 0], | |
[1, 0, -1], | |
[0, 1, -1]])) | |
hull = spatial.ConvexHull(A, qhull_options='H0.5,0.5') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
launch:INFO ------------------------------------------------ | |
launch:INFO OpenShot (version 2.0.7) | |
launch:INFO ------------------------------------------------ | |
app:INFO openshot-qt version: 2.0.7 | |
app:INFO libopenshot version: 0.1.1 | |
app:INFO platform: Linux-3.16.0-31-generic-x86_64-with-Ubuntu-14.04-trusty | |
app:INFO processor: x86_64 | |
app:INFO machine: x86_64 | |
app:INFO python version: 3.4.3 | |
app:INFO qt5 version: 5.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
486 | |
0.724489795918 0.689285525461 | |
0.714285714286 0.671611537629 | |
0.69387755102 0.671611537629 | |
0.683673469388 0.653937549796 | |
0.663265306122 0.653937549796 | |
0.65306122449 0.671611537629 | |
0.632653061224 0.671611537629 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from copy import copy | |
""" | |
This script draws the Gosper island, a hexagon-based fractal that tiles the plane. | |
https://en.wikipedia.org/wiki/Gosper_curve#Properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cdd | |
import numpy as np | |
A = np.array([[1, 0, 1], [1, 1, 0], [1, 1, 1], [1, 0, 0]]) # Simple square | |
mat = cdd.Matrix(A) | |
mat.rep_type = cdd.RepType.GENERATOR | |
poly = cdd.Polyhedron(mat) | |
poly.rep_type = cdd.RepType.INEQUALITY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scipy.signal import decimate | |
import numpy as np | |
A = np.array([1.]*200) | |
print decimate(A, 20) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import math | |
def f(t, y): | |
return math.cos(t) | |
def ref(time): | |
return math.sin(time) |