Drake
drake::parsers::urdf Namespace Reference

Functions

void AddRobotFromURDFString (const std::string &urdf_string, RigidBodyTree *tree)
 Adds a URDF model to a rigid body system. More...
 
void AddRobotFromURDFString (const string &urdf_string, PackageMap &package_map, RigidBodyTree *tree)
 
void AddRobotFromURDFString (const std::string &urdf_string, const std::string &root_dir, const DrakeJoint::FloatingBaseType floating_base_type, RigidBodyTree *tree)
 Adds a URDF model to a rigid body system. More...
 
void AddRobotFromURDFString (const std::string &urdf_string, PackageMap &package_map, const std::string &root_dir, const DrakeJoint::FloatingBaseType floating_base_type, std::shared_ptr< RigidBodyFrame > weld_to_frame, RigidBodyTree *tree)
 Adds a URDF model to a rigid body system. More...
 
void AddRobotFromURDF (const std::string &urdf_filename, RigidBodyTree *tree)
 Adds a URDF model to a rigid body system. More...
 
void AddRobotFromURDF (const std::string &urdf_filename, const DrakeJoint::FloatingBaseType floating_base_type, RigidBodyTree *tree)
 Adds a URDF model to a rigid body system. More...
 
void AddRobotFromURDF (const std::string &urdf_filename, const DrakeJoint::FloatingBaseType floating_base_type, std::shared_ptr< RigidBodyFrame > weld_to_frame, RigidBodyTree *tree)
 Adds a URDF model to a rigid body system. More...
 
void AddRobotFromURDF (const string &urdf_filename, PackageMap &package_map, const DrakeJoint::FloatingBaseType floating_base_type, std::shared_ptr< RigidBodyFrame > weld_to_frame, RigidBodyTree *tree)
 
std::shared_ptr< RigidBodyFrameMakeRigidBodyFrameFromURDFNode (const RigidBodyTree &tree, const tinyxml2::XMLElement &link, const tinyxml2::XMLElement *pose, const std::string &name)
 Manufactures a RigidBodyFrame from the given URDF link and pose XML nodes. More...
 
DRAKERBM_EXPORT void AddRobotFromURDFString (const std::string &urdf_string, std::map< std::string, std::string > &package_map, RigidBodyTree *tree)
 Adds a URDF model to a rigid body system. More...
 
DRAKERBM_EXPORT void AddRobotFromURDF (const std::string &urdf_filename, std::map< std::string, std::string > &package_map, const DrakeJoint::FloatingBaseType floating_base_type, std::shared_ptr< RigidBodyFrame > weld_to_frame, RigidBodyTree *tree)
 Adds a URDF model to a rigid body system. More...
 

Function Documentation

DRAKERBM_EXPORT void drake::parsers::urdf::AddRobotFromURDF ( const std::string &  urdf_filename,
std::map< std::string, std::string > &  package_map,
const DrakeJoint::FloatingBaseType  floating_base_type,
std::shared_ptr< RigidBodyFrame weld_to_frame,
RigidBodyTree tree 
)

Adds a URDF model to a rigid body system.

The model is connected to the world via a joint of type DrakeJoint::ROLLPITCHYAW joint. The model's frame is equal to the world's coordinate frame.

Parameters
[in]urdf_filenameThe URDF file containing the model to be added.
[in]package_mapA map of ROS package names to their paths. These are the packages to search through when finding files referenced in the URDF.
[in]floating_base_typeThe type of joint that connects the model's root to the existing rigid body tree.
[in]weld_to_frameThe frame to which to connect the new model.
[out]treeThe RigidBodyTree to which to add the model. A std::runtime_error is thrown if the pointer is null.
DRAKERBM_EXPORT void AddRobotFromURDF ( const std::string &  urdf_filename,
RigidBodyTree tree 
)

Adds a URDF model to a rigid body system.

The model is connected to the world via a joint of type DrakeJoint::ROLLPITCHYAW joint. The model's frame is equal to the world's coordinate frame.

Parameters
[in]urdf_filenameThe URDF file containing the model to be added.
[out]treeThe RigidBodyTree to which to add the model. A std::runtime_error is thrown if the pointer is null.

Here is the caller graph for this function:

DRAKERBM_EXPORT void AddRobotFromURDF ( const std::string &  urdf_filename,
const DrakeJoint::FloatingBaseType  floating_base_type,
RigidBodyTree tree 
)

Adds a URDF model to a rigid body system.

The model is connected to the world via a joint of type DrakeJoint::ROLLPITCHYAW joint. The model's frame is equal to the world's coordinate frame.

Parameters
[in]urdf_filenameThe URDF file containing the model to be added.
[in]floating_base_typeThe type of joint that connects the model's root to the existing rigid body tree.
[out]treeThe RigidBodyTree to which to add the model. A std::runtime_error is thrown if the pointer is null.

Here is the call graph for this function:

DRAKERBM_EXPORT void AddRobotFromURDF ( const std::string &  urdf_filename,
const DrakeJoint::FloatingBaseType  floating_base_type,
std::shared_ptr< RigidBodyFrame weld_to_frame,
RigidBodyTree tree 
)

