iol
iolReachingCalibration_IDL.h
1 /*
2  * Copyright (C) 2006-2019 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
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 // Autogenerated by Thrift Compiler (0.12.0-yarped)
10 //
11 // This is an automatically generated file.
12 // It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
13 
14 #ifndef YARP_THRIFT_GENERATOR_SERVICE_IOLREACHINGCALIBRATION_IDL_H
15 #define YARP_THRIFT_GENERATOR_SERVICE_IOLREACHINGCALIBRATION_IDL_H
16 
17 #include <yarp/os/Wire.h>
18 #include <yarp/os/idl/WireTypes.h>
19 #include <src/CalibMatrixReq.h>
20 #include <src/CalibPointReq.h>
21 
27  public yarp::os::Wire
28 {
29 public:
30  // Constructor
32 
41  virtual bool calibration_start(const std::string& hand, const std::string& object, const std::string& entry = "");
42 
47  virtual bool calibration_stop();
48 
57  virtual bool calibration_clear(const std::string& hand, const std::string& object, const std::string& entry = "");
58 
63  virtual std::vector<std::string> calibration_list();
64 
75  virtual CalibPointReq get_location(const std::string& hand, const std::string& object, const std::string& entry = "");
76 
88  virtual CalibPointReq get_location_nolook(const std::string& entry, const double x, const double y, const double z, const bool invert = 0);
89 
95  virtual CalibMatrixReq get_matrix(const std::string& entry);
96 
108  virtual bool add_pair(const std::string& entry, const double xi, const double yi, const double zi, const double xo, const double yo, const double zo);
109 
114  virtual bool save();
115 
120  virtual bool load();
121 
122  // help method
123  virtual std::vector<std::string> help(const std::string& functionName = "--all");
124 
125  // read from ConnectionReader
126  bool read(yarp::os::ConnectionReader& connection) override;
127 };
128 
129 #endif // YARP_THRIFT_GENERATOR_SERVICE_IOLREACHINGCALIBRATION_IDL_H
CalibMatrixReq IDL structure to ask for calibration matrix.
CalibPointReq IDL structure to send/receive points.
Definition: CalibPointReq.h:26
iolReachingCalibration_IDL IDL Interface to IOL Reaching Calibration services.
virtual bool calibration_start(const std::string &hand, const std::string &object, const std::string &entry="")
Initiate the calibration.
virtual std::vector< std::string > calibration_list()
List available calibrations.
virtual bool save()
Save calibration on file.
virtual CalibPointReq get_location_nolook(const std::string &entry, const double x, const double y, const double z, const bool invert=0)
Retrieve the calibrated object location.
virtual bool load()
Load calibration from file.
virtual bool add_pair(const std::string &entry, const double xi, const double yi, const double zi, const double xo, const double yo, const double zo)
Add an input-ouput pair to the location map.
virtual CalibMatrixReq get_matrix(const std::string &entry)
Retrieve the calibration matrix.
virtual bool calibration_clear(const std::string &hand, const std::string &object, const std::string &entry="")
Clear calibration.
virtual bool calibration_stop()
Finish the calibration.
virtual CalibPointReq get_location(const std::string &hand, const std::string &object, const std::string &entry="")
Retrieve the calibrated object location.