Commit dfaa680e authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[test][python] add a (failling) test highlithing error with Bezier of degree 0

parent 1d9ee8b7
......@@ -11,6 +11,13 @@ from hpp_spline import bezier, bezier6, curve_constraints, exact_cubic, from_bez
class TestSpline(unittest.TestCase):
def test_spline(self):
waypoints = matrix([[1., 2., 3.]]).T
a = bezier(waypoints,2.)
t = 0.
while t < 2.:
assert_allclose(a(t),matrix([1., 2., 3.]).T)
t += 0.1
waypoints = matrix([[1., 2., 3.], [4., 5., 6.]]).T
waypoints6 = matrix([[1., 2., 3., 7., 5., 5.], [4., 5., 6., 4., 5., 6.]]).T
time_waypoints = matrix([0., 1.]).T
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment