Robot Dynamics Library
Namespaces | Typedefs | Functions
RobotDynamics::Urdf Namespace Reference

Namespaces

 hydro
 

Typedefs

typedef vector< urdf::LinkSharedPtr > URDFLinkVector
 
typedef vector< urdf::JointSharedPtr > URDFJointVector
 
typedef map< string, urdf::LinkSharedPtr > URDFLinkMap
 
typedef map< string, urdf::JointSharedPtr > URDFJointMap
 

Functions

bool urdfReadFromFile (const std::string &filename, ModelPtr model, JointType floating_base_rotation_joint_type=JointTypeSpherical, bool verbose=false)
 Read urdf from file path. More...
 
bool urdfReadFromString (const std::string &model_xml_string, ModelPtr model, JointType floating_base_rotation_joint_type=JointTypeSpherical, bool verbose=false)
 Read urdf from string contents. More...
 
bool parseJointBodyNameMapFromString (const std::string &model_xml_string, std::map< std::string, std::string > &jointBodyMap)
 This will build a map of joint name to body name. More...
 
bool parseJointAndBodyNamesFromString (const std::string &model_xml_string, std::vector< std::string > &joint_names, std::vector< std::string > &body_names)
 This will build vectors of joint name and body name pairs. More...
 
bool parseJointBodyNameMapFromFile (const std::string &filename, std::map< std::string, std::string > &jointBodyMap)
 This will build a map of joint name to body name. More...
 
bool parseJointAndQIndex (const RobotDynamics::Model &model, const std::vector< std::string > &body_names, std::vector< unsigned int > &q_indices)
 This will build a vector of joint indices in the same order as the list of joints. More...
 
bool parseJointAndQIndex (const std::string &model_xml_string, std::vector< unsigned int > &q_indices)
 This will build a vector of joint indices in the same order as the list of joints. More...
 
std::vector< double > xmlElementToVector (TiXmlElement *element)
 Helper method for getting xml elements like <origin> 1 2 3 </origin> into an stl container for further operations. More...
 
bool construct_model (ModelPtr rdl_model, urdf::ModelInterfaceSharedPtr urdf_model, bool floating_base, const std::map< std::string, hydro::BodyHydroData > &hydroData, JointType floating_base_rotation_joint_type, bool verbose)
 

Typedef Documentation

◆ URDFJointMap

typedef map<string, urdf::JointSharedPtr> RobotDynamics::Urdf::URDFJointMap

◆ URDFJointVector

typedef vector<urdf::JointSharedPtr> RobotDynamics::Urdf::URDFJointVector

◆ URDFLinkMap

typedef map<string, urdf::LinkSharedPtr> RobotDynamics::Urdf::URDFLinkMap

◆ URDFLinkVector

typedef vector<urdf::LinkSharedPtr> RobotDynamics::Urdf::URDFLinkVector

Function Documentation

◆ construct_model()

bool RobotDynamics::Urdf::construct_model ( ModelPtr  rdl_model,
urdf::ModelInterfaceSharedPtr  urdf_model,
bool  floating_base,
const std::map< std::string, hydro::BodyHydroData > &  hydroData,
JointType  floating_base_rotation_joint_type,
bool  verbose 
)

◆ xmlElementToVector()

std::vector<double> RobotDynamics::Urdf::xmlElementToVector ( TiXmlElement *  element)
inline

Helper method for getting xml elements like <origin> 1 2 3 </origin> into an stl container for further operations.

Parameters
element
Returns
vector of doubles