Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::srdf::SRDFModel Class Reference

Representation of semantic information about the robot. More...

#include <srdf_model.h>

Public Types

using Ptr = std::shared_ptr<SRDFModel>
using ConstPtr = std::shared_ptr<const SRDFModel>

Public Member Functions

 SRDFModel (const SRDFModel &)=default
SRDFModel & operator= (const SRDFModel &)=default
 SRDFModel (SRDFModel &&)=default
SRDFModel & operator= (SRDFModel &&)=default
void initFile (const tesseract::scene_graph::SceneGraph &scene_graph, const std::string &filename, const tesseract::common::ResourceLocator &locator)
 Load Model given a filename.
void initString (const tesseract::scene_graph::SceneGraph &scene_graph, const std::string &xmlstring, const tesseract::common::ResourceLocator &locator)
 Load Model from a XML-string.
bool saveToFile (const std::string &file_path) const
 Save the model to a file.
void clear ()
 Clear the model.
bool operator== (const SRDFModel &rhs) const
bool operator!= (const SRDFModel &rhs) const

Public Attributes

std::string name { "undefined" }
 The name of the srdf model.
std::array< int, 3 > version { { 1, 0, 0 } }
 The version number major.minor[.patch].
KinematicsInformation kinematics_information
 Contact information related to kinematics.
tesseract::common::ContactManagersPluginInfo contact_managers_plugin_info
 The contact managers plugin information.
tesseract::common::AllowedCollisionMatrix acm
 The allowed collision matrix.
std::shared_ptr< tesseract::common::CollisionMarginData > collision_margin_data
 Collision margin data.
tesseract::common::CalibrationInfo calibration_info
 The calibration information.

Detailed Description

Representation of semantic information about the robot.

Member Function Documentation

◆ initFile()

void tesseract::srdf::SRDFModel::initFile ( const tesseract::scene_graph::SceneGraph & scene_graph,
const std::string & filename,
const tesseract::common::ResourceLocator & locator )

Load Model given a filename.

Exceptions
std::nested_exceptionif an error occurs during parsing srdf

◆ initString()

void tesseract::srdf::SRDFModel::initString ( const tesseract::scene_graph::SceneGraph & scene_graph,
const std::string & xmlstring,
const tesseract::common::ResourceLocator & locator )

Load Model from a XML-string.

Exceptions
std::nested_exceptionif an error occurs during parsing srdf