3 #include <dart/utils/urdf/urdf.hpp>
12 static dart::utils::DartLoader
URDF;
13 static dart::utils::PackageResourceRetriever
PACKAGE;
24 URDF.addPackageDirectory(package, location);
25 PACKAGE.addPackageDirectory(package, location);
35 for (
const auto &package : packages)
38 auto skeleton =
URDF.parseSkeletonString(text,
"");
42 skeleton->setSelfCollisionCheck(
true);
44 for (
auto *joint : skeleton->getJoints())
45 joint->setPositionLimitEnforced(
true);
47 robot.setSkeleton(skeleton);
55 file =
PACKAGE.getFilePath(uri);
A sampleable goal region for OMPL for a set of TSRs. Samples goals in a separate thread using a clone...
Functions for loading and animating robots in Blender.
std::set< std::string > findPackageURIs(const std::string &string)
Finds all package URIs within a string.
std::string resolvePackage(const std::string &path)
Resolves package:// URLs to their canonical form. The path does not need to exist,...
std::string loadXMLToString(const std::string &path)
Loads an XML or .xacro file to a string.
std::string getPackageFile(const std::string &uri)
Get the filename for a package URI using Dart's lookup.
bool loadURDF(Robot &robot, const std::string &urdf)
Loads a URDF at urdf into a robot.
void addPackage(const std::string &package)
Add a ROS package to Dart's searchable index. Looks up package with rospack.
DART-based robot modeling and planning.
static dart::utils::PackageResourceRetriever PACKAGE
static dart::utils::DartLoader URDF