DARTCollision.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 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_PHYSICS_DART_DARTCOLLISION_HH_
19 #define GAZEBO_PHYSICS_DART_DARTCOLLISION_HH_
20 
25 #include "gazebo/util/system.hh"
26 
27 namespace gazebo
28 {
29  namespace physics
30  {
32  class DARTCollisionPrivate;
33 
36 
38  class GZ_PHYSICS_VISIBLE DARTCollision : public Collision
39  {
42  public: explicit DARTCollision(LinkPtr _parent);
43 
45  public: virtual ~DARTCollision();
46 
47  // Documentation inherited.
48  public: virtual void Load(sdf::ElementPtr _sdf);
49 
50  // Documentation inherited.
51  public: virtual void Init();
52 
53  // Documentation inherited.
54  public: virtual void Fini();
55 
56  // Documentation inherited.
57  public: virtual void OnPoseChange();
58 
59  // Documentation inherited.
60  public: virtual void SetCategoryBits(unsigned int _bits);
61 
62  // Documentation inherited.
63  public: virtual void SetCollideBits(unsigned int _bits);
64 
67  public: virtual unsigned int GetCategoryBits() const;
68 
71  public: virtual unsigned int GetCollideBits() const;
72 
73  // Documentation inherited.
74  public: virtual ignition::math::AxisAlignedBox BoundingBox() const;
75 
78  public: dart::dynamics::BodyNode *DARTBodyNode() const;
79 
83  public: void SetDARTCollisionShapeNode(
84  dart::dynamics::ShapeNodePtr _shape,
85  const bool _placeable = true);
86 
89  public: dart::dynamics::ShapeNodePtr DARTCollisionShapeNode() const;
90 
91 
95  public: DARTSurfaceParamsPtr DARTSurface() const;
96 
99  private: DARTCollisionPrivate *dataPtr;
100  };
102  }
103 }
104 #endif
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:110
Forward declarations for the common classes.
Definition: Animation.hh:26
Base class for all collision entities.
Definition: Collision.hh:38
default namespace for gazebo
DART wrapper forward declarations and typedefs.
Base class for all DART collisions.
Definition: DARTCollision.hh:38
boost::shared_ptr< DARTSurfaceParams > DARTSurfaceParamsPtr
Definition: DARTTypes.hh:51
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.