cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsATINetFTConfig.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): Preetham Chalasani, Anton Deguet
6  Created on: 2013
7 
8  (C) Copyright 2013-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 _mtsATINetFTConfig_h
20 #define _mtsATINetFTConfig_h
21 
22 #include <iostream>
26 
27 // Always include last
29 
31 {
33 
34 public:
37 
38  bool LoadCalibrationFile(const std::string & calFile);
39  bool ParseCalibrationFile(const std::string & calFile);
40 
41 protected:
42  vct6 StrToVec(const std::string & strArray, char delim);
43 
44 private:
45  struct CalibrationInfo {
46  std::string SerialNumber;
47  std::string BodyStyle;
48  std::string CalibrationPartNumber;
49  std::string Family;
50  std::string CalibrationDate;
51  vctDoubleMat Matrix;
52  vct6 GaugeOffsets;
53  vct6 CalibrationIndex;
54  };
55 
56  struct GeneralInfo {
57  std::string ForceUnits;
58  std::string TorqueUnits;
59  double CountsPerForce;
60  double CountsPerTorque;
61  vct6 MaxRatings;
62  vct6 Resolutions;
63  vct6 Ranges;
64  vct6 ScaleFactors16Bit;
65  };
66 
67 public:
68  CalibrationInfo CalibInfo;
69  GeneralInfo GenInfo;
70 
71 };
72 
74 
75 #endif // _mtsATINetFTConfig_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Definition: mtsATINetFTConfig.h:30
GeneralInfo GenInfo
Definition: mtsATINetFTConfig.h:69
Typedef for fixed size vectors.
Base class for high level objects.
Definition: cmnGenericObject.h:51
Typedef for dynamic matrices.
#define CMN_LOG_ALLOW_ERRORS_AND_WARNINGS
Definition: cmnLogLoD.h:72
CalibrationInfo CalibInfo
Definition: mtsATINetFTConfig.h:68
Defines cmnGenericObject.
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202