Institut de Robòtica i Informàtica Industrial
KRD Group

The CuikSuite Project

error.h File Reference

Error and warning functions. More...

Go to the source code of this file.

Functions

void Error (const char *s)
 General error function.
int Readcuiksystemerror (const char *s)
 Syntax errors in .cuik files.
int ReadParameterserror (const char *s)
 Syntax errors in .param files.
void ReadcuiksystemSemanticError (const char *s)
 Semantic errors in .cuik files.
void Warning (const char *s)
 General warning function.

Detailed Description

A module that defines different error and warning functions used in the CuikSuite applications.
To have a unique error function helps when debugging.

See also:
error.c, error_world.h.

Definition in file error.h.


Function Documentation

void Error ( const char *  s  ) 

General error function.

Parameters:
s A string describing the error.

Definition at line 80 of file error.c.

Referenced by AddBody2Mechanism(), AddEquation(), AddEquation2Simplex(), AddMonomial(), AddVariable(), AnimateWorld(), ApplyLinkRot(), Box2Buffer(), BoxesIntersection(), BoxUnion(), Buffer2Box(), ChangeParameter(), ComputeSplitDimInt(), CoordInequalitiesHold(), CreateFileName(), CropEquation(), CSRemoveLCVars(), CSRemoveVarsWithCtRange(), CtScaleEquation(), DefineNormalVector(), DeleteSimpCuikSystemJacobian(), DummifyAndAddEquation(), EquationFromLinearConstraint(), EquationFromLinearConstraintProduct(), ErrorInInequalities(), ErrorInSolution(), EvaluateEqMin(), EvaluateEquation(), EvaluateEquationInt(), EvaluateVarSet(), EvaluateVarSetInt(), ExtractFirst(), ExtractLast(), ExtractMinElement(), ExtractVectorElement(), GenerateCylinderOFF(), GenerateJointEquations(), GenerateJointEquationsInBranch(), GenerateJointRangeEquations(), GenerateScaledParabolaEquation(), GenerateScaledSaddleEquation(), GenerateSphereOFF(), GenerateWorldEquationSystems(), GetBoxCenterDistance(), GetBoxInterval(), GetBranchStep(), GetConstantValue(), GetCPolyhedronDefiningPoint(), GetCpolyhedronRadius(), GetCPolyhedronVertex(), GetGlobalInitialBox(), GetJointDOF(), GetJointLength(), GetJointTransform(), GetLinearConstraintCoefficient(), GetLinearConstraintVariable(), GetParameter(), GetTransform2Link(), GetVariable(), GetVariableN(), GetVariablePowerN(), GetVariableTypeN(), GetWorldSystemVars(), HTransformAcumRot(), HTransformGetElement(), HTransformSetElement(), InitCPolyhedronFromFile(), InitParametersFromFile(), InitPlot3d(), InitWorldKinCS(), IntervalAtan2(), IntervalDivision(), LoadCSState(), main(), MaxKinematicReduction(), MoveVectorElement(), MoveWorld(), MPI_SolveCuikSystem(), NewFixJoint(), NewFreeJoint(), NewInPatchJoint(), NewPrismaticJoint(), NewRevoluteJoint(), NewSphericalJoint(), NewSphSphJoint(), NewUniversalJoint(), Plot3dObject(), PlotBox3d(), PlotCylinder(), PlotSphere(), PlotTriangle3d(), PlotVect3d(), PlotWorld(), PointInBox(), PointInSystemBox(), PrintEquation(), PrintVariables(), PrintWorldCS(), ReadBox(), Readcuiksystemerror(), ReadcuiksystemSemanticError(), ReadOFF(), ReadParameterserror(), ReadWorlderror(), ReduceBox(), ReduceRange(), ReGenerateOriginalBox(), ReplaceVariableInEquation(), RewriteEquation(), SampleCuikSystemInBox(), SaveCPolyhedron(), SaveCSState(), SetBoxInterval(), SetCSSearchMode(), SetEquationCmp(), SetEquationInfo(), SetOriginalVarRelation(), SetParameter(), ShiftVarIndexes(), SimplexAddNewConstraintRaw(), SimplexCreate(), SimplexSetRowBounds(), SplitBox(), SplitGlobalBox(), SwapVectorElements(), UpdateCuikSystem(), UpdateHeapElement(), and VarScaleEquation().

int Readcuiksystemerror ( const char *  s  ) 

This function is called by the .cuik file parser when encountering syntax errors.

Parameters:
s A string generated by Bison (Normally it contains "Syntax Error").
Returns:
EXIT_FAILURE.

Definition at line 88 of file error.c.

References Error(), and RCSline.

Here is the call graph for this function:

int ReadParameterserror ( const char *  s  ) 

This function is called by the .param file parser when encountering syntax errors.

Parameters:
s A string generated by Bison (Normally it contains "Syntax Error").
Returns:
EXIT_FAILURE.

Definition at line 98 of file error.c.

References Error(), and RPNline.

Here is the call graph for this function:

void ReadcuiksystemSemanticError ( const char *  s  ) 

This function is called by the .cuik file parser when it encountrs a semantic error.

Parameters:
s A string describing the error.
Returns:
EXIT_FAILURE.

Definition at line 108 of file error.c.

References Error(), and RCSline.

Here is the call graph for this function:

void Warning ( const char *  s  ) 

General warning function.

Parameters:
s A string describing the warning.

Definition at line 116 of file error.c.

Referenced by ComputeSplitDimInt().

Here is the caller graph for this function: