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: material.h,v 1.3 2009/03/25 22:10:23 cmatei Exp $ 00023 // 00024 //###################################################################### 00025 00026 #ifndef MATERIAL_HXX 00027 00028 enum materialT {frictionless, glass, metal, wood,plastic, rubber, stone, invalid}; 00029 00030 #define NUM_MATERIAL 8 00031 00032 extern double Cof[NUM_MATERIAL][NUM_MATERIAL]; 00033 extern double KineticCof[NUM_MATERIAL][NUM_MATERIAL]; 00034 extern char *matNameList[NUM_MATERIAL]; 00035 00036 void initCof(); 00037 materialT readMaterial(const char *matStr); 00038 void getMaterialStr(materialT mat,char *str); 00039 const char *getMaterialStr(materialT mat); 00040 00041 #define MATERIAL_HXX 00042 #endif 00043