tinyrobotics
|
Contains various functions for parsing URDF files and strings to create a tinyrobotics model. More...
Go to the source code of this file.
Functions | |
template<typename Scalar > | |
Eigen::Matrix< Scalar, 3, 1 > | tinyrobotics::vec_from_string (const std::string &vector_str) |
Get Eigen3 vector from a URDF vector element. | |
template<typename Scalar > | |
Eigen::Matrix< Scalar, 3, 3 > | tinyrobotics::rot_from_string (const std::string &rotation_str) |
Get Eigen3 rotation from a URDF rpy string. | |
template<typename Scalar > | |
Eigen::Transform< Scalar, 3, Eigen::Isometry > | tinyrobotics::transform_from_xml (tinyxml2::XMLElement *xml) |
Get the Eigen3 transform from a URDF xml element. | |
template<typename Scalar > | |
Eigen::Matrix< Scalar, 6, 6 > | tinyrobotics::spatial_transform_from_xml (tinyxml2::XMLElement *xml) |
Get the spatial transform from a URDF xml element. | |
const char * | tinyrobotics::get_parent_link_name (tinyxml2::XMLElement *c) |
Get the name of the link's parent link. | |
template<typename Scalar > | |
Link< Scalar > | tinyrobotics::link_from_xml (tinyxml2::XMLElement *xml) |
Construct a Link from a URDF xml element. | |
template<typename Scalar > | |
Joint< Scalar > | tinyrobotics::joint_from_xml (tinyxml2::XMLElement *xml) |
Construct a new Joint object from a URDF file description. | |
template<typename Scalar , int nq> | |
void | tinyrobotics::init_link_tree (Model< Scalar, nq > &model, std::vector< Joint< Scalar > > &joints) |
Initialize the link tree in the model. | |
template<typename Scalar , int nq> | |
void | tinyrobotics::init_dynamics (Model< Scalar, nq > &model) |
Updates dynamic links with any fixed joints associated with them, and updates the indices of the dynamic links and their parents. | |
template<typename Scalar , int nq> | |
Model< Scalar, nq > | tinyrobotics::import_urdf (const std::string &path_to_urdf) |
Construct a new Model object from URDF file description. | |
Contains various functions for parsing URDF files and strings to create a tinyrobotics model.
|
inline |
Get the name of the link's parent link.
xml | The XML element containing the link description |
Model< Scalar, nq > tinyrobotics::import_urdf | ( | const std::string & | path_to_urdf | ) |
Construct a new Model object from URDF file description.
xml_string | The XML string of the URDF file. |
void tinyrobotics::init_dynamics | ( | Model< Scalar, nq > & | model | ) |
Updates dynamic links with any fixed joints associated with them, and updates the indices of the dynamic links and their parents.
model | Tinyrobtics model. |
Scalar | Scalar type of the model. |
nq | Number of configuration coordinates (degrees of freedom). |
void tinyrobotics::init_link_tree | ( | Model< Scalar, nq > & | model, |
std::vector< Joint< Scalar > > & | joints | ||
) |
Initialize the link tree in the model.
model | Tinyrobtics model. |
Scalar | Scalar type of the model. |
nq | Number of configuration coordinates (degrees of freedom). |
Joint< Scalar > tinyrobotics::joint_from_xml | ( | tinyxml2::XMLElement * | xml | ) |
Construct a new Joint object from a URDF file description.
xml | The XML element containing the joint description |
Link< Scalar > tinyrobotics::link_from_xml | ( | tinyxml2::XMLElement * | xml | ) |
Construct a Link from a URDF xml element.
xml | The XML element containing the link description |
Eigen::Matrix< Scalar, 3, 3 > tinyrobotics::rot_from_string | ( | const std::string & | rotation_str | ) |
Get Eigen3 rotation from a URDF rpy string.
rotation_str | The rpy string |
Eigen::Matrix< Scalar, 6, 6 > tinyrobotics::spatial_transform_from_xml | ( | tinyxml2::XMLElement * | xml | ) |
Get the spatial transform from a URDF xml element.
xml | The XML element |
Eigen::Transform< Scalar, 3, Eigen::Isometry > tinyrobotics::transform_from_xml | ( | tinyxml2::XMLElement * | xml | ) |
Get the Eigen3 transform from a URDF xml element.
xml | The XML element |
Eigen::Matrix< Scalar, 3, 1 > tinyrobotics::vec_from_string | ( | const std::string & | vector_str | ) |
Get Eigen3 vector from a URDF vector element.
vector_str | The vector string |