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

This is the base class for all virtual fixture objects. More...

#include <mtsVFJointVel.h>

Inheritance diagram for mtsVFJointVelocity:
mtsVFBase mtsGenericObject cmnGenericObject mtsVFSensorCompliance

Public Member Functions

 mtsVFJointVelocity ()
 mtsVFJointVelocity (const std::string &name, mtsVFDataBase *data)
void FillInTableauRefs (const mtsVFBase::CONTROLLERMODE mode, const double TickTime)
 Updates co with virtual fixture data.
void ConvertRefs (const mtsVFBase::CONTROLLERMODE mode, const double TickTime)
 Converts the data in the references if a change in mode is needed.
Public Member Functions inherited from mtsVFBase
 mtsVFBase ()
 mtsVFBase (const std::string &name, mtsVFDataBase *data)
 ~mtsVFBase ()
virtual void ComputeConstraintSize ()
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)
virtual void AssignRefs (const mtsVFBase::CONTROLLERMODE, const double, const vctDoubleVec &, vctDoubleMat &, vctDoubleVec &, vctDoubleMat &, vctDoubleVec &, vctDoubleMat &, vctDoubleVec &)
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

Additional Inherited Members

Public Types inherited from mtsVFBase
enum  CONTROLLERMODE { JPOS = 1 , JVEL = 2 , CARTPOS = 3 , CARTVEL = 4 }
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

Detailed Description

This is the base class for all virtual fixture objects.

mtsVFJointVel: A class that contains logic for the implementation of virtual fixtures

Constructor & Destructor Documentation

◆ mtsVFJointVelocity() [1/2]

mtsVFJointVelocity::mtsVFJointVelocity ( )
inline

Constructor

◆ mtsVFJointVelocity() [2/2]

mtsVFJointVelocity::mtsVFJointVelocity ( const std::string & name,
mtsVFDataBase * data )
inline

Constructor

Parameters
nameString name of object
dataData passed from remote user

Member Function Documentation

◆ ConvertRefs()

void mtsVFJointVelocity::ConvertRefs ( const mtsVFBase::CONTROLLERMODE mode,
const double TickTime )
virtual

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

Implements mtsVFBase.

Reimplemented in mtsVFSensorCompliance.

◆ FillInTableauRefs()

void mtsVFJointVelocity::FillInTableauRefs ( const mtsVFBase::CONTROLLERMODE mode,
const double TickTime )
virtual

Updates co with virtual fixture data.

FillInTableauRefs

Implements mtsVFBase.

Reimplemented in mtsVFSensorCompliance.


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