|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_VISUALSERVOING_H
10 #define YARP_DEV_VISUALSERVOING_H
21 class IVisualServoing;
87 virtual bool goToGoal(
const std::vector<yarp::sig::Vector>& vec_px_l,
const std::vector<yarp::sig::Vector>& vec_px_r) = 0;
A simple collection of objects that can be described and transmitted in a portable way.
virtual bool goToGoal(const std::vector< yarp::sig::Vector > &vec_px_l, const std::vector< yarp::sig::Vector > &vec_px_r)=0
Set the goal points on both left and right camera image plane and start visual servoing.
virtual ~IVisualServoing()
Destructor.
contains the definition of a Vector type
virtual bool setControlPoint(const std::string &point)=0
Set the point controlled during visual servoing.
Interface for visual servoing controllers.
virtual bool waitVisualServoingDone(const double period=0.1, const double timeout=0.0)=0
Wait until visual servoing reaches the goal.
CamSel
Enumeration class to select left or right camera.
virtual bool setTranslationGain(const double K_x_1, const double K_x_2)=0
Set the translation gains of the visual servoing control algorithm.
virtual bool setMaxOrientationVelocity(const double max_o_dot)=0
Set the maximum angular velocity of the axis-angle velocity vector of the visual servoing control alg...
virtual bool setOrientationGain(const double K_o_1, const double K_o_2)=0
Set the orientation gains of the visual servoing control algorithm.
virtual bool stopFacilities()=0
Deallocate support classes, stop modules and disconnect connections used for visual servoing.
virtual bool stopController()=0
Ask for an immediate stop of the visual servoing controller.
virtual bool getVisualServoingInfo(yarp::os::Bottle &info)=0
Return useful information for visual servoing.
virtual bool setGoToGoalTolerance(const double tol)=0
Set visual servoing goal tolerance.
virtual std::vector< yarp::sig::Vector > getGoalPixelsFrom3DPose(const yarp::sig::Vector &x, const yarp::sig::Vector &o, const CamSel &cam)=0
Helper function: extract four 2D pixel points lying on the plane defined by the frame o in the positi...
virtual bool setVisualServoControl(const std::string &control)=0
Set visual servo control law.
virtual std::vector< yarp::sig::Vector > get3DGoalPositionsFrom3DPose(const yarp::sig::Vector &x, const yarp::sig::Vector &o)=0
Helper function: extract four Cartesian points lying on the plane defined by the frame o in the posit...
virtual bool storedGoToGoal(const std::string &label)=0
Set the robot visual servoing goal.
virtual bool initFacilities(bool use_direct_kin)=0
Initialize support classes, modules and connections to perform visual servoing.
virtual bool resetFacilities()=0
Reset support classes, modules and connections to perform visual servoing.
virtual bool checkVisualServoingController()=0
Check once whether the visual servoing controller is running or not.
virtual bool goToGoal(const yarp::sig::Vector &vec_x, const yarp::sig::Vector &vec_o)=0
Set the goal point (3D for the position + 4D axis-angle for the orientation) and start visual servoin...
virtual bool setTranslationGainSwitchTolerance(const double K_x_tol)=0
Set the tolerance, in pixels, at which the translation control law swithces its gain value.
virtual bool setMaxTranslationVelocity(const double max_x_dot)=0
Set the maximum translation velocity of the visual servoing control algorithm (same for each axis).
virtual bool setModality(const std::string &mode)=0
Set visual servoing operating mode between:
The main, catch-all namespace for YARP.
virtual bool setOrientationGainSwitchTolerance(const double K_o_tol)=0
Set the tolerance, in pixels, at which the orientation control law swithces its gain value.
virtual bool storedInit(const std::string &label)=0
Initialize the robot to an initial position.
virtual bool goToSFMGoal()=0
Get goal point from SFM module.