Choreonoid  1.5
ContactAttribute.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BODY_CONTACT_ATTRIBUTE_H
6 #define CNOID_BODY_CONTACT_ATTRIBUTE_H
7 
8 namespace cnoid {
9 
11 {
12 public:
13  double staticFriction() const { return staticFriction_; }
14  double dynamicFriction() const { return dynamicFriction_; }
15  double restitution() const { return restitution_; }
16 
17  void setStaticFriction(double mu) { staticFriction_ = mu; }
18  void setDynamicFriction(double mu) { dynamicFriction_ = mu; }
19  void setRestitution(double r) { restitution_ = r; }
20 
21 private:
22  double staticFriction_;
23  double dynamicFriction_;
24  double restitution_;
25 };
26 
27 }
28 
29 #endif
Definition: ContactAttribute.h:10
void setRestitution(double r)
Definition: ContactAttribute.h:19
double staticFriction() const
Definition: ContactAttribute.h:13
void setStaticFriction(double mu)
Definition: ContactAttribute.h:17
double restitution() const
Definition: ContactAttribute.h:15
double dynamicFriction() const
Definition: ContactAttribute.h:14
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
void setDynamicFriction(double mu)
Definition: ContactAttribute.h:18