error.c File Reference

Detailed Description

Implementation of error and warning functions.

See Also
error.h.

Definition in file error.c.

Functions

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

Variables

unsigned int RCSline =0
 Number of the line currently parsed when reading a .cuik file. More...
 
unsigned int RPNline =0
 Number of the line currently parsed when reading a .param file. More...
 

Function Documentation

void Error ( const char *  s)

General error function.

Parameters
sA string describing the error.

Definition at line 80 of file error.c.

Referenced by AddBody2Mechanism(), AddBranchToAtlasRRT(), AddChart2AtlasRRT(), AddChart2Btree(), AddCtTrans2MEquation(), AddEdgeToRRT(), AddEquation(), AddEquation2Simplex(), AddEquationNoSimp(), AddJacobianEquations(), AddJacobianEquationsInt(), AddJoint2World(), AddLink2World(), AddMatrixEquation2CS(), AddNodeToRRT(), AddObstacle2World(), AddPatchTrans2MEquation(), AddPolyhedron2Vcollide(), AddSample2AtlasRRT(), AddScaledMonomial(), AddShape2Solid(), AddSimplifiedJacobianEquations(), AddStepToAtlasRRTstar(), AddTransSeq2MEquation(), AddVariable(), AddVarTrans2MEquation(), AddVarTrans2TransSeq(), AdjustBioWorldGeometry(), AnimateWorld(), ApplyLinkRot(), ApplyLinkRotFLinks(), ApplyLinkRotLinks(), ApplyLinkRotQLinks(), AtlasAStar(), AtlasBiRRTstar(), AtlasGBF(), AtlasRRT(), AtlasRRTSample(), AtlasRRTstar(), AtlasTRRT(), Atoms2Transforms(), BiRRTstar(), BoundaryPointFromExternalCorner(), BoundaryPointsFromExternalCorners(), Box2Buffer(), BoxesIntersection(), BoxUnion(), Buffer2Box(), BuildAtlasFromPoint(), CacheRotVars(), cBiRRT(), ccRRT(), ccTRRT(), ChangeParameter(), Chart2Manifold(), CheckAllCollisions(), CheckCollision(), CheckHeap(), CheckLinkLinkCollision(), CheckLinkObstacleCollision(), CheckSelfCollisions(), CompareTangentSpaces(), ComputeEnergy(), ComputeSplitDim(), ComputeSplitDimInt(), ConnectSamplesChart(), CreateFileName(), CropEquation(), CSRemoveLCVars(), CSRemoveVarsWithCtRange(), CtScaleEquation(), CuikNewtonInBox(), CuikNewtonSimp(), DefineChartsAtBifurcation(), DefineNormalVector(), DefinePQPModel(), DeleteCD(), DeriveMEquation(), DeriveTransSeq(), DeriveVarSet(), DetectLinksAndJointsFromResidues(), DetectLinksAndJointsFromRigidsAndHinges(), DetermineChartNeighbour(), DetermineChartNeighbours(), DummifyAndAddEquation(), EnlargeChart(), EquationFromLinearConstraint(), EquationFromLinearConstraintProduct(), ErrorDueToVariable(), ErrorInInequalities(), ErrorInSimpCSEquations(), ErrorInSimpInequalitiesOnPoint(), ErrorInSolution(), EvaluateEqMin(), EvaluateEquation(), EvaluateEquationInt(), EvaluateEquationsXVectors(), EvaluateSimpCSEquations(), EvaluateSubSetSimpCSEquations(), EvaluateTransSeq(), EvaluateVarSet(), EvaluateVarSetInt(), EvaluateVectorsPATrans(), EvaluateWholeEquation(), EvaluateWorldCost(), EvaluateWorldJacobian(), ExpandibleChart(), ExtendAtlasFromPoint(), ExtendAtlasTowardPoint(), ExtractFirst(), ExtractLast(), ExtractMinElement(), ExtractVectorElement(), FindPointInOtherBranch(), FindRightNullVector(), FindSingularPoint(), FixVariableInVarSet(), FocusedPointOnBoundary(), GaussianElimination(), GenerateCylinderOFF(), GenerateJointEquations(), GenerateJointEquationsInBranch(), GenerateJointRangeEquations(), GenerateJointRangeSingularityEquations(), GenerateJointSolution(), GenerateLinkRot(), GenerateLinkSolution(), GenerateScaledParabolaEquation(), GenerateScaledSaddleEquation(), GenerateSimpInitialBox(), GenerateSimplifiedPoint(), GenerateSphereOFF(), GenerateTransEquationsFromBranch(), GenerateWorldEquations(), GenerateWorldSingularityEquations(), GenerateWorldTWSEquations(), GetBoxCenterDistance(), GetBoxInterval(), GetBranchStep(), GetChartDegree(), GetChartSamplingRadius(), GetConstantValue(), GetCSEquation(), GetElementFromTransSeq(), GetEquation(), GetEquationBounds(), GetEquationTypeN(), GetEqVectorElement(), GetFirstOrderApproximationToEquation(), GetJacobianColumn(), GetJacobianEquation(), GetJointDOF(), GetJointDOFValues(), GetJointLength(), GetJointName(), GetJointRangeN(), GetJointRangeTopology(), GetJointTransform(), GetJointTransSeq(), GetLinearConstraintCoefficient(), GetLinearConstraintVariable(), GetLinkPoseSimpVars(), GetLinkTransformsFromSolutionPoint(), GetMoleculeBasicInfo(), GetObstacleColor(), GetParameter(), GetPolyhedronCenter(), GetPolyhedronDefiningPoint(), GetPolyhedronRadius(), GetPolyhedronVertex(), GetPolytopeNeighboursFromVertices(), GetRRTNNInBranch(), GetSampleDistance(), GetSampleValue(), GetSCpSystem(), GetSimpCSJacobian(), GetSimpCSTopology(), GetTransform2Link(), GetVariable(), GetVariableFunctionN(), GetVariableN(), GetVariablePowerN(), GetVariableTypeN(), GetWorldDOFLabel(), GetWorldInitialBox(), GetWorldJacobian(), GetWorldJointLabel(), GetWorldNumSystemVariables(), GetWorldNumVariables(), GetWorldRangeDOF(), GetWorldSimpInitialBox(), GetWorldSimpJacobian(), GetWorldSimpTopology(), GetWorldSimpVariableMask(), GetWorldSystemVars(), GetWorldVarNames(), HTransformAcumRot(), HTransformCreate(), HTransformGetElement(), HTransformSetElement(), HTransformX2Vect(), IncrementalSampleCuikSystem(), IncrementalSampleCuikSystemInBox(), InitAtlasFromPoint(), InitAtlasHeapElement(), InitAtlasRRT(), InitCD(), InitChartInt(), InitJacobian(), InitJoint(), InitParametersFromFile(), InitPatchTrans(), InitPlot3d(), InitPolyhedronFromFile(), InitRRT(), InitVarTrans(), InitWorldCD(), InitWorldFromMolecule(), InitWorldKinCS(), IntersectChartsInt(), IntervalAtan2(), IsCoordEquation(), IsDummyEquation(), IsSystemEquation(), IsSystemVarInSimpCS(), IsWorldPolynomial(), Line2Points(), LinkChart(), LoadAtlas(), LoadAtlasRRT(), LoadCSState(), LoadRRT(), LoadSamples(), main(), MaxReduction(), MaxWorldReduction(), MinCosinusBetweenCharts(), MinimizeOnAtlas(), MoveVectorElement(), MoveWorld(), MoveWorldDOF(), MPI_SolveCuikSystem(), MPI_TreatBox(), NewBox(), NewInPatchJoint(), NewPrismaticJoint(), NewRevoluteJoint(), NewSphericalJoint(), NewSphPrsSphJoint(), NewSuccesfulExperiment(), Newton2ManifoldPlane(), NewtonInWorld(), NewUniversalJoint(), NoCheckAllCollisions(), NoCheckLinkLinkCollision(), NoCheckLinkObstacleCollision(), NoCheckSelfCollisions(), Normalize(), on_cuikexplore_save(), on_cuikmove_save(), Plane3Points(), Plot3dObject(), Plot3dObjectWithColor(), Plot3dObjectWithColors(), PlotBox3d(), PlotChart(), PlotChartAsBox(), PlotChartAsPolygon(), PlotCylinder(), PlotLine(), PlotSegments(), PlotSphere(), PlotTriangle3d(), PlotVect3d(), PlotWorld(), PointInBox(), PointInBoxTopology(), PointInSystemBox(), PolytopeBoundaryPointFromExternalCornerInt(), PolytopeCenter(), PrintCollisionInfo(), PrintEquation(), PrintJoint(), PrintJointAxes(), PrintParameters(), PrintPolyhedron(), PrintTransSeq(), PrintVariables(), PrintVarSet(), PrintWorld(), PrintWorldAxes(), PrintWorldCS(), ProductEquations(), ReadBox(), Readcuiksystemerror(), ReadcuiksystemSemanticError(), ReadGeneralMesh(), ReadMolecule(), ReadOFF(), ReadOneSample(), ReadParameterserror(), ReadResidueList(), ReadRigidsAndHinges(), ReadSTL(), ReadTwoSamples(), ReadWorlderror(), RecursiveReWireRRTstar(), ReduceBox(), ReduceRange(), RegenerateLinkBox(), RegenerateLinkSolution(), RegenerateOriginalBox(), RegenerateOriginalPoint(), RegenerateSolutionPoint(), RegenerateWorldOriginalPoint(), RegenerateWorldSolutionPoint(), RemoveEquationsWithVar(), ReplaceVariableInEquation(), ReplaceVariableInEquations(), ReplaceVariableInVarSet(), ResetMEquation(), ReWireRRTstar(), RewriteEquation2Orig(), RewriteEquation2Simp(), RRTstar(), SampleCuikSystem(), SampleCuikSystemInBox(), SaveAtlas(), SaveAtlasRRT(), SaveChartCenters(), SaveCSState(), SavePolyhedron(), SaveRRT(), SaveRRTCosts(), SaveRRTNodes(), SaveSamplesInt(), SaveSingularCharts(), SegmentCircleIntersection(), SegmentSphereIntersection(), SetAtlasTopology(), SetBoxInterval(), SetCSSearchMode(), SetEquationCmp(), SetEquationInfo(), SetOriginalVarRelation(), SetParameter(), SetRotVars(), SetRRTCostAndParent(), SetRRTNodeCost(), SetRRTNodeInfo(), SetRRTParent(), SetRRTTopology(), SetTranslationMEquation(), SetVariableTopology(), ShiftVariablesInTransSeq(), ShiftVarIndexes(), SHTransformGetElement(), SimpInequalitiesHoldOnPoint(), SimplexAddNewConstraintRaw(), SimplexCreate(), SimplexSetRowBounds(), SimplifyMEquation(), SmoothSamples(), SolidCorrection(), SolveCuikSystem(), SplitBox(), StoreCollisionInfo(), SwapVectorElements(), TriangulateAtlas(), UpdateBiRRTSteps(), UpdateCuikSystem(), UpdateHeapElement(), UpdateSplitWeight(), UpdateTree(), UpdateUsedDOF(), VarScaleEquation(), VerifyCuikSystem(), WireAtlasRRTstar(), WireRRTstar(), WorldAtomJacobian(), WorldDOF2Sol(), WorldErrorInEquations(), WorldErrorInSimpEquations(), WorldErrorInSimpInequalities(), WorldEvaluateEquations(), WorldEvaluateSimpEquations(), WorldEvaluateSubSetSimpEquations(), WorldGenerateSimplifiedPoint(), WorldInequalitiesHold(), WorldInitDOFInfo(), WorldSample2DOF(), WorldSimpInequalitiesHold(), WriteMolecule(), and WrongCorner().

int Readcuiksystemerror ( const char *  s)

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

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

Definition at line 88 of file error.c.

References Error(), and RCSline.

int ReadParameterserror ( const char *  s)

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

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

Definition at line 98 of file error.c.

References Error(), and RPNline.

void ReadcuiksystemSemanticError ( const char *  s)

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

Parameters
sA string describing the error.
Returns
EXIT_FAILURE.

Definition at line 108 of file error.c.

References Error(), and RCSline.

Variable Documentation

unsigned int RCSline =0

Number of the line currently parsed when reading a .cuik file.

Definition at line 71 of file error.c.

Referenced by Readcuiksystemerror(), and ReadcuiksystemSemanticError().

unsigned int RPNline =0

Number of the line currently parsed when reading a .param file.

Definition at line 78 of file error.c.

Referenced by ReadParameterserror().