AGX Dynamics  2.37.2.0
agxModel::UrdfReader Class Reference

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

#include <UrdfReader.h>

Classes

struct  Settings
 Settings for controlling details regarding the URDF reader. More...
 

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, const Settings &settings=Settings())
 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

◆ UrdfReader()

agxModel::UrdfReader::UrdfReader ( )
delete

Member Function Documentation

◆ read()

static agxSDK::AssemblyRef agxModel::UrdfReader::read ( const agx::String &  filePath,
const agx::String &  packagePath = "",
const agx::RealVector *  joints = nullptr,
const Settings &  settings = Settings() 
)
static

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

Parameters
filePath- the path to the URDF file. This can be a relative path using agxIO::Environment::instance()->getFilePath(agxIO::Environment::RESOURCE_PATH) to locate the 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
settings- Settings for the URDF reader.
Returns
an agxSDK::AssemblyRef representing the URDF model

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