Adds a URDF model to a rigid body system.

The model is connected to the world via a joint of type DrakeJoint::ROLLPITCHYAW joint. The model's frame is equal to the world's coordinate frame.

Parameters
[in]urdf_filenameThe URDF file containing the model to be added.
[in]floating_base_typeThe type of joint that connects the model's root to the existing rigid body tree.
[in]weld_to_frameThe frame to which to connect the new model.
[out]treeThe RigidBodyTree to which to add the model. A std::runtime_error is thrown if the pointer is null.

Here is the call graph for this function:

void drake::parsers::urdf::AddRobotFromURDF ( const string &  urdf_filename,
PackageMap package_map,
const DrakeJoint::FloatingBaseType  floating_base_type,
std::shared_ptr< RigidBodyFrame weld_to_frame,
RigidBodyTree tree 
)

Here is the call graph for this function:

DRAKERBM_EXPORT void drake::parsers::urdf::AddRobotFromURDFString ( const std::string &  urdf_string,
std::map< std::string, std::string > &  package_map,
RigidBodyTree tree 
)

Adds a URDF model to a rigid body system.

The model is connected to the world via a joint of type DrakeJoint::ROLLPITCHYAW joint. The model's frame is equal to the world's coordinate frame.

Parameters
[in]urdf_stringThe URDF description of the model to be added to tree.
[in]package_mapA map of ROS package names to their paths. These are the packages to search through when finding files referenced in the URDF.
[out]treeThe RigidBodyTree to which to add the model. A std::runtime_error is thrown if the pointer is null.
DRAKERBM_EXPORT void AddRobotFromURDFString ( const std::string &  urdf_string,
RigidBodyTree tree 
)

Adds a URDF model to a rigid body system.

The model is connected to the world via a joint of type DrakeJoint::ROLLPITCHYAW joint. The model's frame is equal to the world's coordinate frame.

Parameters
[in]urdf_stringThe URDF description of the model to be added to tree.
[out]treeThe RigidBodyTree to which to add the model. A std::runtime_error is thrown if the pointer is null.

Here is the caller graph for this function:

void drake::parsers::urdf::AddRobotFromURDFString ( const string &  urdf_string,
PackageMap package_map,
RigidBodyTree tree 
)

Here is the call graph for this function:

DRAKERBM_EXPORT void AddRobotFromURDFString ( const std::string &  urdf_string,
const std::string &  root_dir,
const DrakeJoint::FloatingBaseType  floating_base_type,
RigidBodyTree tree 
)

Adds a URDF model to a rigid body system.

Parameters
[in]urdf_stringThe URDF description of the model to be added to tree.
[in]root_dirThe root directory in which to search for files mentioned in the URDF.
[in]floating_base_typeThe type of joint that connects the model's root to the existing rigid body tree.
[out]treeThe RigidBodyTree to which to add the model. A std::runtime_error is thrown if the pointer is null.

Here is the call graph for this function:

DRAKERBM_EXPORT void AddRobotFromURDFString ( const std::string &  urdf_string,
PackageMap package_map,
const std::string &  root_dir,
const DrakeJoint::FloatingBaseType  floating_base_type,
std::shared_ptr< RigidBodyFrame weld_to_frame,
RigidBodyTree tree 
)

Adds a URDF model to a rigid body system.

Parameters
[in]urdf_stringThe URDF description of the model to be added to tree.
[in]package_mapA map of ROS package names to their paths. These are the packages to search through when finding files referenced in the URDF.
[in]root_dirThe root directory in which to search for files mentioned in the URDF.
[in]floating_base_typeThe type of joint that connects the model's root to the existing rigid body tree.
[in]weld_to_frameThe frame to which to connect the new model.
[out]treeThe RigidBodyTree to which to add the model. A std::runtime_error is thrown if the pointer is null.

Here is the call graph for this function:

DRAKERBM_EXPORT std::shared_ptr< RigidBodyFrame > MakeRigidBodyFrameFromURDFNode ( const RigidBodyTree tree,
const tinyxml2::XMLElement &  link,
const tinyxml2::XMLElement *  pose,
const std::string &  name 
)

Manufactures a RigidBodyFrame from the given URDF link and pose XML nodes.

The link name must exist in the given model. Otherwise, a runtime error is thrown.

Parameters
[in]treeThe rigid body tree that holds the rigid body to which the new RigidBodyFrame is attached.
[in]linkThe URDF XML node describing the rigid body to which the new RigidBodyFrame is attached.
[in]poseThe URDF XML node describing the pose of the new RigidBodyFrame in the frame of the rigid body to which it is attached. If this is nullptr, a pose of zero (i.e., identity transform) is used.
[in]nameThe name of the new RigidBodyFrame.
Returns
The new RigidBodyFrame.
Exceptions
std::runtime_errorif the rigid body to which the new RigidBodyFrame is attached is not found.

Here is the call graph for this function:

Here is the caller graph for this function: