Go to the documentation of this file.
72 const unsigned int dim = transmission_info.
actuators_.size();
73 if (expected_dim != dim)
76 "' of type '" << transmission_info.
type_ <<
77 "'. Expected " << expected_dim <<
" actuators, got " << dim <<
".");
85 const unsigned int dim = transmission_info.
joints_.size();
86 if (expected_dim != dim)
89 "' of type '" << transmission_info.
type_ <<
90 "'. Expected " << expected_dim <<
" joints, got " << dim <<
".");
98 TiXmlElement element(
"");
99 std::stringstream element_stream;
100 element_stream << element_str;
101 element_stream >> element;
106 const std::string& actuator_name,
107 const std::string& transmission_name,
112 const std::string& joint_name,
113 const std::string& transmission_name,
118 const std::string& joint_name,
119 const std::string& transmission_name,
124 const std::string& actuator_name,
125 const std::string& transmission_name,
130 const std::string& joint_name,
131 const std::string& transmission_name,
std::shared_ptr< Transmission > TransmissionSharedPtr
virtual TransmissionSharedPtr load(const TransmissionInfo &transmission_info)=0
virtual ~TransmissionLoader()=default
static bool getActuatorReduction(const TiXmlElement &parent_el, const std::string &actuator_name, const std::string &transmission_name, bool required, double &reduction)
std::vector< JointInfo > joints_
std::vector< ActuatorInfo > actuators_
static bool getActuatorRole(const TiXmlElement &parent_el, const std::string &actuator_name, const std::string &transmission_name, bool required, std::string &role)
#define ROS_ERROR_STREAM_NAMED(name, args)
static bool getJointRole(const TiXmlElement &parent_el, const std::string &joint_name, const std::string &transmission_name, bool required, std::string &role)
static bool getJointReduction(const TiXmlElement &parent_el, const std::string &joint_name, const std::string &transmission_name, bool required, double &reduction)
static bool checkActuatorDimension(const TransmissionInfo &transmission_info, const unsigned int expected_dim)
static bool checkJointDimension(const TransmissionInfo &transmission_info, const unsigned int expected_dim)
Structs to hold transmission data loaded straight from XML (URDF).
Abstract interface for loading transmission instances from configuration data.
Contains semantic info about a given transmission loaded from XML (URDF)
std::shared_ptr< TransmissionLoader > TransmissionLoaderSharedPtr
static TiXmlElement loadXmlElement(const std::string &element_str)
static bool getJointOffset(const TiXmlElement &parent_el, const std::string &joint_name, const std::string &transmission_name, bool required, double &offset)