Main Page
Namespaces
Classes
Files
File List
include
roboticsgroup_upatras_gazebo_plugins
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
:
40
MimicJointPlugin
();
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
49
std::string
joint_name_
,
mimic_joint_name_
,
robot_namespace_
;
50
double
multiplier_
,
offset_
,
sensitiveness_
,
max_effort_
;
51
bool
has_pid_
;
52
53
// PID controller if needed
54
control_toolbox::Pid
pid_
;
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
gazebo::MimicJointPlugin::offset_
double offset_
Definition:
mimic_joint_plugin.h:50
gazebo::MimicJointPlugin::world_
physics::WorldPtr world_
Definition:
mimic_joint_plugin.h:63
gazebo::MimicJointPlugin::sensitiveness_
double sensitiveness_
Definition:
mimic_joint_plugin.h:50
gazebo
gazebo::MimicJointPlugin::pid_
control_toolbox::Pid pid_
Definition:
mimic_joint_plugin.h:54
gazebo::MimicJointPlugin::joint_name_
std::string joint_name_
Definition:
mimic_joint_plugin.h:49
gazebo::MimicJointPlugin::robot_namespace_
std::string robot_namespace_
Definition:
mimic_joint_plugin.h:49
gazebo::MimicJointPlugin::Load
virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf) override
Definition:
mimic_joint_plugin.cpp:44
gazebo::MimicJointPlugin::model_
physics::ModelPtr model_
Definition:
mimic_joint_plugin.h:60
gazebo::MimicJointPlugin::MimicJointPlugin
MimicJointPlugin()
Definition:
mimic_joint_plugin.cpp:33
gazebo::MimicJointPlugin::update_connection_
event::ConnectionPtr update_connection_
Definition:
mimic_joint_plugin.h:66
gazebo::MimicJointPlugin::has_pid_
bool has_pid_
Definition:
mimic_joint_plugin.h:51
gazebo::MimicJointPlugin::multiplier_
double multiplier_
Definition:
mimic_joint_plugin.h:50
gazebo::MimicJointPlugin::UpdateChild
void UpdateChild()
Definition:
mimic_joint_plugin.cpp:151
control_toolbox::Pid
ros.h
gazebo::MimicJointPlugin::mimic_joint_name_
std::string mimic_joint_name_
Definition:
mimic_joint_plugin.h:49
gazebo::MimicJointPlugin::max_effort_
double max_effort_
Definition:
mimic_joint_plugin.h:50
gazebo::MimicJointPlugin::joint_
physics::JointPtr joint_
Definition:
mimic_joint_plugin.h:57
gazebo::MimicJointPlugin::mimic_joint_
physics::JointPtr mimic_joint_
Definition:
mimic_joint_plugin.h:57
gazebo::MimicJointPlugin
Definition:
mimic_joint_plugin.h:38
gazebo::MimicJointPlugin::~MimicJointPlugin
virtual ~MimicJointPlugin() override
Definition:
mimic_joint_plugin.cpp:39
pid.h
roboticsgroup_upatras_gazebo_plugins
Author(s): Konstantinos Chatzilygeroudis
autogenerated on Tue Dec 22 2020 04:03:12