Abstract interface for loading transmission instances from configuration data. More...
#include <transmission_loader.h>
Public Types | |
typedef boost::shared_ptr < Transmission > | TransmissionPtr |
Public Member Functions | |
virtual TransmissionPtr | load (const TransmissionInfo &transmission_info)=0 |
virtual | ~TransmissionLoader () |
Protected Types | |
enum | ParseStatus { SUCCESS, NO_DATA, BAD_TYPE } |
Static Protected Member Functions | |
static bool | checkActuatorDimension (const TransmissionInfo &transmission_info, const unsigned int expected_dim) |
static bool | checkJointDimension (const TransmissionInfo &transmission_info, const unsigned int expected_dim) |
static ParseStatus | getActuatorReduction (const TiXmlElement &parent_el, const std::string &actuator_name, const std::string &transmission_name, bool required, double &reduction) |
static ParseStatus | getActuatorRole (const TiXmlElement &parent_el, const std::string &actuator_name, const std::string &transmission_name, bool required, std::string &role) |
static ParseStatus | getJointOffset (const TiXmlElement &parent_el, const std::string &joint_name, const std::string &transmission_name, bool required, double &offset) |
static ParseStatus | getJointReduction (const TiXmlElement &parent_el, const std::string &joint_name, const std::string &transmission_name, bool required, double &reduction) |
static ParseStatus | getJointRole (const TiXmlElement &parent_el, const std::string &joint_name, const std::string &transmission_name, bool required, std::string &role) |
static TiXmlElement | loadXmlElement (const std::string &element_str) |
Abstract interface for loading transmission instances from configuration data.
It also provides convenience methods for specific transmission loaders to leverage.
Definition at line 64 of file transmission_loader.h.
typedef boost::shared_ptr<Transmission> transmission_interface::TransmissionLoader::TransmissionPtr |
Definition at line 70 of file transmission_loader.h.
enum transmission_interface::TransmissionLoader::ParseStatus [protected] |
Definition at line 74 of file transmission_loader.h.
virtual transmission_interface::TransmissionLoader::~TransmissionLoader | ( | ) | [inline, virtual] |
Definition at line 68 of file transmission_loader.h.
static bool transmission_interface::TransmissionLoader::checkActuatorDimension | ( | const TransmissionInfo & | transmission_info, |
const unsigned int | expected_dim | ||
) | [inline, static, protected] |
Definition at line 81 of file transmission_loader.h.
static bool transmission_interface::TransmissionLoader::checkJointDimension | ( | const TransmissionInfo & | transmission_info, |
const unsigned int | expected_dim | ||
) | [inline, static, protected] |
Definition at line 94 of file transmission_loader.h.
TransmissionLoader::ParseStatus transmission_interface::TransmissionLoader::getActuatorReduction | ( | const TiXmlElement & | parent_el, |
const std::string & | actuator_name, | ||
const std::string & | transmission_name, | ||
bool | required, | ||
double & | reduction | ||
) | [static, protected] |
Definition at line 39 of file transmission_loader.cpp.
TransmissionLoader::ParseStatus transmission_interface::TransmissionLoader::getActuatorRole | ( | const TiXmlElement & | parent_el, |
const std::string & | actuator_name, | ||
const std::string & | transmission_name, | ||
bool | required, | ||
std::string & | role | ||
) | [static, protected] |
Definition at line 144 of file transmission_loader.cpp.
TransmissionLoader::ParseStatus transmission_interface::TransmissionLoader::getJointOffset | ( | const TiXmlElement & | parent_el, |
const std::string & | joint_name, | ||
const std::string & | transmission_name, | ||
bool | required, | ||
double & | offset | ||
) | [static, protected] |
Definition at line 109 of file transmission_loader.cpp.
TransmissionLoader::ParseStatus transmission_interface::TransmissionLoader::getJointReduction | ( | const TiXmlElement & | parent_el, |
const std::string & | joint_name, | ||
const std::string & | transmission_name, | ||
bool | required, | ||
double & | reduction | ||
) | [static, protected] |
Definition at line 74 of file transmission_loader.cpp.
TransmissionLoader::ParseStatus transmission_interface::TransmissionLoader::getJointRole | ( | const TiXmlElement & | parent_el, |
const std::string & | joint_name, | ||
const std::string & | transmission_name, | ||
bool | required, | ||
std::string & | role | ||
) | [static, protected] |
Definition at line 188 of file transmission_loader.cpp.
virtual TransmissionPtr transmission_interface::TransmissionLoader::load | ( | const TransmissionInfo & | transmission_info | ) | [pure virtual] |
static TiXmlElement transmission_interface::TransmissionLoader::loadXmlElement | ( | const std::string & | element_str | ) | [inline, static, protected] |
Definition at line 107 of file transmission_loader.h.