opspace/include/opspace/ClassicTaskPostureController.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 The Board of Trustees of The Leland Stanford Junior University. All rights reserved.
00003  *
00004  * Author: Roland Philippsen
00005  *         http://cs.stanford.edu/group/manips/
00006  *
00007  * This program is free software: you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public License
00009  * as published by the Free Software Foundation, either version 3 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this program.  If not, see
00019  * <http://www.gnu.org/licenses/>
00020  */
00021 
00022 #ifndef OPSPACE_CLASSIC_TASK_POSTURE_CONTROLLER_HPP
00023 #define OPSPACE_CLASSIC_TASK_POSTURE_CONTROLLER_HPP
00024 
00025 #include <opspace/Controller.hpp>
00026 #include <boost/shared_ptr.hpp>
00027 
00028 namespace opspace {
00029   
00030   
00031   class ClassicTaskPostureController
00032     : public Controller
00033   {
00034   public:
00035     explicit ClassicTaskPostureController(std::string const & name);
00036     
00037     virtual Status init(Model const & model);
00038     
00039     virtual Status computeCommand(Model const & model,
00040           Skill & skill,
00041           Vector & gamma);
00042 
00043     virtual void dbg(std::ostream & os,
00044          std::string const & title,
00045          std::string const & prefix) const;
00046     
00047   protected:
00048     Vector jpos_;
00049     Vector jvel_;
00050     Vector gamma_;
00051     Vector fstar_;
00052     Matrix lambda_;
00053     Matrix jbar_;
00054     Matrix nullspace_;
00055   };
00056 
00057 }
00058 
00059 #endif // OPSPACE_CLASSIC_TASK_POSTURE_CONTROLLER_HPP

Generated on Fri Aug 26 01:31:16 2011 for Stanford Whole-Body Control Framework by  doxygen 1.5.4