44 using ros_ethercat_model::RobotState;
45 using ros_ethercat_model::Transmission;
54 if (!Transmission::initXml(elt, robot))
60 tinyxml2::XMLElement *jel = elt->FirstChildElement(
"joint");
61 if (!jel || !jel->Attribute(
"name"))
67 tinyxml2::XMLElement *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;
bool initXml(tinyxml2::XMLElement *config, ros_ethercat_model::RobotState *robot)
#define ROS_ERROR_STREAM(args)