cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
24 #include <sawConstraintController/prmKinematicsState.h>
25 #include <sawConstraintController/prmSensorState.h>
26 #include <sawConstraintController/mtsVFDataSensorCompliance.h>
29 
30 // Always include last!
32 
34 
37 {
39 
40 public:
41 
45 
46  mtsVFSensorCompliance(mtsVFDataSensorCompliance *data) : mtsVFJointVelocity(DefaultKinematicsName,data)
47  {
48  Data->ObjectiveRows = data->Gain.rows();
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->Gain.rows();
58  }
59 
61 
63  void FillInTableauRefs(const mtsVFBase::CONTROLLERMODE mode, const double TickTime);
64 
65 };
66 
68 
69 #endif // _mtsVFSensorCompliance_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Typedef for dynamic vectors.
This is the base class for all virtual fixture objects.
Definition: mtsVFJointVel.h:30
mtsVFSensorCompliance()
Definition: mtsVFSensorCompliance.h:44
mtsVFSensorCompliance(const std::string &name, mtsVFDataSensorCompliance *data)
Definition: mtsVFSensorCompliance.h:54
Typedef for dynamic matrices.
#define CMN_LOG_LOD_RUN_VERBOSE
Definition: cmnLogLoD.h:95
void FillInTableauRefs(const mtsVFBase::CONTROLLERMODE mode, const double TickTime)
Updates co with virtual fixture data.
mtsVFSensorCompliance(mtsVFDataSensorCompliance *data)
Definition: mtsVFSensorCompliance.h:46
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
This is the base class for all virtual fixture objects.
Definition: mtsVFSensorCompliance.h:36
CONTROLLERMODE
Definition: mtsVFBase.h:39
CMN_DECLARE_SERVICES_INSTANTIATION(mtsVFSensorCompliance)
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331