AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxModel::UrdfReader Class Reference

Class for reading a URDF file into an agxSDK::Assembly. More...

#include <UrdfReader.h>

Public Member Functions

 UrdfReader ()=delete
 

Static Public Member Functions

static agxSDK::AssemblyRef read (const agx::String &filePath, const agx::String &packagePath="", const agx::RealVector *joints=nullptr, bool fixToWorld=false, bool disableLinkedBodies=true)
 Reads a URDF file and returns an agxSDK::Assembly representation of it. More...
 

Detailed Description

Class for reading a URDF file into an agxSDK::Assembly.

Definition at line 30 of file UrdfReader.h.

Constructor & Destructor Documentation

agxModel::UrdfReader::UrdfReader ( )
delete

Member Function Documentation

static agxSDK::AssemblyRef agxModel::UrdfReader::read ( const agx::String &  filePath,
const agx::String &  packagePath = "",
const agx::RealVector *  joints = nullptr,
bool  fixToWorld = false,
bool  disableLinkedBodies = true 
)
static

Reads a URDF file and returns an agxSDK::Assembly representation of it.

Parameters
filePath- the absolute path to the URDF file
packagePath- the absolute path to the 'package://' portion of any filename attributes in the URDF file
joints- initial joint positions. Note that only revolute, continuous and prismatic joints are counted so the number of joint elements should match the total number of those joint types in the URDF model
fixToWorld- if set to true the base link will be attached to the world with a agx::LockJoint
disableLinkedBodies- If true, the collision detection between linked/constrained will be disabled.
Returns
an agxSDK::AssemblyRef representing the URDF model

The documentation for this class was generated from the following file: