test_dynamics_solvers.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # coding: utf-8
3 import roslib
4 import unittest
5 from pyexotica.testing import check_dynamics_solver_derivatives
6 
7 PKG = 'exotica_examples'
8 roslib.load_manifest(PKG) # This line is not needed with Catkin.
9 
10 
11 class TestDynamicsSolver(unittest.TestCase):
13  check_dynamics_solver_derivatives('exotica/DoubleIntegratorDynamicsSolver',
14  u'{exotica_examples}/resources/robots/lwr_simplified.urdf',
15  u'{exotica_examples}/resources/robots/lwr_simplified.srdf',
16  u'arm')
17 
19  check_dynamics_solver_derivatives('exotica/CartpoleDynamicsSolver')
20 
22  check_dynamics_solver_derivatives('exotica/PendulumDynamicsSolver')
23 
24  # def test_quadrotor_dynamics_solver(self):
25  # check_dynamics_solver_derivatives('exotica/QuadrotorDynamicsSolver',
26  # u'{exotica_examples}/resources/robots/quadrotor.urdf',
27  # u'{exotica_examples}/resources/robots/quadrotor.srdf',
28  # u'base')
29 
31  check_dynamics_solver_derivatives('exotica/PinocchioDynamicsSolver',
32  u'{exotica_examples}/resources/robots/lwr_simplified.urdf',
33  u'{exotica_examples}/resources/robots/lwr_simplified.srdf',
34  u'arm')
35 
37  check_dynamics_solver_derivatives('exotica/PinocchioDynamicsSolverWithGravityCompensation',
38  u'{exotica_examples}/resources/robots/lwr_simplified.urdf',
39  u'{exotica_examples}/resources/robots/lwr_simplified.srdf',
40  u'arm')
41 
42 
43 if __name__ == '__main__':
44  import rostest
45  rostest.rosrun(PKG, 'TestDynamicsSolver', TestDynamicsSolver)


exotica_examples
Author(s):
autogenerated on Sat Apr 10 2021 02:37:17