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();
103 private: std::vector<event::ConnectionPtr> connections;
106 private: std::map<std::string, physics::CollisionPtr> collisions;
109 private: std::vector<msgs::Contact> contacts;
112 private: boost::mutex mutexContacts;
115 private:
bool attached;
122 private: std::vector<double> diffs;
125 private:
int diffIndex;
135 private:
int posCount;
139 private:
int zeroCount;
142 private:
unsigned int minContactCount;
145 private:
int attachSteps;
148 private:
int detachSteps;
151 private: std::string name;
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:109
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:89
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
Forward declarations for transport.
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
boost::shared_ptr< Joint > JointPtr
Definition: PhysicsTypes.hh:117
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
default namespace for gazebo
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:125
A gripper abstraction.
Definition: Gripper.hh:44
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:93
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
transport::NodePtr node
Node for communication.
Definition: Gripper.hh:154
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44