00001 //###################################################################### 00002 // 00003 // GraspIt! 00004 // Copyright (C) 2002-2009 Columbia University in the City of New York. 00005 // All rights reserved. 00006 // 00007 // GraspIt! is free software: you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation, either version 3 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // GraspIt! is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with GraspIt!. If not, see <http://www.gnu.org/licenses/>. 00019 // 00020 // Author(s): Andrew T. Miller 00021 // 00022 // $Id: puma560.h,v 1.2 2009/03/25 22:10:23 cmatei Exp $ 00023 // 00024 //###################################################################### 00025 00030 #ifndef PUMA560_H 00031 #include "robot.h" 00032 00033 struct Puma560Solution; 00034 00036 00040 class Puma560 : public Robot { 00042 static const int NUM_SOLUTIONS; 00043 00047 int findClosestSol(Puma560Solution *candidates, Puma560Solution *current); 00048 00049 public: 00050 /* Empty constructor */ 00051 Puma560(World *w,const char *name) : Robot(w,name) {} 00052 00053 /* Solves the inverse kinematics of the puma arm analytically. */ 00054 virtual int invKinematics(const transf& endTran,double* dofVals, 00055 int chainNum=0); 00056 }; 00057 00058 #define PUMA560_H 00059 #endif