ElmoRecorder.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef _ElmoRecorder_H
19 #define _ElmoRecorder_H
20 
21 #include <string>
23 
24 class CanDriveHarmonica;
25 
33 class ElmoRecorder {
34  public:
38  ElmoRecorder(CanDriveHarmonica * pParentHarmonicaDrive);
39 
40  ~ElmoRecorder();
41 
45  int processData(segData& SDOData);
46 
56  int configureElmoRecorder(int iRecordingGap, int driveID, int startImmediately = 1);
57 
62  bool isInitialized(bool initNow);
63 
68  int readoutRecorderTry(int iObjSubIndex);
69 
74  int readoutRecorderTryStatus(int iStatusReg, segData& SDOData);
75 
79  int setLogFilename(std::string sLogFileprefix);
80 
81  private:
86 
88 
89  std::string m_sLogFilename;
90 
95 
97 
102 
107 
111  int readoutRecorder(int iObjSubIndex);
112 
118  int logToFile(std::string filename, std::vector<float> vtValues[]);
119 
123  float convertBinaryToFloat(unsigned int binaryRepresentation);
124 
128  float convertBinaryToHalfFloat(unsigned int iBinaryRepresentation);
129 };
130 
131 #endif
std::string m_sLogFilename
Definition: ElmoRecorder.h:89
bool isInitialized(bool initNow)
float convertBinaryToFloat(unsigned int binaryRepresentation)
ElmoRecorder(CanDriveHarmonica *pParentHarmonicaDrive)
bool m_bIsInitialized
Definition: ElmoRecorder.h:106
float m_fRecordingStepSec
Definition: ElmoRecorder.h:87
int processData(segData &SDOData)
int m_iReadoutRecorderTry
Definition: ElmoRecorder.h:94
int logToFile(std::string filename, std::vector< float > vtValues[])
int m_iCurrentObject
Definition: ElmoRecorder.h:85
int configureElmoRecorder(int iRecordingGap, int driveID, int startImmediately=1)
int readoutRecorderTryStatus(int iStatusReg, segData &SDOData)
int setLogFilename(std::string sLogFileprefix)
int readoutRecorder(int iObjSubIndex)
CanDriveHarmonica * m_pHarmonicaDrive
Definition: ElmoRecorder.h:96
float convertBinaryToHalfFloat(unsigned int iBinaryRepresentation)
int readoutRecorderTry(int iObjSubIndex)


cob_canopen_motor
Author(s): Christian Connette
autogenerated on Wed Apr 7 2021 02:11:53