1 #ifndef VISUALSERVOINGCLIENT_H 2 #define VISUALSERVOINGCLIENT_H 4 #include "thrift/VisualServoingIDL.h" 8 #include <yarp/dev/DeviceDriver.h> 9 #include <yarp/dev/IVisualServoing.h> 10 #include <yarp/os/Bottle.h> 11 #include <yarp/os/BufferedPort.h> 12 #include <yarp/os/ConstString.h> 13 #include <yarp/os/LogStream.h> 14 #include <yarp/os/Port.h> 15 #include <yarp/os/Searchable.h> 16 #include <yarp/sig/Vector.h> 20 public yarp::dev::IVisualServoing
30 bool open(yarp::os::Searchable &config)
override;
32 bool close()
override;
42 bool goToGoal(
const yarp::sig::Vector& vec_x,
const yarp::sig::Vector& vec_o)
override;
44 bool goToGoal(
const std::vector<yarp::sig::Vector>& vec_px_l,
const std::vector<yarp::sig::Vector>& vec_px_r)
override;
68 bool setOrientationGain(
const double K_o_1 = 1.5,
const double K_o_2 = 0.375)
override;
76 std::vector<yarp::sig::Vector>
getGoalPixelsFrom3DPose(
const yarp::sig::Vector& x,
const yarp::sig::Vector& o,
const CamSel& cam)
override;
78 bool storedInit(
const std::string& label)
override;
93 void yInfoVerbose (
const yarp::os::ConstString& str)
const {
if(verbosity_) yInfo() << str; };
94 void yWarningVerbose(
const yarp::os::ConstString& str)
const {
if(verbosity_) yWarning() << str; };
95 void yErrorVerbose (
const yarp::os::ConstString& str)
const {
if(verbosity_) yError() << str; };
bool setTranslationGainSwitchTolerance(const double K_x_tol=30.0) override
bool initFacilities(const bool use_direct_kin) override
bool goToGoal(const yarp::sig::Vector &vec_x, const yarp::sig::Vector &vec_o) override
bool setTranslationGain(const double K_x_1=1.0, const double K_x_2=0.25) override
bool setVisualServoControl(const std::string &control) override
yarp::os::Port port_rpc_command_
bool resetFacilities() override
bool stopFacilities() override
bool checkVisualServoingController() override
bool open(yarp::os::Searchable &config) override
bool setControlPoint(const yarp::os::ConstString &point) override
yarp::os::ConstString remote_
bool setModality(const std::string &mode) override
void yInfoVerbose(const yarp::os::ConstString &str) const
bool goToSFMGoal() override
bool setMaxTranslationVelocity(const double max_x_dot) override
VisualServoingIDL IDL Interface to ServerVisualServoing functionalities.
yarp::os::ConstString local_
VisualServoingIDL visualservoing_control
bool storedGoToGoal(const std::string &label) override
bool setOrientationGainSwitchTolerance(const double K_o_tol=30.0) override
bool setMaxOrientationVelocity(const double max_o_dot) override
void yWarningVerbose(const yarp::os::ConstString &str) const
bool stopController() override
std::vector< yarp::sig::Vector > getGoalPixelsFrom3DPose(const yarp::sig::Vector &x, const yarp::sig::Vector &o, const CamSel &cam) override
std::vector< yarp::sig::Vector > get3DGoalPositionsFrom3DPose(const yarp::sig::Vector &x, const yarp::sig::Vector &o) override
bool setOrientationGain(const double K_o_1=1.5, const double K_o_2=0.375) override
bool waitVisualServoingDone(const double period=0.1, const double timeout=0.0) override
void yErrorVerbose(const yarp::os::ConstString &str) const
bool storedInit(const std::string &label) override
bool getVisualServoingInfo(yarp::os::Bottle &info) override
bool setGoToGoalTolerance(const double tol=15.0) override