26 if (_sdf->HasElement(
"joint"))
27 joint_name_ = _sdf->GetElement(
"joint")->Get<std::string>();
30 if (_sdf->HasElement(
"mimicJoint"))
31 mimic_joint_name_ = _sdf->GetElement(
"mimicJoint")->Get<std::string>();
34 if (_sdf->HasElement(
"multiplier"))
35 multiplier_ = _sdf->GetElement(
"multiplier")->Get<
double>();
38 std::string modelName = _sdf->GetParent()->Get<std::string>(
"name");
event::ConnectionPtr updateConnection
physics::JointPtr mimic_joint_
void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)
GZ_REGISTER_MODEL_PLUGIN(MimicPlugin)
#define ROS_INFO_STREAM(args)
std::string mimic_joint_name_