TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
Model Class Reference

base class for representing a multi-body system More...

#include <model.h>

Inheritance diagram for Model:
[legend]
Collaboration diagram for Model:
[legend]

Public Member Functions

 Model ()
 
 Model (const Model &rhs)
 
void clear () override
 
void setName (const std::string &n)
 
std::string getName () const
 
bool isA (const char *name) override
 
void print (std::ostream &os) override
 
const char * getTypename () override
 
bool empty () const override
 
void setLink (std::shared_ptr< Link > link)
 
void setLink (std::vector< std::shared_ptr< Link > > link)
 
void setJoint (std::vector< std::shared_ptr< Joint > > joint)
 
void setJoint (std::shared_ptr< Joint > joint)
 
void setJoint (std::shared_ptr< Joint > joint, const std::string &parent, const std::string &child)
 
std::vector< std::shared_ptr< Joint > > getJoints () const
 
std::vector< std::shared_ptr< Link > > getLinks () const
 
 ~Model ()
 

Additional Inherited Members

- Protected Member Functions inherited from ObjectBase
 ObjectBase ()
 
virtual ~ObjectBase ()
 
virtual ObjectBasegetPointer ()
 

Detailed Description

base class for representing a multi-body system

Note
The model is a container for links, joints, and sensors. checking the multi-body system for consistency and completeness. is not fully implemented yet, only parents and children links are checked, with the graph structure of the model.

Constructor & Destructor Documentation

◆ Model() [1/2]

Model::Model ( )

◆ Model() [2/2]

Model::Model ( const Model rhs)

◆ ~Model()

Model::~Model ( )

Member Function Documentation

◆ clear()

void Model::clear ( )
overridevirtual

Implements ObjectBase.

◆ empty()

bool Model::empty ( ) const
overridevirtual

Implements ObjectBase.

◆ getJoints()

std::vector< std::shared_ptr< Joint > > Model::getJoints ( ) const

◆ getLinks()

std::vector< std::shared_ptr< Link > > Model::getLinks ( ) const

◆ getName()

std::string Model::getName ( ) const

◆ getTypename()

const char * Model::getTypename ( )
overridevirtual

Implements ObjectBase.

◆ isA()

bool Model::isA ( const char *  name)
overridevirtual

Implements ObjectBase.

◆ print()

void Model::print ( std::ostream &  os)
overridevirtual

Implements ObjectBase.

◆ setJoint() [1/3]

void Model::setJoint ( std::shared_ptr< Joint joint)

◆ setJoint() [2/3]

void Model::setJoint ( std::shared_ptr< Joint joint,
const std::string &  parent,
const std::string &  child 
)

◆ setJoint() [3/3]

void Model::setJoint ( std::vector< std::shared_ptr< Joint > >  joint)

◆ setLink() [1/2]

void Model::setLink ( std::shared_ptr< Link link)

◆ setLink() [2/2]

void Model::setLink ( std::vector< std::shared_ptr< Link > >  link)

◆ setName()

void Model::setName ( const std::string &  n)

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