Visual Servoing Platform  version 3.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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.

#define VP_DEBUG // Activate the debug mode
#define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
#include <visp3/core/vpDebug.h>
int main()
{
// C++-like debug printings
vpCTRACE << "C++-like trace" << std::endl; // stdout
vpCERROR << "C++-like error trace" << std::endl; // stderr
// Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
vpCDEBUG(2) << "C++-like debug trace level 2" << std::endl; // stdout
}
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;

#define VP_TRACE // To activate trace mode
#define VP_DEBUG // To activate the debug mode
#define VP_DEBUG_MODE 2 // To activate debug level 1 and 2
#include <visp3/core/vpDebug.h>
int main()
{
// C++-like debug printings
vpCTRACE << "C++-like trace" << std::endl; // stdout
vpCERROR << "C++-like error trace" << std::endl; // stderr
// Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
vpCDEBUG(2) << "C++-like debug trace level 2" << std::endl; // stdout
}
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;

#define VP_TRACE // To activate trace mode
#define VP_DEBUG // To activate the debug mode
#define VP_DEBUG_MODE 2 // To activate debug level 1 and 2
#include <visp3/core/vpDebug.h>
int main()
{
// C++-like debug printings
vpCTRACE << "C++-like trace" << std::endl; // stdout
vpCERROR << "C++-like error trace" << std::endl; // stderr
// Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
vpCDEBUG(2) << "C++-like debug trace level 2" << std::endl; // stdout
}
See Also
vpTRACE(), vpCERROR(), vpCDEBUG()
Examples:
AROgre.cpp, AROgreBasic.cpp, grabDirectShow.cpp, keyPointSurf.cpp, movePtu46.cpp, testClick.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.

#define VP_DEBUG // Activate the debug mode
#define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
#include <visp3/core/vpDebug.h>
int main()
{
// Check the active debug levels
std::cout << "Debug level 1 active: " << vpDEBUG_ENABLE(1) << std::endl;
std::cout << "Debug level 2 active: " << vpDEBUG_ENABLE(2) << std::endl;
std::cout << "Debug level 3 active: " << vpDEBUG_ENABLE(3) << std::endl;
}
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.

#define VP_DEBUG // Activate the debug mode
#define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
#include <visp3/core/vpDebug.h>
int main()
{
// Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
vpDEBUG_TRACE(2, "C-like debug trace level 2"); // stdout
vpDERROR_TRACE(2, "C-like error trace level 2"); // stderr
}
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(), vpDisplayX::init(), vpImage< Type >::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.

#define VP_DEBUG // Activate the debug mode
#define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
#include <visp3/core/vpDebug.h>
int main()
{
// Printing if VP_DEBUG defined and VP_DEBUG_MODE value >= 2
vpDEBUG_TRACE(2, "C-like debug trace level 2"); // stdout
vpDERROR_TRACE(2, "C-like error trace level 2"); // stderr
}
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.

#define VP_TRACE // To activate trace mode
#define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
#include <visp3/core/vpDebug.h>
int main()
{
// Printing depend only VP_DEBUG_MODE value is >= 1
vpTRACE(1, "C-like trace level 1"); // stdout
vpERROR_TRACE(1, "C-like error trace level 1"); // stderr
}
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, 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(), vpRobotViper650::biasForceTorqueSensor(), vpRobotViper850::biasForceTorqueSensor(), vpFeatureDepth::buildFrom(), vpFeaturePoint::buildFrom(), vpFeaturePoint3D::buildFrom(), vpFeaturePointPolar::buildFrom(), vpImageTools::changeLUT(), vpServer::checkForConnections(), vpRobotAfma6::checkJointLimits(), vpSubMatrix::checkParentStatus(), vp1394CMUGrabber::close(), vpVideoWriter::close(), vp1394TwoGrabber::close(), vpRobotAfma6::closeGripper(), vpSimulatorAfma6::computeArticularVelocity(), vpSimulatorViper850::computeArticularVelocity(), vpCalibration::computeCalibrationTsai(), vpServo::computeControlLaw(), vpServo::computeError(), 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(), vpFeatureVanishingPoint::display(), vpFeatureEllipse::display(), vpFeatureLuminance::display(), vpGenericFeature::display(), vpFeatureDepth::display(), vpFeaturePoint::display(), vpFeatureLine::display(), vpFeaturePoint3D::display(), vpFeatureThetaU::display(), vpFeaturePointPolar::display(), vpFeatureTranslation::display(), vpFeatureDisplay::displayCylinder(), vpFeatureDisplay::displayLine(), vpFeatureDisplay::displayPoint(), vpHomography::DLT(), vpRobotViper650::enableJoint6Limits(), vpRobotViper850::enableJoint6Limits(), vpServolens::enablePrompt(), vp1394TwoGrabber::enqueue(), vpFeatureDepth::error(), vpGenericFeature::error(), vpFeatureThetaU::error(), vpFeatureTranslation::error(), vpLinearKalmanFilterInstantiation::filter(), vpPose::findMatch(), 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(), vpServolens::getCameraParameters(), vpViper650::getCameraParameters(), vpViper850::getCameraParameters(), vpAfma6::getCameraParameters(), vpSimulatorAfma6::getCameraParameters(), vp1394TwoGrabber::getColorCoding(), vp1394TwoGrabber::getColorCodingSupported(), vpKinect::getDepthMap(), vpRobotPtu46::getDisplacement(), vpRobotBiclops::getDisplacement(), vpRobotAfma4::getDisplacement(), vpRobotAfma6::getDisplacement(), vpRobotViper650::getDisplacement(), vpRobotViper850::getDisplacement(), vpRobotViper650::getForceTorque(), vpRobotViper850::getForceTorque(), vpVideoReader::getFrame(), vpVideoReader::getFramerate(), vp1394TwoGrabber::getFramerate(), vp1394TwoGrabber::getFramerateSupported(), vp1394TwoGrabber::getGuid(), vp1394TwoGrabber::getHeight(), vpDisplayX::getKeyboardEvent(), vp1394TwoGrabber::getParameterValue(), vpHistogram::getPeaks(), vpRobotPtu46::getPosition(), vpServolens::getPosition(), vpRobotBiclops::getPosition(), vpSimulatorAfma6::getPosition(), vpRobotAfma4::getPosition(), vpSimulatorViper850::getPosition(), vpRobotAfma6::getPosition(), vpRobotViper650::getPosition(), vpRobotViper850::getPosition(), vpRobotAfma4::getPowerState(), vpRobotAfma6::getPowerState(), vpRobotViper650::getPowerState(), vpRobotViper850::getPowerState(), vpNetwork::getReceptorIndex(), vpIoTools::getUserName(), vpHistogram::getValey(), vpImage< double >::getValue(), vpImage< Type >::getValue(), vpImage< vpRGBa >::getValue(), vpRobotPtu46::getVelocity(), vpRobotBiclops::getVelocity(), vpSimulatorAfma6::getVelocity(), vpSimulatorViper850::getVelocity(), vpRobotAfma4::getVelocity(), vpRobotAfma6::getVelocity(), vpRobotViper650::getVelocity(), vpRobotViper850::getVelocity(), vp1394TwoGrabber::getVideoMode(), vp1394TwoGrabber::getVideoModeSupported(), vp1394TwoGrabber::getWidth(), vpSubMatrix::init(), vpRobotPtu46::init(), vpAfma6::init(), vpDisplayWin32::init(), vpRobotBiclops::init(), vpViper650::init(), vpViper850::init(), vpDisplayX::init(), vpImage< Type >::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(), vpFeatureDepth::interaction(), vpGenericFeature::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(), vpColVector::operator-(), vpSubMatrix::operator=(), vpRGBa::operator=(), vpImage< Type >::operator=(), vpXmlParser::parse(), vpViper650::parseConfigFile(), vpViper850::parseConfigFile(), vpPose::poseDementhonPlan(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpRobotAfma4::powerOff(), vpRobotAfma6::powerOff(), vpRobotViper650::powerOff(), vpRobotViper850::powerOff(), vpRobotAfma4::powerOn(), vpRobotAfma6::powerOn(), vpRobotViper650::powerOn(), vpRobotViper850::powerOn(), vpFeatureLuminance::print(), vp1394TwoGrabber::printCameraInfo(), vpForwardProjection::project(), vpCircle::projection(), vpSphere::projection(), vpRansac< vpTransformation >::ransac(), vpHomography::ransac(), vpImageIo::readPNG(), 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(), vpServolens::setController(), vpGenericFeature::setError(), vpVideoWriter::setFileName(), vpVideoReader::setFileName(), vpDisplayWin32::setFont(), vpDisplayOpenCV::setFont(), vp1394TwoGrabber::setFormat7ROI(), vp1394CMUGrabber::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(), vpRobotViper650::setPosition(), vpRobotViper850::setPosition(), vpRobotBiclops::setPositioningVelocity(), vpV4l2Grabber::setScale(), vpMbEdgeTracker::setScales(), vpSimulatorCamera::setVelocity(), vpSimulatorPioneer::setVelocity(), vpRobotCamera::setVelocity(), vpSimulatorPioneerPan::setVelocity(), vpRobotPtu46::setVelocity(), vpRobotBiclops::setVelocity(), vpSimulatorAfma6::setVelocity(), vpSimulatorViper850::setVelocity(), vpRobotAfma4::setVelocity(), vpRobotAfma6::setVelocity(), vpRobotViper650::setVelocity(), vpRobotViper850::setVelocity(), vp1394CMUGrabber::setVideoMode(), vpFeatureSegment::setZ1(), vpFeatureSegment::setZ2(), vpHistogram::smooth(), vpServer::start(), vpRobotAfma4::stopMotion(), vpRobotAfma6::stopMotion(), vpRobotViper650::stopMotion(), vpRobotViper850::stopMotion(), vpImage< Type >::sub(), vpServo::testInitialization(), vpServo::testUpdated(), vpMeTracker::track(), vpForwardProjection::track(), vpMeLine::track(), vpMbKltMultiTracker::track(), vpMbKltTracker::track(), vpImage< Type >::vpImage(), vpRobotPtu46::vpRobotPtu46(), vpServer::vpServer(), vpKinect::warpRGBFrame(), vpImageIo::writePNG(), 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.

#define VP_TRACE // To activate the trace mode
#include <visp3/core/vpDebug.h>
int main()
{
vpIN_FCT("main()");
// the body of the main() function
vpOUT_FCT("main()");
}
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.

#define VP_TRACE // To activate the trace mode
#include <visp3/core/vpDebug.h>
int main()
{
vpIN_FCT("main()");
// the body of the main() function
vpOUT_FCT("main()");
}
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.

#define VP_TRACE // To activate trace mode
#include <visp3/core/vpDebug.h>
int main()
{
// C-like debug printings
vpTRACE("C-like trace"); // stdout
}
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, 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(), vpViper650::getCameraParameters(), vpViper850::getCameraParameters(), vpAfma6::getCameraParameters(), vpSimulatorAfma6::getCameraParameters(), vpSimulatorViper850::getCameraParameters(), vpMbTracker::getCovarianceMatrix(), vpPose::getCovarianceMatrix(), vpPoseFeatures::getCovarianceMatrix(), vpKeyPointSurf::getDescriptorParamReferencePoint(), vpKeyPointSurf::getDescriptorReferencePoint(), vpCameraParameters::getFovNormals(), vpFFMPEG::getFrame(), vpCameraParameters::getHorizontalFovAngle(), vpBasicKeyPoint::getIndexInAllReferencePointList(), vpAfma6::getInverseKinematics(), vpKeyPointSurf::getLaplacianReferencePoint(), vpBasicKeyPoint::getMatchedPoints(), vpBasicKeyPoint::getReferencePoint(), vpCameraParameters::getVerticalFovAngle(), vpRobotTemplate::init(), vpDisplayX::init(), vpFFMPEG::initStream(), vpFeatureVanishingPoint::interaction(), vpFeatureEllipse::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(), vpMbEdgeMultiTracker::track(), vpMbEdgeTracker::track(), vpSimulator::write(), and vpServo::~vpServo().