cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
sawConstraintController
components
include
sawConstraintController
mtsVFSensorCompliance.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3
4
/*
5
Author(s): Paul Wilkening
6
Created on: 2014
7
8
(C) Copyright 2014 Johns Hopkins University (JHU), All Rights Reserved.
9
10
--- begin cisst license - do not edit ---
11
12
This software is provided "as is" under an open source license, with
13
no warranty. The complete license can be found in license.txt and
14
http://www.cisst.org/cisst/license.txt.
15
16
--- end cisst license ---
17
*/
18
19
#ifndef _mtsVFSensorCompliance_h
20
#define _mtsVFSensorCompliance_h
21
22
#include <
cisstVector/vctDynamicVectorTypes.h
>
23
#include <
cisstVector/vctDynamicMatrixTypes.h
>
24
#include <sawConstraintController/prmKinematicsState.h>
25
#include <sawConstraintController/prmSensorState.h>
26
#include <sawConstraintController/mtsVFDataSensorCompliance.h>
27
#include <
sawConstraintController/mtsVFBase.h
>
28
#include <
sawConstraintController/mtsVFJointVel.h
>
29
30
// Always include last!
31
#include <
sawConstraintController/sawConstraintControllerExport.h
>
32
34
36
class
CISST_EXPORT
mtsVFSensorCompliance
:
public
mtsVFJointVelocity
37
{
38
CMN_DECLARE_SERVICES(
CMN_DYNAMIC_CREATION
,
CMN_LOG_LOD_RUN_VERBOSE
);
39
40
public
:
41
44
mtsVFSensorCompliance
() :
mtsVFJointVelocity
(){}
45
46
mtsVFSensorCompliance
(mtsVFDataSensorCompliance *data) :
mtsVFJointVelocity
(
DefaultKinematicsName
,data)
47
{
48
Data
->ObjectiveRows = data->ObjectiveRows;
49
}
50
54
mtsVFSensorCompliance
(
const
std::string & name, mtsVFDataSensorCompliance * data) :
mtsVFJointVelocity
(name,data)
55
{
56
//assuming gain is properly sized for now, if not will throw an error later
57
Data
->ObjectiveRows = data->ObjectiveRows;
58
}
59
61
63
void
FillInTableauRefs
(
const
mtsVFBase::CONTROLLERMODE
mode,
const
double
tickTime);
64
65
void
ConvertRefs
(
const
mtsVFBase::CONTROLLERMODE
mode,
const
double
tickTime);
66
67
};
68
69
CMN_DECLARE_SERVICES_INSTANTIATION
(
mtsVFSensorCompliance
);
70
71
#endif
// _mtsVFSensorCompliance_h
mtsVFBase::DefaultKinematicsName
static std::string DefaultKinematicsName
Definition
mtsVFBase.h:53
mtsVFBase::CONTROLLERMODE
CONTROLLERMODE
Definition
mtsVFBase.h:39
mtsVFBase::Data
mtsVFDataBase * Data
Internally stored data.
Definition
mtsVFBase.h:45
mtsVFJointVelocity::mtsVFJointVelocity
mtsVFJointVelocity()
Definition
mtsVFJointVel.h:38
mtsVFSensorCompliance
This is the base class for all virtual fixture objects.
Definition
mtsVFSensorCompliance.h:37
mtsVFSensorCompliance::mtsVFSensorCompliance
mtsVFSensorCompliance()
Definition
mtsVFSensorCompliance.h:44
mtsVFSensorCompliance::mtsVFSensorCompliance
mtsVFSensorCompliance(mtsVFDataSensorCompliance *data)
Definition
mtsVFSensorCompliance.h:46
mtsVFSensorCompliance::mtsVFSensorCompliance
mtsVFSensorCompliance(const std::string &name, mtsVFDataSensorCompliance *data)
Definition
mtsVFSensorCompliance.h:54
mtsVFSensorCompliance::FillInTableauRefs
void FillInTableauRefs(const mtsVFBase::CONTROLLERMODE mode, const double tickTime)
Updates co with virtual fixture data.
mtsVFSensorCompliance::ConvertRefs
void ConvertRefs(const mtsVFBase::CONTROLLERMODE mode, const double tickTime)
Converts the data in the references if a change in mode is needed.
CMN_DECLARE_SERVICES_INSTANTIATION
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition
cmnClassRegisterMacros.h:199
CMN_DYNAMIC_CREATION
const int CMN_DYNAMIC_CREATION
Definition
cmnClassRegisterMacros.h:328
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
CMN_LOG_LOD_RUN_VERBOSE
#define CMN_LOG_LOD_RUN_VERBOSE
Definition
cmnLogLoD.h:95
mtsVFBase.h
mtsVFJointVel.h
sawConstraintControllerExport.h
vctDynamicMatrixTypes.h
Typedef for dynamic matrices.
vctDynamicVectorTypes.h
Typedef for dynamic vectors.
Generated by
1.18.0