Visual Servoing Platform  version 3.6.1 under development (2024-11-21)
vpServoDisplay Class Reference

#include <visp3/vs/vpServoDisplay.h>

Static Public Member Functions

static void display (const vpServo &s, const vpCameraParameters &cam, const vpImage< unsigned char > &I, vpColor currentColor=vpColor::green, vpColor desiredColor=vpColor::red, unsigned int thickness=1)
 
static void display (const vpServo &s, const vpCameraParameters &cam, const vpImage< vpRGBa > &I, vpColor currentColor=vpColor::green, vpColor desiredColor=vpColor::red, unsigned int thickness=1)
 

Detailed Description

Interface with the image for feature display.

Definition at line 55 of file vpServoDisplay.h.

Member Function Documentation

◆ display() [1/2]

BEGIN_VISP_NAMESPACE void vpServoDisplay::display ( const vpServo s,
const vpCameraParameters cam,
const vpImage< unsigned char > &  I,
vpColor  currentColor = vpColor::green,
vpColor  desiredColor = vpColor::red,
unsigned int  thickness = 1 
)
static

Display the current and the desired features in the image I.

Warning
To effectively display the dot graphics a call to vpDisplay::flush() is needed.
Parameters
s: Visual servoing control law.
cam: Camera parameters.
I: Image on which features have to be displayed.
currentColor: Color for the current features. If vpColor::none, current features display is turned off.
desiredColor: Color for the desired features. If vpColor::none, desired features display is turned off.
thickness: Thickness of the feature representation.
Examples
manServo4PointsDisplay.cpp, manSimu4Dots.cpp, servoAfma4Point2DArtVelocity.cpp, servoAfma4Point2DCamVelocity.cpp, servoAfma4Point2DCamVelocityKalman.cpp, servoAfma6AprilTagIBVS.cpp, servoAfma6Ellipse2DCamVelocity.cpp, servoAfma6FourPoints2DArtVelocity.cpp, servoAfma6FourPoints2DCamVelocityLs_cur.cpp, servoAfma6FourPoints2DCamVelocityLs_cur_integrator.cpp, servoAfma6FourPoints2DCamVelocityLs_des.cpp, servoAfma6Point2DArtVelocity.cpp, servoAfma6Point2DCamVelocity.cpp, servoAfma6Points2DCamVelocityEyeToHand.cpp, servoAfma6Segment2DCamVelocity.cpp, servoBiclopsPoint2DArtVelocity.cpp, servoFlirPtuIBVS.cpp, servoFrankaIBVS.cpp, servoPololuPtuPoint2DJointVelocity.cpp, servoPtu46Point2DArtVelocity.cpp, servoSimuCircle2DCamVelocityDisplay.cpp, servoSimuCylinder2DCamVelocityDisplay.cpp, servoSimuCylinder2DCamVelocityDisplaySecondaryTask.cpp, servoSimuFourPoints2DCamVelocityDisplay.cpp, servoSimuFourPoints2DPolarCamVelocityDisplay.cpp, servoSimuLine2DCamVelocityDisplay.cpp, servoSimuSphere2DCamVelocityDisplay.cpp, servoSimuSphere2DCamVelocityDisplaySecondaryTask.cpp, servoSimuSquareLine2DCamVelocityDisplay.cpp, servoUniversalRobotsIBVS.cpp, servoViper650FourPoints2DArtVelocityLs_cur.cpp, servoViper650FourPoints2DCamVelocityLs_cur-SR300.cpp, servoViper650FourPoints2DCamVelocityLs_cur.cpp, servoViper650Point2DCamVelocity.cpp, servoViper850FourPoints2DArtVelocityLs_cur.cpp, servoViper850FourPoints2DArtVelocityLs_des.cpp, servoViper850FourPoints2DCamVelocityLs_cur.cpp, servoViper850FourPointsKinect.cpp, servoViper850Point2DArtVelocity-jointAvoidance-basic.cpp, servoViper850Point2DArtVelocity-jointAvoidance-gpa.cpp, servoViper850Point2DArtVelocity-jointAvoidance-large.cpp, servoViper850Point2DArtVelocity.cpp, servoViper850Point2DCamVelocity.cpp, servoViper850Point2DCamVelocityKalman.cpp, tutorial-flir-ptu-ibvs.cpp, tutorial-ibvs-4pts-display.cpp, tutorial-ibvs-4pts-image-tracking.cpp, and tutorial-ibvs-4pts-ogre-tracking.cpp.

Definition at line 53 of file vpServoDisplay.cpp.

References vpServo::desiredFeatureList, vpServo::featureList, and vpColor::none.

◆ display() [2/2]

void vpServoDisplay::display ( const vpServo s,
const vpCameraParameters cam,
const vpImage< vpRGBa > &  I,
vpColor  currentColor = vpColor::green,
vpColor  desiredColor = vpColor::red,
unsigned int  thickness = 1 
)
static

Display the current and the desired features in the image I.

Warning
To effectively display the dot graphics a call to vpDisplay::flush() is needed.
Parameters
s: Visual servoing control law.
cam: Camera parameters.
I: Color image on which features have to be displayed.
currentColor: Color for the current features. If vpColor::none, current features display is turned off.
desiredColor: Color for the desired features. If vpColor::none, desired features display is turned off.
thickness: Thickness of the feature representation.

Definition at line 72 of file vpServoDisplay.cpp.

References vpServo::desiredFeatureList, vpServo::featureList, and vpColor::none.