18 #ifndef _GAZEBO_DARTPHYSICS_HH_
19 #define _GAZEBO_DARTPHYSICS_HH_
23 #include <boost/thread/thread.hpp>
24 #include <boost/thread/mutex.hpp>
39 class DARTPhysicsPrivate;
84 public:
virtual void Load(sdf::ElementPtr _sdf);
87 public:
virtual void Init();
90 public:
virtual void Fini();
93 public:
virtual void Reset();
96 public:
virtual void InitForThread();
99 public:
virtual void UpdateCollision();
102 public:
virtual void UpdatePhysics();
105 public:
virtual std::string GetType()
const;
108 public:
virtual void SetSeed(uint32_t _seed);
117 public:
virtual CollisionPtr CreateCollision(
const std::string &_type,
121 public:
virtual JointPtr CreateJoint(
const std::string &_type,
125 public:
virtual ShapePtr CreateShape(
const std::string &_shapeType,
132 public:
virtual void DebugPrint()
const;
135 public:
virtual boost::any GetParam(
const std::string &_key)
const;
138 public:
virtual bool GetParam(
const std::string &_key,
139 boost::any &_value)
const;
142 public:
virtual bool SetParam(
const std::string &_key,
143 const boost::any &_value);
147 public: dart::simulation::World *GetDARTWorld();
150 protected:
virtual void OnRequest(ConstRequestPtr &_msg);
153 protected:
virtual void OnPhysicsMsg(ConstPhysicsPtr &_msg);
159 const dart::dynamics::BodyNode *_dtBodyNode);
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:72
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:88
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:259
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
boost::shared_ptr< Shape > ShapePtr
Definition: PhysicsTypes.hh:132
Base class for a physics engine.
Definition: PhysicsEngine.hh:40
DART physics engine.
Definition: DARTPhysics.hh:46
Definition: DARTPhysicsPrivate.hh:29
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:104
DART wrapper forward declarations and typedefs.
boost::shared_ptr< DARTLink > DARTLinkPtr
Definition: DARTTypes.hh:45
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:84
boost::shared_ptr< Joint > JointPtr
Definition: PhysicsTypes.hh:108
DARTParam
DART physics parameter types.
Definition: DARTPhysics.hh:50
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Maximum number of contacts.
Definition: DARTPhysics.hh:71
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:100