33 #ifndef DART_UTILS_URDF_DARTLOADER_HPP_
34 #define DART_UTILS_URDF_DARTLOADER_HPP_
37 #include <Eigen/Geometry>
104 const std::string& _packageDirectory);
113 const std::string& _urdfString,
const common::Uri& _baseUri,
122 const std::string& _urdfString,
const common::Uri& _baseUri,
126 typedef std::shared_ptr<dynamics::BodyNode::Properties>
BodyPropPtr;
130 const urdf::ModelInterface* _model,
135 const urdf::ModelInterface* model,
137 const urdf::Link* _lk,
143 const urdf::ModelInterface* model,
145 const urdf::Link* _lk);
147 template <
class VisualOrCollision>
153 const urdf::Joint* _jt,
161 const urdf::Link* _lk,
167 const urdf::ModelInterface* model,
168 const urdf::Link* lk,
176 static Eigen::Isometry3d
toEigen(
const urdf::Pose& _pose);
182 std::string &_output);
BodyPropPtr properties
Definition: SdfParser.cpp:80
Definition: CompositeData.hpp:180
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:78
Definition: DartLoader.hpp:79
utils::CompositeResourceRetrieverPtr mRetriever
Definition: DartLoader.hpp:186
static dynamics::ShapePtr createShape(const VisualOrCollision *_vizOrCol, const common::Uri &_baseUri, const common::ResourceRetrieverPtr &_resourceRetriever)
@function createShape
Definition: DartLoader.cpp:606
static Eigen::Isometry3d toEigen(const urdf::Pose &_pose)
@function pose2Affine3d
Definition: DartLoader.cpp:687
dart::simulation::WorldPtr parseWorld(const common::Uri &_uri, const common::ResourceRetrieverPtr &_resourceRetriever=nullptr)
Parse a file to produce a World.
Definition: DartLoader.cpp:126
static dart::dynamics::SkeletonPtr modelInterfaceToSkeleton(const urdf::ModelInterface *_model, const common::Uri &_baseUri, const common::ResourceRetrieverPtr &_resourceRetriever)
@function modelInterfaceToSkeleton
Definition: DartLoader.cpp:197
void addPackageDirectory(const std::string &_packageName, const std::string &_packageDirectory)
Specify the directory of a ROS package.
Definition: DartLoader.cpp:75
static bool createSkeletonRecursive(const urdf::ModelInterface *model, dynamics::SkeletonPtr _skel, const urdf::Link *_lk, dynamics::BodyNode *_parent, const common::Uri &_baseUri, const common::ResourceRetrieverPtr &_resourceRetriever)
Definition: DartLoader.cpp:272
dart::simulation::WorldPtr parseWorldString(const std::string &_urdfString, const common::Uri &_baseUri, const common::ResourceRetrieverPtr &_resourceRetriever=nullptr)
Parse a text string to produce a World.
Definition: DartLoader.cpp:140
common::ResourceRetrieverPtr getResourceRetriever(const common::ResourceRetrieverPtr &_resourceRetriever)
Definition: DartLoader.cpp:666
static dynamics::BodyNode * createDartJointAndNode(const urdf::Joint *_jt, const dynamics::BodyNode::Properties &_body, dynamics::BodyNode *_parent, dynamics::SkeletonPtr _skeleton, const common::Uri &_baseUri, const common::ResourceRetrieverPtr &_resourceRetriever)
@function createDartJoint
Definition: DartLoader.cpp:375
static bool addMimicJointsRecursive(const urdf::ModelInterface *model, dynamics::SkeletonPtr _skel, const urdf::Link *_lk)
Definition: DartLoader.cpp:306
common::LocalResourceRetrieverPtr mLocalRetriever
Definition: DartLoader.hpp:184
std::shared_ptr< dynamics::Joint::Properties > JointPropPtr
Definition: DartLoader.hpp:127
static bool readFileToString(const common::ResourceRetrieverPtr &_resourceRetriever, const common::Uri &_uri, std::string &_output)
@function readXml
Definition: DartLoader.cpp:358
std::shared_ptr< dynamics::BodyNode::Properties > BodyPropPtr
Definition: DartLoader.hpp:126
static bool createShapeNodes(const urdf::ModelInterface *model, const urdf::Link *lk, dynamics::BodyNode *bodyNode, const common::Uri &baseUri, const common::ResourceRetrieverPtr &resourceRetriever)
Definition: DartLoader.cpp:558
dynamics::SkeletonPtr parseSkeletonString(const std::string &_urdfString, const common::Uri &_baseUri, const common::ResourceRetrieverPtr &_resourceRetriever=nullptr)
Parse a text string to produce a Skeleton.
Definition: DartLoader.cpp:104
DartLoader()
Constructor with the default ResourceRetriever.
Definition: DartLoader.cpp:65
static bool createDartNodeProperties(const urdf::Link *_lk, dynamics::BodyNode::Properties &properties, const common::Uri &_baseUri, const common::ResourceRetrieverPtr &_resourceRetriever)
@function createDartNode
Definition: DartLoader.cpp:508
utils::PackageResourceRetrieverPtr mPackageRetriever
Definition: DartLoader.hpp:185
dynamics::SkeletonPtr parseSkeleton(const common::Uri &_uri, const common::ResourceRetrieverPtr &_resourceRetriever=nullptr)
Parse a file to produce a Skeleton.
Definition: DartLoader.cpp:81
::fcl::Vec3f Vector3
Definition: BackwardCompatibility.hpp:140
std::shared_ptr< ResourceRetriever > ResourceRetrieverPtr
Definition: ResourceRetriever.hpp:76
std::shared_ptr< LocalResourceRetriever > LocalResourceRetrieverPtr
Definition: LocalResourceRetriever.hpp:58
std::shared_ptr< Shape > ShapePtr
Definition: SmartPointer.hpp:81
std::shared_ptr< Skeleton > SkeletonPtr
Definition: SmartPointer.hpp:60
std::shared_ptr< World > WorldPtr
Definition: SmartPointer.hpp:41
std::shared_ptr< CompositeResourceRetriever > CompositeResourceRetrieverPtr
Definition: CompositeResourceRetriever.hpp:88
std::shared_ptr< PackageResourceRetriever > PackageResourceRetrieverPtr
Definition: PackageResourceRetriever.hpp:107
Definition: BulletCollisionDetector.cpp:63
Definition: DartLoader.hpp:52
The Uri struct provides URI parsing and merging functionality based on RFC 3986.
Definition: Uri.hpp:87