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:82
Encapsulates a position and rotation in three space.
Definition: Pose.hh:40
transport::NodePtr node
Node for communication.
Definition: Gripper.hh:152
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:48
Forward declarations for transport.
default namespace for gazebo
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:106
A gripper abstraction.
Definition: Gripper.hh:44
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:78
boost::shared_ptr< Joint > JointPtr
Definition: PhysicsTypes.hh:98
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:52
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:90
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:43