gazebo_model_attachment_plugin.h
Go to the documentation of this file.
1 #ifndef GAZEBO_MODEL_ATTACHMENT_PLUGIN_H
2 #define GAZEBO_MODEL_ATTACHMENT_PLUGIN_H
3 
4 #include <boost/thread.hpp>
5 #include <boost/thread/mutex.hpp>
6 #include <gazebo_model_attachment_plugin/Attach.h>
7 #include <gazebo_model_attachment_plugin/Detach.h>
8 #include <ros/ros.h>
9 
10 #include <gazebo/common/Events.hh>
11 #include <gazebo/common/Plugin.hh>
12 #include <gazebo/physics/physics.hh>
13 #include <gazebo/transport/TransportTypes.hh>
14 #include <gazebo/transport/transport.hh>
15 #include <mutex>
16 #include <string>
17 #include <thread>
18 #include <vector>
19 
20 namespace gazebo
21 {
22 
23 class ModelAttachmentPlugin : public WorldPlugin
24 {
25  public:
27 
28  virtual ~ModelAttachmentPlugin();
29 
30  protected:
31  void Load(physics::WorldPtr world, sdf::ElementPtr sdf);
32 
33  private:
34  physics::WorldPtr world_;
35 
36  bool attachCallback(gazebo_model_attachment_plugin::Attach::Request& req,
37  gazebo_model_attachment_plugin::Attach::Response& res);
38  bool detachCallback(gazebo_model_attachment_plugin::Detach::Request& req,
39  gazebo_model_attachment_plugin::Detach::Response& res);
40 
41  void attach(const std::string& joint_name, physics::ModelPtr m1, physics::ModelPtr m2, physics::LinkPtr l1,
42  physics::LinkPtr l2);
43  void detach(const std::string& joint_name, physics::ModelPtr m1, physics::ModelPtr m2);
44 
48 };
49 } // namespace gazebo
50 
51 #endif
gazebo::ModelAttachmentPlugin::attach_srv_
ros::ServiceServer attach_srv_
Definition: gazebo_model_attachment_plugin.h:46
gazebo
ros.h
gazebo::ModelAttachmentPlugin::detach_srv_
ros::ServiceServer detach_srv_
Definition: gazebo_model_attachment_plugin.h:47
gazebo::ModelAttachmentPlugin::detachCallback
bool detachCallback(gazebo_model_attachment_plugin::Detach::Request &req, gazebo_model_attachment_plugin::Detach::Response &res)
Definition: gazebo_model_attachment_plugin.cpp:105
ros::ServiceServer
gazebo::ModelAttachmentPlugin::attachCallback
bool attachCallback(gazebo_model_attachment_plugin::Attach::Request &req, gazebo_model_attachment_plugin::Attach::Response &res)
Definition: gazebo_model_attachment_plugin.cpp:31
gazebo::ModelAttachmentPlugin::detach
void detach(const std::string &joint_name, physics::ModelPtr m1, physics::ModelPtr m2)
Definition: gazebo_model_attachment_plugin.cpp:185
gazebo::ModelAttachmentPlugin::~ModelAttachmentPlugin
virtual ~ModelAttachmentPlugin()
Definition: gazebo_model_attachment_plugin.cpp:16
gazebo::ModelAttachmentPlugin
Definition: gazebo_model_attachment_plugin.h:23
gazebo::ModelAttachmentPlugin::world_
physics::WorldPtr world_
Definition: gazebo_model_attachment_plugin.h:34
gazebo::ModelAttachmentPlugin::Load
void Load(physics::WorldPtr world, sdf::ElementPtr sdf)
Definition: gazebo_model_attachment_plugin.cpp:21
gazebo::ModelAttachmentPlugin::ModelAttachmentPlugin
ModelAttachmentPlugin()
Definition: gazebo_model_attachment_plugin.cpp:12
gazebo::ModelAttachmentPlugin::nh_
ros::NodeHandle nh_
Definition: gazebo_model_attachment_plugin.h:45
gazebo::ModelAttachmentPlugin::attach
void attach(const std::string &joint_name, physics::ModelPtr m1, physics::ModelPtr m2, physics::LinkPtr l1, physics::LinkPtr l2)
Definition: gazebo_model_attachment_plugin.cpp:155
ros::NodeHandle


boeing_gazebo_model_attachment_plugin
Author(s): Boeing
autogenerated on Fri Dec 15 2023 03:43:22