cisst-saw
Loading...
Searching...
No Matches
mtsVFMesh Class Reference

#include <mtsVFMesh.h>

Inheritance diagram for mtsVFMesh:
mtsVFCartesianTranslation mtsVFBase mtsGenericObject cmnGenericObject

Public Member Functions

 mtsVFMesh ()
 mtsVFMesh (const std::string &name, mtsVFDataBase *data, msh3Mesh &mesh)
void FillInTableauRefs (const mtsVFBase::CONTROLLERMODE mode, const double tickTime) override
 Updates co with virtual fixture data.
void ComputeConstraintSize () override
void ConvertRefs (const mtsVFBase::CONTROLLERMODE mode, const double tickTime) override
 Converts the data in the references if a change in mode is needed.
void TransformMesh (const vctFrm4x4 &transformation, msh3Mesh &mesh)
void ConstructPDTree (msh3Mesh &mesh)
Public Member Functions inherited from mtsVFCartesianTranslation
 mtsVFCartesianTranslation ()
 mtsVFCartesianTranslation (const std::string &name, mtsVFDataBase *data)
void AssignRefs (const mtsVFBase::CONTROLLERMODE, const double, const vctDoubleVec &, vctDoubleMat &, vctDoubleVec &, vctDoubleMat &, vctDoubleVec &, vctDoubleMat &, vctDoubleVec &)
Public Member Functions inherited from mtsVFBase
 mtsVFBase ()
 mtsVFBase (const std::string &name, mtsVFDataBase *data)
 ~mtsVFBase ()
void ReserveSpace (nmrConstraintOptimizer &co)
 Reserves space in the control optimizer.
void LookupStateData (const std::map< std::string, prmKinematicsState * > &k, const std::map< std::string, prmSensorState * > &s)
 Updates internal state data.
void SetTableauRefs (nmrConstraintOptimizer &co)
 Updates internal references with co tableau.
vctDoubleMat Skew (const vctDoubleVec &in)
Public Member Functions inherited from mtsGenericObject
 mtsGenericObject (void)
 mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid)
 mtsGenericObject (const mtsGenericObject &other)
virtual ~mtsGenericObject (void)
mtsGenericObjectoperator= (const mtsGenericObject &other)
bool SetTimestampIfAutomatic (double timestamp)
virtual void ToStream (std::ostream &outputStream) const
virtual void ToStreamRaw (std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const
virtual bool FromStreamRaw (std::istream &inputStream, const char delimiter=' ')
virtual void SerializeRaw (std::ostream &outputStream) const
virtual void DeSerializeRaw (std::istream &inputStream)
size_t ScalarNumber (void) const
bool ScalarNumberIsFixed (void) const
Public Member Functions inherited from cmnGenericObject
virtual ~cmnGenericObject (void)
virtual const cmnClassServicesBaseServices (void) const =0
bool ReconstructFrom (const cmnGenericObject &other)
std::string ToString (void) const
virtual cmnLogger::StreamBufTypeGetLogMultiplexer (void) const
virtual double Scalar (const size_t CMN_UNUSED(index)) const CISST_THROW(std
virtual std::string ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const

Protected Attributes

prmKinematicsState * CurrentKinematics
msh3PDTreeMeshpTreeMesh
msh3AlgPDTreeCPMeshpAlgMesh
vct3 mCurrentPosition

Additional Inherited Members

Public Types inherited from mtsVFBase
enum  CONTROLLERMODE { JPOS = 1 , JVEL = 2 , CARTPOS = 3 , CARTVEL = 4 }
Public Attributes inherited from mtsVFCartesianTranslation
vctDoubleMat IdentitySkewMatrix
vctDoubleVec w
Public Attributes inherited from mtsVFBase
std::string Name
 Name of the virtual fixture.
mtsVFDataBase * Data
 Internally stored data.
std::vector< prmKinematicsState * > Kinematics
 Frame object.
std::vector< prmSensorState * > Sensors
 Sensor object.
vctDoubleVec DOFSelections
vctDynamicMatrixRef< double > ObjectiveMatrixRef
 Objective data reference.
vctDynamicMatrixRef< double > ObjectiveMatrixSlackRef
 Objective slack reference.
vctDynamicVectorRef< double > ObjectiveVectorRef
 Objective vector reference.
vctDynamicMatrixRef< double > IneqConstraintMatrixRef
 Inequality constraint data reference.
vctDynamicMatrixRef< double > IneqConstraintMatrixSlackRef
 Inequality constraint slack reference.
vctDynamicVectorRef< double > IneqConstraintVectorRef
 Inequality constraint vector reference.
vctDynamicVectorRef< double > IneqConstraintVectorSlackRef
 Inequality constraint slack reference.
vctDynamicMatrixRef< double > EqConstraintMatrixRef
 Equality constraint data reference.
vctDynamicMatrixRef< double > EqConstraintMatrixSlackRef
 Equality constraint slack reference.
vctDynamicVectorRef< double > EqConstraintVectorRef
 Equality constraint vector reference.
Static Public Attributes inherited from mtsVFBase
static std::string DefaultKinematicsName

Constructor & Destructor Documentation

◆ mtsVFMesh() [1/2]

mtsVFMesh::mtsVFMesh ( )

◆ mtsVFMesh() [2/2]

mtsVFMesh::mtsVFMesh ( const std::string & name,
mtsVFDataBase * data,
msh3Mesh & mesh )

Constructor

Parameters
nameString name of object

Member Function Documentation

◆ ComputeConstraintSize()

void mtsVFMesh::ComputeConstraintSize ( )
overridevirtual

Computes the necessary size of constraints, modifier the values in Data Overload if constraint size varies (such as mesh constraint)

Reimplemented from mtsVFBase.

◆ ConstructPDTree()

void mtsVFMesh::ConstructPDTree ( msh3Mesh & mesh)

◆ ConvertRefs()

void mtsVFMesh::ConvertRefs ( const mtsVFBase::CONTROLLERMODE mode,
const double TickTime )
overridevirtual

Converts the data in the references if a change in mode is needed.

Reimplemented from mtsVFCartesianTranslation.

◆ FillInTableauRefs()

void mtsVFMesh::FillInTableauRefs ( const mtsVFBase::CONTROLLERMODE mode,
const double tickTime )
overridevirtual

Updates co with virtual fixture data.

FillInTableauRefs

Reimplemented from mtsVFCartesianTranslation.

◆ TransformMesh()

void mtsVFMesh::TransformMesh ( const vctFrm4x4 & transformation,
msh3Mesh & mesh )

Member Data Documentation

◆ CurrentKinematics

prmKinematicsState* mtsVFMesh::CurrentKinematics
protected

◆ mCurrentPosition

vct3 mtsVFMesh::mCurrentPosition
protected

◆ pAlgMesh

msh3AlgPDTreeCPMesh* mtsVFMesh::pAlgMesh
protected

◆ pTreeMesh

msh3PDTreeMesh* mtsVFMesh::pTreeMesh
protected

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