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;
37
friction_direction1
= 0;
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
46
contact_params
(){
47
setZero
();
48
}
49
50
int
max_num_contacts
;
51
sReal
erp
,
cfm
;
52
sReal
friction1
,
friction2
;
53
utils::Vector
*
friction_direction1
;
54
sReal
motion1
,
motion2
;
55
sReal
fds1
,
fds2
;
56
sReal
bounce
,
bounce_vel
;
57
bool
approx_pyramid
;
58
int
coll_bitmask
;
59
sReal
depth_correction
;
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 */
mars::interfaces::contact_params::coll_bitmask
int coll_bitmask
Definition:
contact_params.h:58
mars::interfaces::contact_params::approx_pyramid
bool approx_pyramid
Definition:
contact_params.h:57
mars::interfaces::contact_params::erp
sReal erp
Definition:
contact_params.h:51
mars::interfaces::contact_params::bounce
sReal bounce
Definition:
contact_params.h:56
mars::interfaces::contact_params
Definition:
contact_params.h:30
mars::interfaces::contact_params::motion1
sReal motion1
Definition:
contact_params.h:54
mars::interfaces::contact_params::bounce_vel
sReal bounce_vel
Definition:
contact_params.h:56
mars::interfaces::contact_params::friction1
sReal friction1
Definition:
contact_params.h:52
mars::interfaces::contact_params::setZero
void setZero()
Definition:
contact_params.h:31
mars::interfaces::contact_params::friction_direction1
utils::Vector * friction_direction1
Definition:
contact_params.h:53
mars::interfaces::contact_params::friction2
sReal friction2
Definition:
contact_params.h:52
mars::interfaces::contact_params::depth_correction
sReal depth_correction
Definition:
contact_params.h:59
mars::interfaces::contact_params::fds1
sReal fds1
Definition:
contact_params.h:55
mars::interfaces::sReal
double sReal
Definition:
MARSDefs.h:49
mars::interfaces::contact_params::fds2
sReal fds2
Definition:
contact_params.h:55
mars::interfaces::contact_params::motion2
sReal motion2
Definition:
contact_params.h:54
mars
Copyright 2012, DFKI GmbH Robotics Innovation Center.
Definition:
GraphicsTimer.cpp:25
mars::utils::Vector
Eigen::Matrix< double, 3, 1, Eigen::DontAlign > Vector
Definition:
Vector.h:43
mars::interfaces::contact_params::max_num_contacts
int max_num_contacts
Definition:
contact_params.h:50
mars::interfaces::contact_params::contact_params
contact_params()
Definition:
contact_params.h:46
mars::interfaces::contact_params::cfm
sReal cfm
Definition:
contact_params.h:51
MARSDefs.h
interfaces
src
contact_params.h
Generated on Fri May 25 2018 11:46:21 by
1.8.13