SurfaceParams.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef _GAZEBO_SURFACEPARAMS_HH_
19 #define _GAZEBO_SURFACEPARAMS_HH_
20 
21 #include <sdf/sdf.hh>
22 
23 #include "gazebo/msgs/msgs.hh"
25 #include "gazebo/util/system.hh"
26 
27 namespace gazebo
28 {
29  namespace physics
30  {
33 
37  {
39  public: FrictionPyramid();
40 
42  public: virtual ~FrictionPyramid();
43 
46  public: double GetMuPrimary();
47 
50  public: double GetMuSecondary();
51 
54  public: void SetMuPrimary(double _mu);
55 
58  public: void SetMuSecondary(double _mu);
59 
65  private: double GetMu(unsigned int _index);
66 
73  private: void SetMu(unsigned int _index, double _mu);
74 
83 
87  private: double mu[2];
88  };
89 
95  {
97  public: SurfaceParams();
98 
100  public: virtual ~SurfaceParams();
101 
104  public: virtual void Load(sdf::ElementPtr _sdf);
105 
108  public: virtual void FillMsg(msgs::Surface &_msg);
109 
112  public: virtual void ProcessMsg(const msgs::Surface &_msg);
113 
117  public: virtual FrictionPyramidPtr GetFrictionPyramid() const;
118 
120  public: bool collideWithoutContact;
121 
124  public: unsigned int collideWithoutContactBitmask;
125 
128  public: unsigned int collideBitmask;
129  };
131  }
132 }
133 #endif
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:318
Parameters used for friction pyramid model.
Definition: SurfaceParams.hh:36
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
default namespace for gazebo
unsigned int collideWithoutContactBitmask
Custom collision filtering used when collideWithoutContact is true.
Definition: SurfaceParams.hh:124
unsigned int collideBitmask
Custom collision filtering.
Definition: SurfaceParams.hh:128
bool collideWithoutContact
Allow collision checking without generating a contact joint.
Definition: SurfaceParams.hh:120
SurfaceParams defines various Surface contact parameters.
Definition: SurfaceParams.hh:94
boost::shared_ptr< FrictionPyramid > FrictionPyramidPtr
Definition: PhysicsTypes.hh:140
math::Vector3 direction1
Vector for specifying the primary friction direction, relative to the parent collision frame...
Definition: SurfaceParams.hh:82