urdfreader.h
Go to the documentation of this file.
1 /*
2  * Original Copyright (c) 2011-2016 Martin Felis <martin.felis@iwr.uni-heidelberg.de>
3  *
4  *
5  * RDL - Robot Dynamics Library
6  * Modifications Copyright (c) 2017 Jordan Lack <jlack1987@gmail.com>
7  *
8  * Licensed under the zlib license. See LICENSE for more details.
9  */
10 
11 #ifndef __RDL_URDFREADER_H__
12 #define __RDL_URDFREADER_H__
13 
14 #include "rdl_dynamics/Model.h"
15 
16 namespace RobotDynamics
17 {
18 namespace Urdf
19 {
28 bool urdfReadFromFile(const char* filename, ModelPtr model, bool floating_base, bool verbose = false);
29 
38 bool urdfReadFromFile(const std::string& filename, ModelPtr model);
39 
48 bool urdfReadFromString(const char* model_xml_string, ModelPtr model, bool floating_base, bool verbose = false);
49 
60 bool urdfReadFromString(const std::string& model_xml_string, ModelPtr model);
61 
72 bool parseJointBodyNameMapFromString(const char* model_xml_string, std::map<std::string, std::string>& jointBodyMap);
73 
84 bool parseJointBodyNameMapFromString(const std::string& model_xml_string, std::map<std::string, std::string>& jointBodyMap);
85 
97 bool parseJointAndBodyNamesFromString(const std::string& model_xml_string, std::vector<std::string>& joint_names, std::vector<std::string>& body_names);
98 
110 bool parseJointAndBodyNamesFromString(const char* model_xml_string, std::vector<std::string>& joint_names, std::vector<std::string>& body_names);
111 
122 bool parseJointBodyNameMapFromFile(const char* filename, std::map<std::string, std::string>& jointBodyMap);
123 
133 bool parseJointAndQIndex(const RobotDynamics::Model& model, const std::vector<std::string>& body_names, std::vector<unsigned int>& q_indices);
134 
143 bool parseJointAndQIndex(const std::string& model_xml_string, std::vector<unsigned int>& q_indices);
144 } // namespace Urdf
145 } // namespace RobotDynamics
146 
147 /* ___RDL_URDFREADER_H__ */
148 #endif // ifndef __RDL_URDFREADER_H__
bool verbose
std::shared_ptr< Model > ModelPtr
bool parseJointBodyNameMapFromFile(const char *filename, std::map< std::string, std::string > &jointBodyMap)
This will build a map of joint name to body name.
Definition: urdfreader.cc:274
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.
Definition: urdfreader.cc:323
bool parseJointBodyNameMapFromString(const char *model_xml_string, std::map< std::string, std::string > &jointBodyMap)
This will build a map of joint name to body name.
Definition: urdfreader.cc:345
string filename
bool urdfReadFromFile(const char *filename, ModelPtr model, bool floating_base, bool verbose=false)
Read urdf from file path.
Definition: urdfreader.cc:390
bool urdfReadFromString(const char *model_xml_string, ModelPtr model, bool floating_base, bool verbose=false)
Read urdf from string contents.
Definition: urdfreader.cc:411
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.
Definition: urdfreader.cc:362


rdl_urdfreader
Author(s):
autogenerated on Tue Apr 20 2021 02:25:38