Parse all transmissions specified in a URDF.
More...
#include <transmission_parser.h>
|
static bool | parse (const std::string &urdf_string, std::vector< TransmissionInfo > &transmissions) |
| Parses the transmission elements of a URDF. More...
|
|
|
static bool | parseActuators (TiXmlElement *trans_it, std::vector< ActuatorInfo > &actuators) |
| Parses the actuator elements within transmission elements of a URDF. More...
|
|
static bool | parseJoints (TiXmlElement *trans_it, std::vector< JointInfo > &joints) |
| Parses the joint elements within transmission elements of a URDF. More...
|
|
Parse all transmissions specified in a URDF.
Definition at line 58 of file transmission_parser.h.
◆ parse()
bool transmission_interface::TransmissionParser::parse |
( |
const std::string & |
urdf_string, |
|
|
std::vector< TransmissionInfo > & |
transmissions |
|
) |
| |
|
static |
Parses the transmission elements of a URDF.
- Parameters
-
[in] | urdf_string | XML string of a valid URDF file that contains <transmission> elements |
[out] | transmissions | vector of loaded transmission meta data |
- Returns
- true if parsing was successful
Definition at line 42 of file transmission_parser.cpp.
◆ parseActuators()
bool transmission_interface::TransmissionParser::parseActuators |
( |
TiXmlElement * |
trans_it, |
|
|
std::vector< ActuatorInfo > & |
actuators |
|
) |
| |
|
staticprotected |
Parses the actuator elements within transmission elements of a URDF.
- Parameters
-
[in] | trans_it | pointer to the current XML element being parsed |
[out] | actuators | resulting list of actuators in the transmission |
- Returns
- true if successful
Definition at line 195 of file transmission_parser.cpp.
◆ parseJoints()
bool transmission_interface::TransmissionParser::parseJoints |
( |
TiXmlElement * |
trans_it, |
|
|
std::vector< JointInfo > & |
joints |
|
) |
| |
|
staticprotected |
Parses the joint elements within transmission elements of a URDF.
- Parameters
-
[in] | trans_it | pointer to the current XML element being parsed |
[out] | joints | resulting list of joints in the transmission |
- Returns
- true if successful
Definition at line 123 of file transmission_parser.cpp.
The documentation for this class was generated from the following files: