Loading...
Searching...
No Matches
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>
12
13#include <SpaceVecAlg/SpaceVecAlg>
14
15#include <boost/variant.hpp>
16
17#include <Eigen/Core>
18#include <string>
19
20namespace tinyxml2
21{
22class XMLElement;
23}
24
25namespace rbd
26{
27
28namespace parsers
29{
30
31RBDYN_PARSERS_DLLAPI std::vector<double> attrToList(const tinyxml2::XMLElement & dom,
32 const std::string & attr,
33 const std::vector<double> & def = {});
34
35RBDYN_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
39RBDYN_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
47RBDYN_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
55RBDYN_PARSERS_DLLAPI ParserResult from_urdf(const std::string & content, const ParserParameters & params);
56
57RBDYN_PARSERS_DLLAPI ParserResult from_urdf_file(const std::string & file_path, const ParserParameters & params);
58
59RBDYN_PARSERS_DLLAPI std::string to_urdf(const ParserResult & res);
60
61} // namespace parsers
62
63} // namespace rbd
#define RBDYN_PARSERS_DLLAPI
Definition api.h:43
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")
RBDYN_PARSERS_DLLAPI Eigen::Vector3d attrToVector(const tinyxml2::XMLElement &dom, const std::string &attr, const Eigen::Vector3d &def=Eigen::Vector3d(0, 0, 0))
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")
RBDYN_PARSERS_DLLAPI std::vector< double > attrToList(const tinyxml2::XMLElement &dom, const std::string &attr, const std::vector< double > &def={})
RBDYN_PARSERS_DLLAPI std::string to_urdf(const ParserResult &res)
Definition common.h:21
Definition urdf.h:21
Definition common.h:142
Definition common.h:229