urdf.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012-2020 CNRS-UM LIRMM, CNRS-AIST JRL
3  */
4 
5 #pragma once
6 
7 #include <RBDyn/Joint.h>
8 #include <RBDyn/MultiBody.h>
10 #include <RBDyn/MultiBodyGraph.h>
11 #include <RBDyn/parsers/common.h>
12 
13 #include <SpaceVecAlg/SpaceVecAlg>
14 
15 #include <boost/variant.hpp>
16 
17 #include <Eigen/Core>
18 #include <string>
19 
20 namespace tinyxml2
21 {
22 class XMLElement;
23 }
24 
25 namespace rbd
26 {
27 
28 namespace parsers
29 {
30 
31 RBDYN_PARSERS_DLLAPI std::vector<double> attrToList(const tinyxml2::XMLElement & dom,
32  const std::string & attr,
33  const std::vector<double> & def = {});
34 
35 RBDYN_PARSERS_DLLAPI Eigen::Vector3d attrToVector(const tinyxml2::XMLElement & dom,
36  const std::string & attr,
37  const Eigen::Vector3d & def = Eigen::Vector3d(0, 0, 0));
38 
39 RBDYN_PARSERS_DLLAPI ParserResult from_urdf(const std::string & content,
40  bool fixed = true,
41  const std::vector<std::string> & filteredLinksIn = {},
42  bool transformInertia = true,
43  const std::string & baseLinkIn = "",
44  bool withVirtualLinks = true,
45  const std::string & sphericalSuffix = "_spherical");
46 
47 RBDYN_PARSERS_DLLAPI ParserResult from_urdf_file(const std::string & file_path,
48  bool fixed = true,
49  const std::vector<std::string> & filteredLinksIn = {},
50  bool transformInertia = true,
51  const std::string & baseLinkIn = "",
52  bool withVirtualLinks = true,
53  const std::string & sphericalSuffix = "_spherical");
54 
55 RBDYN_PARSERS_DLLAPI ParserResult from_urdf(const std::string & content, const ParserParameters & params);
56 
57 RBDYN_PARSERS_DLLAPI ParserResult from_urdf_file(const std::string & file_path, const ParserParameters & params);
58 
59 RBDYN_PARSERS_DLLAPI std::string to_urdf(const ParserResult & res);
60 
61 } // namespace parsers
62 
63 } // namespace rbd
rbd::parsers::attrToList
RBDYN_PARSERS_DLLAPI std::vector< double > attrToList(const tinyxml2::XMLElement &dom, const std::string &attr, const std::vector< double > &def={})
Joint.h
RBDYN_PARSERS_DLLAPI
#define RBDYN_PARSERS_DLLAPI
Definition: api.h:43
MultiBodyConfig.h
rbd
Definition: common.h:20
rbd::parsers::from_urdf_file
RBDYN_PARSERS_DLLAPI ParserResult from_urdf_file(const std::string &file_path, bool fixed=true, const std::vector< std::string > &filteredLinksIn={}, bool transformInertia=true, const std::string &baseLinkIn="", bool withVirtualLinks=true, const std::string &sphericalSuffix="_spherical")
MultiBodyGraph.h
rbd::parsers::attrToVector
RBDYN_PARSERS_DLLAPI Eigen::Vector3d attrToVector(const tinyxml2::XMLElement &dom, const std::string &attr, const Eigen::Vector3d &def=Eigen::Vector3d(0, 0, 0))
common.h
MultiBody.h
tinyxml2
Definition: urdf.h:20
rbd::parsers::to_urdf
RBDYN_PARSERS_DLLAPI std::string to_urdf(const ParserResult &res)
rbd::parsers::from_urdf
RBDYN_PARSERS_DLLAPI ParserResult from_urdf(const std::string &content, bool fixed=true, const std::vector< std::string > &filteredLinksIn={}, bool transformInertia=true, const std::string &baseLinkIn="", bool withVirtualLinks=true, const std::string &sphericalSuffix="_spherical")