11#ifndef YARP_THRIFT_GENERATOR_SERVICE_DEPTH2KIN_IDL_H
12#define YARP_THRIFT_GENERATOR_SERVICE_DEPTH2KIN_IDL_H
14#include <yarp/os/Wire.h>
15#include <yarp/os/idl/WireTypes.h>
17#include <yarp/os/Property.h>
18#include <yarp/sig/Vector.h>
70 virtual bool log(
const std::string& type);
105 virtual bool setRoi(
const std::int32_t side);
147 virtual bool setArm(
const std::string& arm);
178 virtual yarp::os::Property
calibrate(
const bool rm_outliers =
true);
207 virtual bool touch(
const std::int32_t u,
const std::int32_t v);
227 virtual std::vector<PointReq>
getPoints(
const std::string& arm,
const std::vector<double>& coordinates);
316 virtual bool setExplorationSpace(
const double cx,
const double cy,
const double cz,
const double a,
const double b);
328 virtual bool setExplorationSpaceDelta(
const double dcx = 0.000000,
const double dcy = 0.000000,
const double dcz = 0.000000,
const double da = 0.000000,
const double db = 0.000000);
350 virtual bool posture(
const std::string& type);
366 virtual std::vector<std::string>
help(
const std::string& functionName =
"--all");
369 bool read(yarp::os::ConnectionReader& connection)
override;
PointReq IDL structure to send/receive points.
depth2kin_IDL IDL Interface to depth2kin services.
virtual yarp::os::Property getExplorationData()
Return some progress about the ongoing exploration.
virtual bool quit()
Quit the module.
virtual bool touch(const std::int32_t u, const std::int32_t v)
Yield a touch action with the finger on a depth point.
virtual yarp::os::Property calibrate(const bool rm_outliers=true)
Ask the current calibrator to carry out the calibration.
virtual std::string getArm()
Return the current arm.
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual bool stop()
Yield an asynchronous stop of the exploration phase.
virtual bool save()
Save the current list of experts into the configuration file.
virtual bool resetExtrinsics(const std::string &eye)
Reset the extrinsics matrix to default eye matrix.
virtual double getBlockEyes()
Return the current angle to keep the vergence at.
virtual bool setTouchWithExperts(const std::string &sw)
Enable/disable the use of experts for touch test.
virtual bool log(const std::string &type)
Store on file the log of system response computed out of the explored set of input-output pairs.
virtual bool clearEyes()
Remove the block on the eyes.
virtual bool blockEyes()
Tell the gaze to immediately steer the eyes to the stored vergence angle and stay still.
virtual double getExplorationInTargetTol()
Return the current cartesian tolerance used during exploration.
virtual bool clearExplorationData()
Clean up the internal list of explored points pairs.
virtual bool clearExperts()
Clear the list of currently available experts.
virtual bool setTouchInTargetTol(const double tol)
Set up the cartesian tolerance used during a touch actions.
bool read(yarp::os::ConnectionReader &connection) override
virtual bool setExplorationInTargetTol(const double tol)
Set up the cartesian tolerance used during exploration.
virtual PointReq getPoint(const std::string &arm, const double x, const double y, const double z)
Retrieve the compensated kinematic point corresponding to the input depth point.
virtual bool setArm(const std::string &arm)
Select the arm to deal with.
virtual double getExplorationWait()
Return the current wait timeout used during exploration between two consecutive data points.
virtual double getTouchInTargetTol()
Return the current cartesian tolerance used during touch actions.
virtual bool pushCalibrator()
Push the current calibrator in the list of experts.
virtual bool setExplorationSpaceDelta(const double dcx=0.000000, const double dcy=0.000000, const double dcz=0.000000, const double da=0.000000, const double db=0.000000)
Set up the exploration space in terms of differences with respect to the internally coded couple of e...
virtual std::string getTouchWithExperts()
Return the current status of the switch for experts usage during touch test.
virtual bool setCalibrationType(const std::string &type, const std::string &extrapolation="auto")
Set up the calibrator type.
virtual std::int32_t getNumExperts()
Return the number of available experts.
virtual bool setBlockEyes(const double block_eyes)
Set the vergence angle used to keep the gaze fixed.
virtual yarp::sig::Vector getExtrinsics(const std::string &eye)
Retrieve the current extrinsics camera parameters.
virtual bool posture(const std::string &type)
Make the robot reach a predefined posture.
virtual std::vector< PointReq > getPoints(const std::string &arm, const std::vector< double > &coordinates)
Retrieve the compensated kinematic points corresponding to the input depth points.
virtual bool setExplorationWait(const double wait)
Set up the wait timeout used during exploration between two consecutive data points.
virtual std::string getExperiment(const std::string &exp)
Return the current status of the experiment.
virtual bool explore()
Start the exploration phase.
virtual bool setExperiment(const std::string &exp, const std::string &v)
Set on/off an experiment.
virtual bool setMaxDist(const double max_dist)
Set the maximum allowed distance between the depth point and kinematic prediction to enable data coll...
virtual bool setExplorationSpace(const double cx, const double cy, const double cz, const double a, const double b)
Set up the internally coded exploration space composed by two co-centered ellipses,...
virtual std::int32_t getRoi()
Return the side of the squared window used to filter data collection in the image plane.
virtual bool setRoi(const std::int32_t side)
Set the side of the squared window used to filter data collection in the image plane.
virtual std::string getCalibrationType()
Return the current calibration type.
virtual bool calibrateDepth()
Put the robot in a suitable predefined posture and then execute depth calibration.
virtual bool load()
Reload the list of experts stored within the configuration file.
virtual double getMaxDist()
Return the maximum allowed distance between depth point and kinematic prediction to enable data colle...