mimic_joint_plugin.h
Go to the documentation of this file.
1 
23 #ifndef ROBOTICSGROUP_UPATRAS_GAZEBO_PLUGINS_MIMIC_JOINT_PLUGIN
24 #define ROBOTICSGROUP_UPATRAS_GAZEBO_PLUGINS_MIMIC_JOINT_PLUGIN
25 
26 // ROS includes
27 #include <ros/ros.h>
28 
29 // ros_control
30 #include <control_toolbox/pid.h>
31 
32 // Gazebo includes
33 #include <gazebo/common/Plugin.hh>
34 #include <gazebo/physics/physics.hh>
35 
36 namespace gazebo {
37 
38  class MimicJointPlugin : public ModelPlugin {
39  public:
41  virtual ~MimicJointPlugin() override;
42 
43  virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf) override;
44 
45  private:
46  void UpdateChild();
47 
48  // Parameters
51  bool has_pid_;
52 
53  // PID controller if needed
55 
56  // Pointers to the joints
57  physics::JointPtr joint_, mimic_joint_;
58 
59  // Pointer to the model
60  physics::ModelPtr model_;
61 
62  // Pointer to the world
63  physics::WorldPtr world_;
64 
65  // Pointer to the update event connection
66  event::ConnectionPtr update_connection_;
67  };
68 
69 }
70 
71 #endif // ROBOTICSGROUP_UPATRAS_GAZEBO_PLUGINS_MIMIC_JOINT_PLUGIN
control_toolbox::Pid pid_
virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf) override
event::ConnectionPtr update_connection_
physics::JointPtr mimic_joint_
virtual ~MimicJointPlugin() override


roboticsgroup_upatras_gazebo_plugins
Author(s): Konstantinos Chatzilygeroudis
autogenerated on Tue Dec 22 2020 04:03:12