cisst-saw
Loading...
Searching...
No Matches
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{
38 CMN_DECLARE_SERVICES(CMN_DYNAMIC_CREATION, CMN_LOG_LOD_RUN_VERBOSE);
39
40public:
41
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
70
71#endif // _mtsVFSensorCompliance_h
static std::string DefaultKinematicsName
Definition mtsVFBase.h:53
CONTROLLERMODE
Definition mtsVFBase.h:39
mtsVFDataBase * Data
Internally stored data.
Definition mtsVFBase.h:45
mtsVFJointVelocity()
Definition mtsVFJointVel.h:38
This is the base class for all virtual fixture objects.
Definition mtsVFSensorCompliance.h:37
mtsVFSensorCompliance()
Definition mtsVFSensorCompliance.h:44
mtsVFSensorCompliance(mtsVFDataSensorCompliance *data)
Definition mtsVFSensorCompliance.h:46
mtsVFSensorCompliance(const std::string &name, mtsVFDataSensorCompliance *data)
Definition mtsVFSensorCompliance.h:54
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.
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:328
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_LOD_RUN_VERBOSE
Definition cmnLogLoD.h:95
Typedef for dynamic matrices.
Typedef for dynamic vectors.