Drake
parser_urdf.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <map>
4 #include <string>
5 
6 #include "drake/drakeRBM_export.h"
10 #include "drake/thirdParty/zlib/tinyxml2/tinyxml2.h"
11 
12 namespace drake {
13 namespace parsers {
14 namespace urdf {
15 
36 DRAKERBM_EXPORT
37 std::shared_ptr<RigidBodyFrame> MakeRigidBodyFrameFromURDFNode(
38  const RigidBodyTree& tree, const tinyxml2::XMLElement& link,
39  const tinyxml2::XMLElement* pose, const std::string& name);
40 
41 // TODO(liang.fok) Replace this method with one that returns a Model object.
42 //
52 DRAKERBM_EXPORT
54  const std::string& urdf_string,
56 
57 // TODO(liang.fok) Replace this method with one that returns a Model object.
58 //
71 DRAKERBM_EXPORT
73  const std::string& urdf_string,
74  std::map<std::string, std::string>& package_map,
76 
77 
78 // TODO(liang.fok) Replace this method with one that returns a Model object.
79 //
93 DRAKERBM_EXPORT
95  const std::string& urdf_string,
96  const std::string& root_dir,
97  const DrakeJoint::FloatingBaseType floating_base_type,
99 
100 // TODO(liang.fok) Replace this method with one that returns a Model object.
101 //
120 DRAKERBM_EXPORT
122  const std::string& urdf_string,
123  PackageMap& package_map,
124  const std::string& root_dir,
125  const DrakeJoint::FloatingBaseType floating_base_type,
126  std::shared_ptr<RigidBodyFrame> weld_to_frame,
128 
129 // TODO(liang.fok) Replace this method with one that returns a Model object.
130 //
139 DRAKERBM_EXPORT
140 void AddRobotFromURDF(const std::string& urdf_filename,
142 
143 // TODO(liang.fok) Replace this method with one that returns a Model object.
144 //
156 DRAKERBM_EXPORT
157 void AddRobotFromURDF(
158  const std::string& urdf_filename,
159  const DrakeJoint::FloatingBaseType floating_base_type,
161 
162 // TODO(liang.fok) Replace this method with one that returns a Model object.
163 //
177 DRAKERBM_EXPORT
178 void AddRobotFromURDF(
179  const std::string& urdf_filename,
180  const DrakeJoint::FloatingBaseType floating_base_type,
181  std::shared_ptr<RigidBodyFrame> weld_to_frame,
183 
184 // TODO(liang.fok) Replace this method with one that returns a Model object.
185 //
202 DRAKERBM_EXPORT
203 void AddRobotFromURDF(
204  const std::string& urdf_filename,
205  std::map<std::string, std::string>& package_map,
206  const DrakeJoint::FloatingBaseType floating_base_type,
207  std::shared_ptr<RigidBodyFrame> weld_to_frame,
209 
210 } // namespace urdf
211 } // namespace parsers
212 } // namespace drake
void AddRobotFromURDF(const string &urdf_filename, RigidBodyTree *tree)
Adds a URDF model to a rigid body system.
Definition: parser_urdf.cc:1124
void AddRobotFromURDFString(const string &urdf_string, RigidBodyTree *tree)
Adds a URDF model to a rigid body system.
Definition: parser_urdf.cc:1085
Definition: constants.h:3
std::map< std::string, std::string > PackageMap
Definition: xmlUtil.h:159
std::shared_ptr< RigidBodyFrame > MakeRigidBodyFrameFromURDFNode(const RigidBodyTree &tree, const tinyxml2::XMLElement &link, const tinyxml2::XMLElement *pose, const string &name)
Manufactures a RigidBodyFrame from the given URDF link and pose XML nodes.
Definition: parser_urdf.cc:1180
FloatingBaseType
Definition: DrakeJoint.h:50
std::unique_ptr< RigidBodyTree > tree
Definition: rigid_body_tree_test.cc:43
Definition: RigidBodyTree.h:72