Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!10fix bezier degree 0
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment