Visual Servoing Platform  version 3.0.0
Debug and exceptions

Classes

class  vpTraceOutput
 
class  vpDisplayException
 
class  vpException
 
class  vpImageException
 
class  vpIoException
 
class  vpMatrixException
 
class  vpTrackingException
 

Macros

#define vpIN_FCT   (vpTraceOutput(__FILE__,__LINE__, __FUNCTION__, false, "begin "))
 
#define vpOUT_FCT   (vpTraceOutput(__FILE__,__LINE__, __FUNCTION__, false, "end "))
 
#define vpCTRACE   std::cout << "(L0) " << __FILE__ << ": " << __FUNCTION__ << "(#" << __LINE__ << ") : "
 
#define vpCERROR   std::cerr << "(L0) " << "!!\t" << __FILE__ << ": " << __FUNCTION__ << "(#" << __LINE__ << ") : "
 
#define vpERROR_TRACE   (vpTraceOutput( __FILE__,__LINE__, __FUNCTION__, true))
 
#define vpTRACE   (vpTraceOutput( __FILE__,__LINE__, __FUNCTION__, false))
 
#define vpDERROR_TRACE   (vpTraceOutput( __FILE__,__LINE__, __FUNCTION__, true))
 
#define vpDEBUG_TRACE   (vpTraceOutput( __FILE__,__LINE__, __FUNCTION__, false))
 
#define vpCDEBUG(level)
 
#define vpDEBUG_ENABLE(level)   (VP_DEBUG_MODE >= level)
 

Detailed Description

Debug and exceptions.

Macro Definition Documentation

#define vpCDEBUG (   level)
Value:
if (VP_DEBUG_MODE < level) ; else \
std::cout << "(L" << level << ") "<< __FILE__ << ": " << __FUNCTION__ << "(#" << __LINE__ << ") : "

vpCDEBUG(level) work like the C++ output stream std::cout.

1 #define VP_DEBUG // Activate the debug mode
2 #define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
3 
4 #include <visp3/core/vpDebug.h>
5 
6 int main()
7 {
8  // C++-like debug printings
9  vpCTRACE << "C++-like trace" << std::endl; // stdout
10  vpCERROR << "C++-like error trace" << std::endl; // stderr
11 
12  // Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
13  vpCDEBUG(2) << "C++-like debug trace level 2" << std::endl; // stdout
14 }
See also
vpCTRACE(), vpCERROR()
Examples:
tutorial-trace.cpp.

Definition at line 502 of file vpDebug.h.

Referenced by vpPtu46::computeMGD(), vpBiclops::computeMGD(), vpBiclops::get_fMc(), vpRobotBiclops::getPosition(), vpRobotBiclops::getVelocity(), vpMeEllipse::initTracking(), vpMeLine::initTracking(), vpMeLine::leastSquare(), vpRobust::MEstimator(), vpMeLine::sample(), vpMeLine::seekExtremities(), vpRobotPtu46::setVelocity(), vpRobotBiclops::setVelocity(), vpRobust::simultMEstimator(), vpHinkley::testDownUpwardJump(), vpHinkley::testDownwardJump(), vpHinkley::testUpwardJump(), vpMeLine::track(), and vpRobust::vpRobust().

#define vpCERROR   std::cerr << "(L0) " << "!!\t" << __FILE__ << ": " << __FUNCTION__ << "(#" << __LINE__ << ") : "

Used to display error messages on the error stream (C++). Use like this : vpCERROR<<"my message"<<std::endl;

1 #define VP_TRACE // To activate trace mode
2 #define VP_DEBUG // To activate the debug mode
3 #define VP_DEBUG_MODE 2 // To activate debug level 1 and 2
4 
5 #include <visp3/core/vpDebug.h>
6 
7 int main()
8 {
9  // C++-like debug printings
10  vpCTRACE << "C++-like trace" << std::endl; // stdout
11  vpCERROR << "C++-like error trace" << std::endl; // stderr
12 
13  // Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
14  vpCDEBUG(2) << "C++-like debug trace level 2" << std::endl; // stdout
15 }
See also
vpCTRACE(), vpCDEBUG()
Examples:
test1394TwoGrabber.cpp, test1394TwoResetBus.cpp, and tutorial-trace.cpp.

Definition at line 365 of file vpDebug.h.

Referenced by vp1394TwoGrabber::colorCoding2string(), vpFeatureBuilder::create(), vp1394TwoGrabber::framerate2string(), vpRobotBiclops::init(), vpRobotBiclops::setRobotState(), vp1394TwoGrabber::videoMode2string(), vpImageIo::write(), and vpRobotBiclops::~vpRobotBiclops().

#define vpCTRACE   std::cout << "(L0) " << __FILE__ << ": " << __FUNCTION__ << "(#" << __LINE__ << ") : "

Used to display trace messages on the standard stream (C++). Use like this : vpCTRACE<<"my message"<<std::endl;

1 #define VP_TRACE // To activate trace mode
2 #define VP_DEBUG // To activate the debug mode
3 #define VP_DEBUG_MODE 2 // To activate debug level 1 and 2
4 
5 #include <visp3/core/vpDebug.h>
6 
7 int main()
8 {
9  // C++-like debug printings
10  vpCTRACE << "C++-like trace" << std::endl; // stdout
11  vpCERROR << "C++-like error trace" << std::endl; // stderr
12 
13  // Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
14  vpCDEBUG(2) << "C++-like debug trace level 2" << std::endl; // stdout
15 }
See also
vpTRACE(), vpCERROR(), vpCDEBUG()
Examples:
AROgre.cpp, AROgreBasic.cpp, grabDirectShow.cpp, keyPointSurf.cpp, moveBiclops.cpp, movePtu46.cpp, testClick.cpp, testConversion.cpp, testTrackDot.cpp, testVideoDevice.cpp, trackDot.cpp, trackDot2.cpp, trackDot2WithAutoDetection.cpp, trackMeCircle.cpp, trackMeEllipse.cpp, trackMeLine.cpp, and tutorial-trace.cpp.

Definition at line 337 of file vpDebug.h.

Referenced by vp1394TwoGrabber::getNumCameras(), vpMbKltTracker::setProjectionErrorComputation(), and vpTemplateTrackerWarp::warpTriangle().

#define vpDEBUG_ENABLE (   level)    (VP_DEBUG_MODE >= level)

vpDEBUG_ENABLE(level) is equal to 1 if the debug level level is greater than the debug mode VP_DEBUG_MODE, 0 else.

1 #define VP_DEBUG // Activate the debug mode
2 #define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
3 
4 #include <visp3/core/vpDebug.h>
5 
6 int main()
7 {
8  // Check the active debug levels
9  std::cout << "Debug level 1 active: " << vpDEBUG_ENABLE(1) << std::endl;
10  std::cout << "Debug level 2 active: " << vpDEBUG_ENABLE(2) << std::endl;
11  std::cout << "Debug level 3 active: " << vpDEBUG_ENABLE(3) << std::endl;
12 }
Examples:
tutorial-trace.cpp.

Definition at line 526 of file vpDebug.h.

Referenced by vpMeLine::computeRhoTheta(), vpMbtDistanceCircle::displayMovingEdges(), vpMeLine::sample(), vpMeLine::seekExtremities(), vpMeNurbs::seekExtremities(), vpMeEllipse::track(), and vpMeLine::track().

#define vpDEBUG_TRACE   (vpTraceOutput( __FILE__,__LINE__, __FUNCTION__, false))

vpDEBUG_TRACE works like printf, but prints only if the tracing level level is greater than the debug level VP_DEBUG_MODE.

1 #define VP_DEBUG // Activate the debug mode
2 #define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
3 
4 #include <visp3/core/vpDebug.h>
5 
6 int main()
7 {
8  // Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
9  vpDEBUG_TRACE(2, "C-like debug trace level 2"); // stdout
10  vpDERROR_TRACE(2, "C-like error trace level 2"); // stderr
11 }
See also
vpDERROR_TRACE()
Examples:
servoPtu46Point2DArtVelocity.cpp, and tutorial-trace.cpp.

Definition at line 478 of file vpDebug.h.

Referenced by vpDiskGrabber::acquire(), vpServo::computeError(), vpPose::coplanar(), vpGenericFeature::error(), vpRobotPtu46::getPosition(), vpRobotBiclops::getPosition(), vpRobotBiclops::getVelocity(), vpRobotPtu46::init(), vpImage< Type >::init(), vpDisplayX::init(), vpAdaptiveGain::initFromConstant(), vpAdaptiveGain::initFromVoid(), vpAdaptiveGain::initStandard(), vpAdaptiveGain::limitValue(), vpAdaptiveGain::limitValue_const(), vpIoTools::makeDirectory(), vpDiskGrabber::open(), vpAdaptiveGain::setConstant(), vpDiskGrabber::setImageNumber(), vpRobotBiclops::setPosition(), vpRobotPtu46::setRobotState(), vpRobotBiclops::setRobotState(), vpRobotPtu46::setVelocity(), vpRobotBiclops::setVelocity(), vpAdaptiveGain::value(), vpAdaptiveGain::value_const(), vpAdaptiveGain::vpAdaptiveGain(), vpRobotBiclops::vpRobotBiclops(), vpRobotBiclops::vpRobotBiclopsSpeedControlLoop(), vpRobotPtu46::vpRobotPtu46(), vpImageConvert::YCbCrToRGB(), vpImageConvert::YCbCrToRGBa(), vpImageConvert::YCrCbToRGB(), vpImageConvert::YCrCbToRGBa(), and vpRobotBiclops::~vpRobotBiclops().

#define vpDERROR_TRACE   (vpTraceOutput( __FILE__,__LINE__, __FUNCTION__, true))

vpDERROR_TRACE works like printf, but prints only if the tracing level is smaller than the debug level VP_DEBUG_MODE.

1 #define VP_DEBUG // Activate the debug mode
2 #define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
3 
4 #include <visp3/core/vpDebug.h>
5 
6 int main()
7 {
8  // Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
9  vpDEBUG_TRACE(2, "C-like debug trace level 2"); // stdout
10  vpDERROR_TRACE(2, "C-like error trace level 2"); // stderr
11 }
See also
vpDEBUG_TRACE()
Examples:
tutorial-trace.cpp.

Definition at line 455 of file vpDebug.h.

Referenced by vpMeTracker::initTracking(), vpMeLine::reSample(), vpMeLine::sample(), vpMeLine::seekExtremities(), and vpMeTracker::track().

#define vpERROR_TRACE   (vpTraceOutput( __FILE__,__LINE__, __FUNCTION__, true))

Used to display error messages on the error stream. Prints the name of the file, the function name and the line where it was used. Use like this : vpERROR_TRACE("my error message number %d", i); with any "printf" string.

1 #define VP_TRACE // To activate trace mode
2 #define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
3 
4 #include <visp3/core/vpDebug.h>
5 
6 int main()
7 {
8  // Printing depend only VP_DEBUG_MODE value is >= 1
9  vpTRACE(1, "C-like trace level 1"); // stdout
10  vpERROR_TRACE(1, "C-like error trace level 1"); // stderr
11 }
See also
vpTRACE()
Examples:
AROgre.cpp, AROgreBasic.cpp, displayD3D.cpp, displayGTK.cpp, displayOpenCV.cpp, displaySequence.cpp, displayX.cpp, displayXMulti.cpp, fernClassifier.cpp, grabDisk.cpp, keyPointSurf.cpp, moveAfma4.cpp, moveBiclops.cpp, movePtu46.cpp, planarObjectDetector.cpp, poseVirtualVS.cpp, servoAfma4Point2DArtVelocity.cpp, servoAfma4Point2DCamVelocity.cpp, servoAfma4Point2DCamVelocityKalman.cpp, servoAfma62DhalfCamVelocity.cpp, servoAfma6Cylinder2DCamVelocity.cpp, servoAfma6Cylinder2DCamVelocitySecondaryTask.cpp, servoAfma6Ellipse2DCamVelocity.cpp, servoAfma6FourPoints2DArtVelocity.cpp, servoAfma6FourPoints2DCamVelocityInteractionCurrent.cpp, servoAfma6FourPoints2DCamVelocityInteractionDesired.cpp, servoAfma6Line2DCamVelocity.cpp, servoAfma6Point2DArtVelocity.cpp, servoAfma6Point2DCamVelocity.cpp, servoAfma6Points2DCamVelocityEyeToHand.cpp, servoAfma6Segment2DCamVelocity.cpp, servoAfma6SquareLines2DCamVelocity.cpp, servoAfma6TwoLines2DCamVelocity.cpp, servoBiclopsPoint2DArtVelocity.cpp, servoPtu46Point2DArtVelocity.cpp, servoSimu4Points.cpp, servoSimuAfma6FourPoints2DCamVelocity.cpp, servoSimuCircle2DCamVelocityDisplay.cpp, servoSimuCylinder.cpp, servoSimuCylinder2DCamVelocityDisplay.cpp, servoSimuCylinder2DCamVelocityDisplaySecondaryTask.cpp, servoSimuLine2DCamVelocityDisplay.cpp, servoSimuSphere.cpp, servoSimuSquareLine2DCamVelocityDisplay.cpp, servoSimuViper850FourPoints2DCamVelocity.cpp, servoViper650FourPoints2DArtVelocityInteractionCurrent.cpp, servoViper650FourPoints2DCamVelocityInteractionCurrent.cpp, servoViper650Point2DCamVelocity.cpp, servoViper850FourPoints2DArtVelocityInteractionCurrent.cpp, servoViper850FourPoints2DArtVelocityInteractionDesired.cpp, servoViper850FourPoints2DCamVelocityInteractionCurrent.cpp, servoViper850FourPointsKinect.cpp, servoViper850Point2DArtVelocity-jointAvoidance-basic.cpp, servoViper850Point2DArtVelocity-jointAvoidance-gpa.cpp, servoViper850Point2DArtVelocity-jointAvoidance-large.cpp, servoViper850Point2DArtVelocity.cpp, servoViper850Point2DCamVelocity.cpp, servoViper850Point2DCamVelocityKalman.cpp, testClick.cpp, testDisplays.cpp, testIoPPM.cpp, testMouseEvent.cpp, testNurbs.cpp, testTrackDot.cpp, testVideoDevice.cpp, testVideoDeviceDual.cpp, trackKltOpencv.cpp, trackMeEllipse.cpp, tutorial-trace.cpp, and wireframeSimulator.cpp.

Definition at line 391 of file vpDebug.h.

Referenced by vp1394CMUGrabber::acquire(), vp1394TwoGrabber::acquire(), vpSimulator::addObject(), vpRobotViper850::biasForceTorqueSensor(), vpRobotViper650::biasForceTorqueSensor(), vpFeatureDepth::buildFrom(), vpFeaturePoint::buildFrom(), vpFeaturePoint3D::buildFrom(), vpFeaturePointPolar::buildFrom(), vpImageTools::changeLUT(), vpServer::checkForConnections(), vpRobotAfma6::checkJointLimits(), vpSubMatrix::checkParentStatus(), vpDisplayX::clearDisplay(), vp1394CMUGrabber::close(), vpVideoWriter::close(), vp1394TwoGrabber::close(), vpDisplay::close(), vpRobotAfma6::closeGripper(), vpRobotViper850::closeGripper(), vpSimulatorAfma6::computeArticularVelocity(), vpSimulatorViper850::computeArticularVelocity(), vpCalibration::computeCalibrationTsai(), vpServo::computeControlLaw(), vpServo::computeError(), vpServo::computeInteractionMatrix(), vpPtu46::computeMGD(), vpPose::computePose(), vpMeLine::computeRhoTheta(), vpMbEdgeKltTracker::computeVVS(), vpClient::connectToHostname(), vpClient::connectToIP(), vpMeterPixelConversion::convertLine(), vpPixelMeterConversion::convertLine(), vpPose::coplanar(), vpFeatureBuilder::create(), vp1394TwoGrabber::dequeue(), vpRobotViper650::disableJoint6Limits(), vpRobotViper850::disableJoint6Limits(), vpFeatureEllipse::display(), vpFeatureVanishingPoint::display(), vpFeatureLuminance::display(), vpFeatureDepth::display(), vpGenericFeature::display(), vpFeaturePoint::display(), vpFeatureLine::display(), vpFeaturePoint3D::display(), vpFeatureThetaU::display(), vpFeaturePointPolar::display(), vpFeatureTranslation::display(), vpDisplay::display(), vpDisplayGTK::displayArrow(), vpDisplayX::displayArrow(), vpDisplayOpenCV::displayArrow(), vpDisplay::displayArrow(), vpDisplayGTK::displayCharString(), vpDisplayX::displayCharString(), vpDisplayOpenCV::displayCharString(), vpDisplay::displayCharString(), vpDisplayGTK::displayCircle(), vpDisplayX::displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplay::displayCircle(), vpDisplayGTK::displayCross(), vpDisplayX::displayCross(), vpDisplayOpenCV::displayCross(), vpDisplay::displayCross(), vpFeatureDisplay::displayCylinder(), vpDisplayGTK::displayDotLine(), vpDisplayX::displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplay::displayDotLine(), vpDisplayGTK::displayImage(), vpDisplayX::displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayGTK::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpFeatureDisplay::displayLine(), vpDisplayGTK::displayLine(), vpDisplayX::displayLine(), vpDisplayOpenCV::displayLine(), vpDisplay::displayLine(), vpFeatureDisplay::displayPoint(), vpDisplayGTK::displayPoint(), vpDisplayX::displayPoint(), vpDisplayOpenCV::displayPoint(), vpDisplay::displayPoint(), vpDisplay::displayPolygon(), vpDisplayGTK::displayRectangle(), vpDisplayX::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplay::displayRectangle(), vpDisplay::displayROI(), vpDisplay::displayText(), vpHomography::DLT(), vpRobotViper650::enableJoint6Limits(), vpRobotViper850::enableJoint6Limits(), vpServolens::enablePrompt(), vp1394TwoGrabber::enqueue(), vpGenericFeature::error(), vpFeatureDepth::error(), vpFeatureThetaU::error(), vpFeatureTranslation::error(), vpLinearKalmanFilterInstantiation::filter(), vpPose::findMatch(), vpDisplay::flush(), vpDisplayGTK::flushDisplay(), vpDisplayX::flushDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayGTK::flushDisplayROI(), vpDisplayX::flushDisplayROI(), vpDisplayOpenCV::flushDisplayROI(), vpDisplay::flushROI(), vpRobotAfma4::get_cVf(), vpPtu46::get_eJe(), vpRobotPtu46::get_eJe(), vpRobotBiclops::get_eJe(), vpBiclops::get_eJe(), vpSimulatorAfma6::get_eJe(), vpSimulatorViper850::get_eJe(), vpRobotAfma4::get_eJe(), vpRobotAfma6::get_eJe(), vpRobotViper650::get_eJe(), vpRobotViper850::get_eJe(), vpPtu46::get_fJe(), vpRobotPtu46::get_fJe(), vpRobotBiclops::get_fJe(), vpBiclops::get_fJe(), vpSimulatorAfma6::get_fJe(), vpSimulatorViper850::get_fJe(), vpRobotAfma4::get_fJe(), vpRobotAfma6::get_fJe(), vpRobotViper650::get_fJe(), vpRobotViper850::get_fJe(), vpBiclops::get_fMe(), vpGenericFeature::get_s(), vp1394TwoGrabber::getAutoGain(), vp1394TwoGrabber::getAutoShutter(), vp1394TwoGrabber::getCamera(), vpViper850::getCameraParameters(), vpViper650::getCameraParameters(), vpServolens::getCameraParameters(), vpAfma6::getCameraParameters(), vpSimulatorAfma6::getCameraParameters(), vpDisplayGTK::getClick(), vpDisplayX::getClick(), vpDisplayOpenCV::getClick(), vpDisplay::getClick(), vpDisplayGTK::getClickUp(), vpDisplayX::getClickUp(), vpDisplayOpenCV::getClickUp(), vpDisplay::getClickUp(), vp1394TwoGrabber::getColorCoding(), vp1394TwoGrabber::getColorCodingSupported(), vpKinect::getDepthMap(), vpRobotPtu46::getDisplacement(), vpRobotBiclops::getDisplacement(), vpRobotAfma4::getDisplacement(), vpRobotAfma6::getDisplacement(), vpRobotViper850::getDisplacement(), vpRobotViper650::getDisplacement(), vpIoTools::getenv(), vpRobotViper650::getForceTorque(), vpRobotViper850::getForceTorque(), vpVideoReader::getFrame(), vpVideoReader::getFramerate(), vp1394TwoGrabber::getFramerate(), vp1394TwoGrabber::getFramerateSupported(), vp1394TwoGrabber::getGuid(), vp1394TwoGrabber::getHeight(), vpDisplayGTK::getImage(), vpDisplayX::getImage(), vpDisplay::getImage(), vpDisplayGTK::getKeyboardEvent(), vpDisplayX::getKeyboardEvent(), vpDisplayOpenCV::getKeyboardEvent(), vpDisplay::getKeyboardEvent(), vp1394TwoGrabber::getParameterValue(), vpHistogram::getPeaks(), vpDisplayGTK::getPointerMotionEvent(), vpDisplayX::getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), vpDisplay::getPointerMotionEvent(), vpDisplayGTK::getPointerPosition(), vpDisplayX::getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), vpDisplay::getPointerPosition(), vpRobotPtu46::getPosition(), vpServolens::getPosition(), vpRobotBiclops::getPosition(), vpSimulatorAfma6::getPosition(), vpSimulatorViper850::getPosition(), vpRobotAfma4::getPosition(), vpRobotAfma6::getPosition(), vpRobotViper650::getPosition(), vpRobotViper850::getPosition(), vpRobotAfma4::getPowerState(), vpRobotAfma6::getPowerState(), vpRobotViper850::getPowerState(), vpRobotViper650::getPowerState(), vpNetwork::getReceptorIndex(), vpDisplayX::getScreenDepth(), vpDisplayX::getScreenSize(), vpIoTools::getUserName(), vpHistogram::getValey(), vpImage< unsigned char >::getValue(), vpImage< double >::getValue(), vpImage< vpRGBa >::getValue(), vpRobotPtu46::getVelocity(), vpRobotBiclops::getVelocity(), vpSimulatorAfma6::getVelocity(), vpSimulatorViper850::getVelocity(), vpRobotAfma4::getVelocity(), vpRobotAfma6::getVelocity(), vpRobotViper850::getVelocity(), vpRobotViper650::getVelocity(), vp1394TwoGrabber::getVideoMode(), vp1394TwoGrabber::getVideoModeSupported(), vp1394TwoGrabber::getWidth(), vpSubMatrix::init(), vpViper850::init(), vpViper650::init(), vpRobotPtu46::init(), vpAfma6::init(), vpImage< Type >::init(), vpRobotBiclops::init(), vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpCameraParameters::init(), vpRobotAfma4::init(), vpLinearKalmanFilterInstantiation::initFilter(), vpMbTracker::initFromPoints(), vpSimulatorAfma6::initialiseCameraRelativeToObject(), vpSimulatorViper850::initialiseCameraRelativeToObject(), vpCameraParameters::initPersProjWithDistortion(), vpCameraParameters::initPersProjWithoutDistortion(), vpWireFrameSimulator::initScene(), vpLinearKalmanFilterInstantiation::initStateConstAccWithColoredNoise_MeasureVel(), vpLinearKalmanFilterInstantiation::initStateConstVelWithColoredNoise_MeasureVel(), vpMeTracker::initTracking(), vpMeEllipse::initTracking(), vpMeLine::initTracking(), vpGenericFeature::interaction(), vpFeatureDepth::interaction(), vpFeaturePoint::interaction(), vpFeatureLine::interaction(), vpFeaturePointPolar::interaction(), vpMatrix::inverseByCholesky(), vpMatrix::inverseByLU(), vpMatrix::inverseByQR(), vp1394TwoGrabber::isColorCodingSupported(), vp1394TwoGrabber::isFramerateSupported(), vp1394TwoGrabber::isVideoModeSupported(), vpMatrix::kron(), vpSimulator::load(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbTracker::loadVRMLModel(), vpSimulator::mainLoop(), vpIoTools::makeDirectory(), vpFernClassifier::matchPoint(), vpSimulator::offScreenRendering(), vpServoData::open(), vpServolens::open(), vpVideoWriter::open(), vpVideoReader::open(), vpRobotAfma6::openGripper(), vpRobotViper850::openGripper(), vpColVector::operator-(), vpSubMatrix::operator=(), vpRGBa::operator=(), vpImage< Type >::operator=(), vpXmlParser::parse(), vpViper850::parseConfigFile(), vpViper650::parseConfigFile(), vpAfma6::parseConfigFile(), vpPose::poseDementhonPlan(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpRobotAfma4::powerOff(), vpRobotAfma6::powerOff(), vpRobotViper850::powerOff(), vpRobotViper650::powerOff(), vpRobotAfma4::powerOn(), vpRobotAfma6::powerOn(), vpRobotViper850::powerOn(), vpRobotViper650::powerOn(), vpFeatureLuminance::print(), vp1394TwoGrabber::printCameraInfo(), vpForwardProjection::project(), vpCircle::projection(), vpSphere::projection(), vpRansac< vpTransformation >::ransac(), vpHomography::ransac(), vpImageIo::readJPEG(), vpImageIo::readPFM(), vpImageIo::readPGM(), vpImageIo::readPNG(), vpRobotPtu46::readPositionFile(), vpRobotBiclops::readPositionFile(), vpImageIo::readPPM(), vpNetwork::receive(), vpNetwork::receiveFrom(), vpServolens::reset(), vpImage< Type >::resize(), vpMeLine::sample(), vpXmlParser::save(), vpVideoWriter::saveFrame(), vpServo::secondaryTask(), vpServo::secondaryTaskJointLimitAvoidance(), vpMeLine::seekExtremities(), vp1394CMUGrabber::selectCamera(), vpGenericFeature::set_s(), vp1394TwoGrabber::setAutoGain(), vpServolens::setAutoIris(), vp1394TwoGrabber::setAutoShutter(), vpDisplay::setBackground(), vp1394TwoGrabber::setColorCoding(), vpServolens::setController(), vpGenericFeature::setError(), vpVideoWriter::setFileName(), vpVideoReader::setFileName(), vpDisplayWin32::setFont(), vpDisplayX::setFont(), vpDisplayOpenCV::setFont(), vpDisplay::setFont(), vp1394TwoGrabber::setFormat7ROI(), vp1394CMUGrabber::setFramerate(), vp1394TwoGrabber::setFramerate(), vpAR::setImage(), vpGenericFeature::setInteractionMatrix(), vp1394TwoGrabber::setIsoTransmissionSpeed(), vp1394TwoGrabber::setPanControl(), vp1394TwoGrabber::setParameterValue(), vpServolens::setPosition(), vpRobotPtu46::setPosition(), vpRobotBiclops::setPosition(), vpSimulatorAfma6::setPosition(), vpSimulatorViper850::setPosition(), vpRobotAfma4::setPosition(), vpRobotAfma6::setPosition(), vpRobotViper850::setPosition(), vpRobotViper650::setPosition(), vpRobotBiclops::setPositioningVelocity(), vpV4l2Grabber::setScale(), vpMbEdgeTracker::setScales(), vpDisplayGTK::setTitle(), vpDisplayX::setTitle(), vpDisplay::setTitle(), vpSimulatorCamera::setVelocity(), vpSimulatorPioneer::setVelocity(), vpRobotCamera::setVelocity(), vpSimulatorPioneerPan::setVelocity(), vpRobotPtu46::setVelocity(), vpRobotBiclops::setVelocity(), vpSimulatorAfma6::setVelocity(), vpSimulatorViper850::setVelocity(), vpRobotAfma4::setVelocity(), vpRobotAfma6::setVelocity(), vpRobotViper850::setVelocity(), vpRobotViper650::setVelocity(), vp1394CMUGrabber::setVideoMode(), vp1394TwoGrabber::setVideoMode(), vpDisplayGTK::setWindowPosition(), vpDisplayX::setWindowPosition(), vpDisplayOpenCV::setWindowPosition(), vpDisplay::setWindowPosition(), vpFeatureSegment::setZ1(), vpFeatureSegment::setZ2(), vpHistogram::smooth(), vpServer::start(), vpRobotAfma4::stopMotion(), vpRobotAfma6::stopMotion(), vpRobotViper850::stopMotion(), vpRobotViper650::stopMotion(), vpImage< Type >::sub(), vpServo::testInitialization(), vpServo::testUpdated(), vpMeTracker::track(), vpForwardProjection::track(), vpMeLine::track(), vpMbKltTracker::track(), vpImage< Type >::vpImage(), vpRobotPtu46::vpRobotPtu46(), vpServer::vpServer(), vpKinect::warpRGBFrame(), vpImageIo::writeJPEG(), vpImageIo::writePFM(), vpImageIo::writePGM(), vpImageIo::writePNG(), vpImageIo::writePPM(), and vpRobotPtu46::~vpRobotPtu46().

#define vpIN_FCT   (vpTraceOutput(__FILE__,__LINE__, __FUNCTION__, false, "begin "))

Works like vpTRACE() and should be used at the beginning of a function.

1 #define VP_TRACE // To activate the trace mode
2 #include <visp3/core/vpDebug.h>
3 
4 int main()
5 {
6  vpIN_FCT("main()");
7  // the body of the main() function
8  vpOUT_FCT("main()");
9 }
See also
vpOUT_FCT
Examples:
tutorial-trace.cpp.

Definition at line 276 of file vpDebug.h.

#define vpOUT_FCT   (vpTraceOutput(__FILE__,__LINE__, __FUNCTION__, false, "end "))

Works like vpTRACE() and should be used at the end of a function.

1 #define VP_TRACE // To activate the trace mode
2 #include <visp3/core/vpDebug.h>
3 
4 int main()
5 {
6  vpIN_FCT("main()");
7  // the body of the main() function
8  vpOUT_FCT("main()");
9 }
See also
vpIN_FCT
Examples:
tutorial-trace.cpp.

Definition at line 297 of file vpDebug.h.

#define vpTRACE   (vpTraceOutput( __FILE__,__LINE__, __FUNCTION__, false))

Used to display trace messages on the standard stream. Prints the name of the file, the function name and the line where it was used. Use like this : vpTRACE("my debug message number %d", i); with any "printf" string.

1 #define VP_TRACE // To activate trace mode
2 #include <visp3/core/vpDebug.h>
3 
4 int main()
5 {
6  // C-like debug printings
7  vpTRACE("C-like trace"); // stdout
8 }
See also
vpCTRACE(), vpERROR_TRACE()
Examples:
grab1394Two.cpp, grabDirectShow.cpp, grabDirectShowMulti.cpp, grabV4l2.cpp, histogram.cpp, homographyHartleyDLT2DObject.cpp, keyboard.cpp, manServo4PointsDisplay.cpp, manSimu4Dots.cpp, manSimu4Points.cpp, mbtEdgeKltTracking.cpp, mbtEdgeTracking.cpp, mbtKltTracking.cpp, parallelPort.cpp, ringLight.cpp, servoAfma4Point2DArtVelocity.cpp, servoAfma4Point2DCamVelocity.cpp, servoAfma62DhalfCamVelocity.cpp, servoAfma6Cylinder2DCamVelocity.cpp, servoAfma6Cylinder2DCamVelocitySecondaryTask.cpp, servoAfma6Ellipse2DCamVelocity.cpp, servoAfma6FourPoints2DArtVelocity.cpp, servoAfma6Line2DCamVelocity.cpp, servoAfma6Point2DArtVelocity.cpp, servoAfma6Points2DCamVelocityEyeToHand.cpp, servoAfma6SquareLines2DCamVelocity.cpp, servoAfma6TwoLines2DCamVelocity.cpp, servoBiclopsPoint2DArtVelocity.cpp, servoMomentImage.cpp, servoMomentPoints.cpp, servoMomentPolygon.cpp, servoPtu46Point2DArtVelocity.cpp, servoSimuAfma6FourPoints2DCamVelocity.cpp, servoViper650FourPoints2DArtVelocityInteractionCurrent.cpp, servoViper650FourPoints2DCamVelocityInteractionCurrent.cpp, servoViper850FourPoints2DArtVelocityInteractionCurrent.cpp, servoViper850FourPoints2DArtVelocityInteractionDesired.cpp, servoViper850FourPoints2DCamVelocityInteractionCurrent.cpp, servoViper850FourPointsKinect.cpp, servoViper850Point2DArtVelocity.cpp, simulateCircle2DCamVelocity.cpp, simulateFourPoints2DCartesianCamVelocity.cpp, simulateFourPoints2DPolarCamVelocity.cpp, test1394TwoGrabber.cpp, test1394TwoResetBus.cpp, testConversion.cpp, testReadImage.cpp, testTwistMatrix.cpp, testXmlParser.cpp, trackMeCircle.cpp, trackMeLine.cpp, and tutorial-trace.cpp.

Definition at line 414 of file vpDebug.h.

Referenced by vpFFMPEG::acquire(), vpKeyPointSurf::buildReference(), vpFernClassifier::buildReference(), vpDisplayGTK::clearDisplay(), vpDisplayOpenCV::clearDisplay(), vpBSpline::computeCurveDers(), vpBSpline::computeDersBasisFuns(), vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImage(), vpHomography::DLT(), vpGenericFeature::duplicate(), vpFFMPEG::endWrite(), vpViper850::getCameraParameters(), vpViper650::getCameraParameters(), vpAfma6::getCameraParameters(), vpSimulatorAfma6::getCameraParameters(), vpSimulatorViper850::getCameraParameters(), vpPose::getCovarianceMatrix(), vpMbTracker::getCovarianceMatrix(), vpPoseFeatures::getCovarianceMatrix(), vpKeyPointSurf::getDescriptorParamReferencePoint(), vpKeyPointSurf::getDescriptorReferencePoint(), vpCameraParameters::getFovNormals(), vpFFMPEG::getFrame(), vpCameraParameters::getHorizontalFovAngle(), vpBasicKeyPoint::getIndexInAllReferencePointList(), vpAfma6::getInverseKinematics(), vpKeyPointSurf::getLaplacianReferencePoint(), vpBasicKeyPoint::getMatchedPoints(), vpBasicKeyPoint::getReferencePoint(), vpDisplayGTK::getScreenSize(), vpImage< Type >::getValue(), vpCameraParameters::getVerticalFovAngle(), vpRobotTemplate::init(), vpDisplayX::init(), vpTemplateTracker::initCompInversePyr(), vpFFMPEG::initStream(), vpFeatureEllipse::interaction(), vpFeatureVanishingPoint::interaction(), vpFeatureSegment::interaction(), vpFeatureDepth::interaction(), vpFeaturePoint::interaction(), vpFeatureLine::interaction(), vpFeaturePoint3D::interaction(), vpFeatureThetaU::interaction(), vpFeaturePointPolar::interaction(), vpFeatureTranslation::interaction(), vpMbTracker::loadCAOModel(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), vpPlanarObjectDetector::matchPoint(), vpKeyPointSurf::matchPoint(), vpFernClassifier::matchPoint(), vpFFMPEG::openStream(), vpPlot::plot(), vpRansac< vpTransformation >::ransac(), vpNetwork::receive(), vpNetwork::receiveFrom(), vpFFMPEG::saveFrame(), vpDot2::searchDotsInArea(), vpMeNurbs::seekExtremitiesCanny(), vpNetwork::send(), vpNetwork::sendRequestTo(), vpNetwork::sendTo(), vpMbEdgeTracker::setFarClippingDistance(), vpMbTracker::setFarClippingDistance(), vp1394TwoGrabber::setFormat7ROI(), vpSimulatorAfma6::setJointLimit(), vpSimulatorViper850::setJointLimit(), vpDot::setMaxDotSize(), vpMbEdgeTracker::setNearClippingDistance(), vpMbTracker::setNearClippingDistance(), vpMbEdgeTracker::track(), vpSimulator::write(), and vpServo::~vpServo().