Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

robot/control/kinematics/IKORFullSpaceSolverTest

Go to the documentation of this file.
00001 /* **-*-c++-*-**************************************************************
00002   Copyright (C)2003 David Jung <opensim@pobox.com>
00003 
00004   This program/file is free software; you can redistribute it and/or modify
00005   it under the terms of the GNU General Public License as published by
00006   the Free Software Foundation; either version 2 of the License, or
00007   (at your option) any later version.
00008 
00009   This program is distributed in the hope that it will be useful,
00010   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012   GNU General Public License for more details. (http://www.gnu.org)
00013 
00014   You should have received a copy of the GNU General Public License
00015   along with this program; if not, write to the Free Software
00016   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017 
00018   $Id: IKORFullSpaceSolverTest 1078 2004-07-28 19:35:19Z jungd $
00019   $Revision: 1.2 $
00020   $Date: 2004-07-28 15:35:19 -0400 (Wed, 28 Jul 2004) $
00021   $Author: jungd $
00022 
00023 ****************************************************************************/
00024 
00025 #ifndef _ROBOT_CONTROL_KINEMATICS_IKORFULLSPACESOLVERTEST_
00026 #define _ROBOT_CONTROL_KINEMATICS_IKORFULLSPACESOLVERTEST_
00027 
00028 #include <cppunit/extensions/HelperMacros.h>
00029 
00030 #include <base/Matrix>
00031 #include <robot/control/kinematics/IKORFullSpaceSolver>
00032 
00033 
00034 namespace robot {
00035 namespace control {
00036 namespace kinematics {
00037 
00038 
00039 class IKORFullSpaceSolverTest : public CppUnit::TestFixture
00040 {
00041   static const Int numOfTests = 4;
00042 
00043   CPPUNIT_TEST_SUITE( IKORFullSpaceSolverTest );
00044 
00045   CPPUNIT_TEST( testByHandCase1 );
00046   CPPUNIT_TEST( testSpecialCase1 );
00047   CPPUNIT_TEST( testSpecialCase2 );
00048   CPPUNIT_TEST( testEnduranceExample );
00049 
00050   CPPUNIT_TEST_SUITE_END();
00051 
00052 protected:
00053   ref<IKORFullSpaceSolver> fsp;
00054 
00055 public:
00056   IKORFullSpaceSolverTest();
00057 
00058   int countTestCases () const { return numOfTests; }
00059 
00060   void setUp();
00061   void tearDown();
00062 
00063   void testByHandCase1();
00064   void testSpecialCase1();
00065   void testSpecialCase2();
00066   void testEnduranceExample();
00067 
00068 };
00069 
00070 
00071 } // namespace kinematics
00072 } // namespace control
00073 } // namespace robot
00074 
00075 #endif

Generated on Thu Jul 29 15:56:33 2004 for OpenSim by doxygen 1.3.6