test_Deprecations.py
Go to the documentation of this file.
1 import unittest
2 
3 import numpy as np
4 
5 import tsid
6 
7 
8 class DeprecationTest(unittest.TestCase):
9  def test_trajectory(self):
10  q_ref = np.ones(5)
11  traj_euclidian = tsid.TrajectoryEuclidianConstant("traj_eucl", q_ref)
12 
13  with self.assertWarns(UserWarning):
14  traj_euclidian.computeNext().pos()
15  with self.assertWarns(UserWarning):
16  traj_euclidian.computeNext().vel()
17  with self.assertWarns(UserWarning):
18  traj_euclidian.computeNext().acc()
19 
20 
21 if __name__ == "__main__":
22  unittest.main()
test_Deprecations.DeprecationTest
Definition: test_Deprecations.py:8
test_Deprecations.DeprecationTest.test_trajectory
def test_trajectory(self)
Definition: test_Deprecations.py:9


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Sat May 3 2025 02:48:17