44 using ros_ethercat_model::RobotState;
45 using ros_ethercat_model::Transmission;
52 bool NullTransmission::initXml(TiXmlElement *elt, RobotState *robot)
54 if (!Transmission::initXml(elt, robot))
60 TiXmlElement *jel = elt->FirstChildElement(
"joint");
61 if (!jel || !jel->Attribute(
"name"))
67 TiXmlElement *ael = elt->FirstChildElement(
"actuator");
68 if (!ael || !ael->Attribute(
"name"))
70 ROS_ERROR_STREAM(
"Transmission " << name_ <<
" has no actuator in configuration");
74 joint_ = robot->getJointState(jel->Attribute(
"name"));
75 actuator_ =
new ros_ethercat_model::Actuator();
76 actuator_->name_ = ael->Attribute(
"name");
77 actuator_->command_.enable_ =
true;
82 void NullTransmission::propagatePosition()
90 void NullTransmission::propagateEffort()
#define ROS_ERROR_STREAM(args)