56 public:
virtual void Load(sdf::ElementPtr _sdf);
59 public:
virtual void Init();
62 public: std::string GetName()
const;
67 public:
bool IsAttached()
const;
70 private:
void OnUpdate();
74 private:
void OnContacts(ConstContactsPtr &_msg);
77 private:
void HandleAttach();
80 private:
void HandleDetach();
83 private:
void ResetDiffs();
101 private: std::vector<event::ConnectionPtr> connections;
104 private: std::map<std::string, physics::CollisionPtr> collisions;
107 private: std::vector<msgs::Contact> contacts;
110 private: boost::mutex mutexContacts;
113 private:
bool attached;
120 private: std::vector<double> diffs;
123 private:
int diffIndex;
133 private:
int posCount;
137 private:
int zeroCount;
140 private:
unsigned int minContactCount;
143 private:
int attachSteps;
146 private:
int detachSteps;
149 private: std::string name;
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:88
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:259
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
transport::NodePtr node
Node for communication.
Definition: Gripper.hh:152
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
Forward declarations for transport.
default namespace for gazebo
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:116
A gripper abstraction.
Definition: Gripper.hh:44
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:84
boost::shared_ptr< Joint > JointPtr
Definition: PhysicsTypes.hh:108
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:100
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44