hpp::model::urdf Namespace Reference

Classes

class  Parser
 Parse an URDF file and return a hpp::model::HumanoidRobotPtr_t. More...

Functions

void loadRobotModel (const DevicePtr_t &robot, const JointPtr_t &baseJoint, const std::string &prefix, const std::string &rootJointType, const std::string &package, const std::string &modelName, const std::string &urdfSuffix, const std::string &srdfSuffix)
 Load robot model by name.
void loadRobotModel (const DevicePtr_t &robot, const std::string &rootJointType, const std::string &package, const std::string &modelName, const std::string &urdfSuffix, const std::string &srdfSuffix)
void loadRobotModelFromParameter (const DevicePtr_t &robot, const std::string &rootJointType, const std::string &urdfParameter, const std::string &srdfParameter)
 Load robot model from ROS parameter.
void loadHumanoidModel (const model::HumanoidRobotPtr_t &robot, const JointPtr_t &baseJoint, const std::string &prefix, const std::string &rootJointType, const std::string &package, const std::string &modelName, const std::string &urdfSuffix, const std::string &srdfSuffix)
 Load humanoid robot model by name.
void loadHumanoidModel (const model::HumanoidRobotPtr_t &robot, const std::string &rootJointType, const std::string &package, const std::string &modelName, const std::string &urdfSuffix, const std::string &srdfSuffix)
void loadHumanoidModelFromParameter (const model::HumanoidRobotPtr_t &robot, const std::string &rootJointType, const std::string &urdfParameter, const std::string &srdfParameter)
 Load humanoid robot model from ROS parameter.
void loadUrdfModel (const DevicePtr_t &robot, const JointPtr_t &baseJoint, const std::string &prefix, const std::string &rootJointType, const std::string &package, const std::string &filename)
 Load only urdf model file.
void loadUrdfModel (const DevicePtr_t &robot, const std::string &rootJointType, const std::string &package, const std::string &filename)

Function Documentation

void hpp::model::urdf::loadHumanoidModel ( const model::HumanoidRobotPtr_t robot,
const JointPtr_t baseJoint,
const std::string &  prefix,
const std::string &  rootJointType,
const std::string &  package,
const std::string &  modelName,
const std::string &  urdfSuffix,
const std::string &  srdfSuffix 
)

Load humanoid robot model by name.

Parameters:
robotEmpty robot created before calling the function. Users can pass an instance of a class deriving from HumanoidRobot.
baseJointjoint to which the joint tree is added.
prefixstring to insert before all names (joint, link, body names)
rootJointTypetype of root joint among "anchor", "freeflyer", "planar",
packageros package containing the model
modelNamerobot model name
urdfSuffixsuffix for urdf file
srdfSuffixsuffix for srdf file
Note:
This function reads the following files:
  • package://${modelName}_description/urdf/${modelName}${urdfSuffix}.urdf
  • package://${modelName}_description/srdf/${modelName}${srdfSuffix}.srdf
void hpp::model::urdf::loadHumanoidModel ( const model::HumanoidRobotPtr_t robot,
const std::string &  rootJointType,
const std::string &  package,
const std::string &  modelName,
const std::string &  urdfSuffix,
const std::string &  srdfSuffix 
)
void hpp::model::urdf::loadHumanoidModelFromParameter ( const model::HumanoidRobotPtr_t robot,
const std::string &  rootJointType,
const std::string &  urdfParameter,
const std::string &  srdfParameter 
)

Load humanoid robot model from ROS parameter.

Parameters:
robotEmpty robot created before calling the function. Users can pass an instance of a class deriving from Device.
rootJointTypetype of root joint among "anchor", "freeflyer", "planar",
urdfParameterParameter containing the urdf description of the robot
srdfParameterParameter containing the srdf description of the robot
void hpp::model::urdf::loadRobotModel ( const DevicePtr_t robot,
const JointPtr_t baseJoint,
const std::string &  prefix,
const std::string &  rootJointType,
const std::string &  package,
const std::string &  modelName,
const std::string &  urdfSuffix,
const std::string &  srdfSuffix 
)

Load robot model by name.

Parameters:
robotEmpty robot created before calling the function. Users can pass an instance of a class deriving from Device.
baseJointjoint to which the joint tree is added.
prefixstring to insert before all names (joint, link, body names)
rootJointTypetype of root joint among "anchor", "freeflyer", "planar",
packageros package containing the model
modelNamerobot model name
urdfSuffixsuffix for urdf file
srdfSuffixsuffix for srdf file
Note:
This function reads the following files:
  • package://${modelName}_description/urdf/${modelName}${urdfSuffix}.urdf
  • package://${modelName}_description/srdf/${modelName}${srdfSuffix}.srdf
void hpp::model::urdf::loadRobotModel ( const DevicePtr_t robot,
const std::string &  rootJointType,
const std::string &  package,
const std::string &  modelName,
const std::string &  urdfSuffix,
const std::string &  srdfSuffix 
)
void hpp::model::urdf::loadRobotModelFromParameter ( const DevicePtr_t robot,
const std::string &  rootJointType,
const std::string &  urdfParameter,
const std::string &  srdfParameter 
)

Load robot model from ROS parameter.

Parameters:
robotEmpty robot created before calling the function. Users can pass an instance of a class deriving from Device.
rootJointTypetype of root joint among "anchor", "freeflyer", "planar",
urdfParameterParameter containing the urdf description of the robot
srdfParameterParameter containing the srdf description of the robot
void hpp::model::urdf::loadUrdfModel ( const DevicePtr_t robot,
const JointPtr_t baseJoint,
const std::string &  prefix,
const std::string &  rootJointType,
const std::string &  package,
const std::string &  filename 
)

Load only urdf model file.

Parameters:
robotEmpty robot created before calling the function. Users can pass an instance of a class deriving from Device.
baseJointjoint to which the joint tree is added.
prefixstring to insert before all names (joint, link, body names)
rootJointTypetype of root joint among "anchor", "freeflyer", "planar",
packageros package containing the model
filenamename of the file containing the model.
Note:
This function reads the following file:
  • package://${package}/urdf/${filename}.urdf
void hpp::model::urdf::loadUrdfModel ( const DevicePtr_t robot,
const std::string &  rootJointType,
const std::string &  package,
const std::string &  filename 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends