Privacy
An open-source, flexible 3D physical simulation framework
contact_params.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011, 2012, DFKI GmbH Robotics Innovation Center
3  *
4  * This file is part of the MARS simulation framework.
5  *
6  * MARS is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation, either version 3
9  * of the License, or (at your option) any later version.
10  *
11  * MARS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with MARS. If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef MARS_INTERFACES_CONTACT_PARAMS_H
22 #define MARS_INTERFACES_CONTACT_PARAMS_H
23 
24 #include "MARSDefs.h"
25 #include <mars/utils/Vector.h>
26 
27 namespace mars {
28  namespace interfaces {
29 
30  struct contact_params {
31  void setZero(){
32  max_num_contacts = 4;
33  erp = 0.1;
34  cfm = 0.00000001;
35  friction1 = 0.8;
36  friction2 = 0.8;
38  motion1 = motion2 = 0;
39  fds1 = fds2 = 0;
40  bounce = bounce_vel = 0;
41  approx_pyramid = 1;
42  coll_bitmask = 65535;
43  depth_correction = 0.0;
44  }
45 
47  setZero();
48  }
49 
60  }; // end of struct contact_params
61 
62  } // end of namespace interfaces
63 } // end of namespace mars
64 
65 #endif /* MARS_INTERFACES_CONTACT_PARAMS_H */
double sReal
Definition: MARSDefs.h:49
Copyright 2012, DFKI GmbH Robotics Innovation Center.
Eigen::Matrix< double, 3, 1, Eigen::DontAlign > Vector
Definition: Vector.h:43