iCub-main
eo_ftsens_privData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2018 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  * Author: Valentina Gaggero
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef __eo_ftsens_privData_h__
10 #define __eo_ftsens_privData_h__
11 
12 #include <mutex>
13 
15 
16 #include "serviceParser.h"
17 
18 namespace yarp {
19  namespace dev {
20  class eo_ftsens_privData;
21  }
22 }
23 
25 {
26 public:
27 
28  enum { strain_Channels = 6, strain_FormatData = 16 };
29 
30  std::mutex mtx;
31  std::string devicename;
32  std::vector<double> analogdata;
33  std::vector<double> offset;
34  std::vector<double> scaleFactor;
35 
39 
43  std::string frameName;
44 
45 
46  eo_ftsens_privData(std::string name);
48 
49  bool fromConfig(yarp::os::Searchable &config, servConfigFTsensor_t &serviceConfig);
50  bool initRegulars(servConfigFTsensor_t &serviceConfig);
51  void printServiceConfig(servConfigFTsensor_t &serviceConfig);
52  bool fillScaleFactor(servConfigFTsensor_t &serviceConfig);
53  bool sendConfig2Strain(servConfigFTsensor_t &serviceConfig);
54  bool updateStrainValues(eOprotID32_t id32, double timestamp, void* rxdata);
55  bool fillTemperatureEthServiceInfo(eOmn_serv_parameter_t &ftSrv, eOmn_serv_parameter_t &tempSrv);
56 
57 };
58 
59 #endif
60 
void printServiceConfig(servConfigFTsensor_t &serviceConfig)
bool updateStrainValues(eOprotID32_t id32, double timestamp, void *rxdata)
bool fromConfig(yarp::os::Searchable &config, servConfigFTsensor_t &serviceConfig)
bool initRegulars(servConfigFTsensor_t &serviceConfig)
std::vector< double > offset
bool fillScaleFactor(servConfigFTsensor_t &serviceConfig)
bool sendConfig2Strain(servConfigFTsensor_t &serviceConfig)
std::vector< double > scaleFactor
std::vector< double > analogdata
bool fillTemperatureEthServiceInfo(eOmn_serv_parameter_t &ftSrv, eOmn_serv_parameter_t &tempSrv)
Copyright (C) 2008 RobotCub Consortium.