variable.c File Reference Detailed DescriptionImplementation of the functions operating on box Tvariable.
Definition in file variable.c.
Function Documentation
Creates a new variable.
Definition at line 21 of file variable.c. References INF, Tvariable::is, Tvariable::name, NEW, NewInterval(), Tvariable::topology, TOPOLOGY_R, and Tvariable::type. Referenced by AddJacobianEquationsInt(), AdjustBioWorldGeometry(), DummifyAndAddEquation(), GenerateEquationsFromBranch(), GenerateJointEquations(), GenerateJointRangeEquations(), GenerateJointRangeSingularityEquations(), GenerateLinkRotFLinks(), GenerateLinkRotLinks(), GenerateLinkRotQLinks(), GenerateWorldSingularityEquations(), and GetSCpSystem(). Creates a new variable from another one.
Definition at line 33 of file variable.c. References CopyInterval(), Tvariable::is, Tvariable::name, NEW, Tvariable::topology, and Tvariable::type. Referenced by AddVariable(), CopyVariables(), and GetCSVariable().
Changes the topology of the variable. The default value for the topology is TOPOLOGY_R.
Definition at line 44 of file variable.c. References Error(), Tvariable::topology, TOPOLOGY_R, and TOPOLOGY_S. Referenced by GenerateJointEquations().
Returns the topology of the variable. Note that even if a variable has TOPOLOGY_S, it is set to TOPOLOGY_R if its associated range is smaller than 2*pi. Only variables with ranges larger than 2*pi have to routes to connect any two given points.
Definition at line 52 of file variable.c. References IntervalSize(), Tvariable::is, M_2PI, Tvariable::topology, TOPOLOGY_R, TOPOLOGY_S, and ZERO. Referenced by GetCSVarTopology(), and GetVariablesTopology().
Gets the variable type.
Definition at line 60 of file variable.c. References Tvariable::type. Referenced by AddVariable(), GetVariableTypeN(), IsCartesianVariable(), IsDummyVariable(), IsSecondaryVariable(), IsSystemVariable(), PrintVariables(), and RemoveVariable().
Gets the variable name.
Definition at line 65 of file variable.c. References Tvariable::name. Referenced by AddVariable(), AddVariable2CS(), CSRemoveLCVars(), CSRemoveVarsWithCtRange(), DummifyAndAddEquation(), GetVariableID(), GetVariableNames(), InitMapping(), IsInSimple(), SimplifyCuikSystem(), and VariableName(). Sets the new range for the variable.
Definition at line 70 of file variable.c. References CopyInterval(), and Tvariable::is. Referenced by AddJacobianEquationsInt(), AdjustBioWorldGeometry(), DummifyAndAddEquation(), GenerateEquationsFromBranch(), GenerateJointEquations(), GenerateJointRangeEquations(), GenerateJointRangeSingularityEquations(), GenerateLinkRotFLinks(), GenerateLinkRotLinks(), GenerateLinkRotQLinks(), GenerateWorldSingularityEquations(), GetSCpSystem(), SampleCuikSystemInBox(), SetCSVariableRange(), SimplifyCuikSystem(), and VariablesFromBox(). Gets the range of valid values for the variable.
Definition at line 75 of file variable.c. References Tvariable::is. Referenced by BoxFromVariables(), CSRemoveLCVars(), DummifyAndAddEquation(), and PointFromVariables().
Prints a variable (name plus valid range) to a stream that can be stdout.
Definition at line 80 of file variable.c. References Tvariable::is, Tvariable::name, PRINT_VARIABLE_NAME, PrintInterval(), PrintSymbolInterval(), Tvariable::topology, and TOPOLOGY_S. Referenced by PrintVariables().
Deletes the Tvariable structure and frees the allocated memory.
Definition at line 95 of file variable.c. References Tvariable::name. Referenced by AddJacobianEquationsInt(), AdjustBioWorldGeometry(), DeleteVariables(), DummifyAndAddEquation(), GenerateEquationsFromBranch(), GenerateJointEquations(), GenerateJointRangeEquations(), GenerateJointRangeSingularityEquations(), GenerateLinkRotFLinks(), GenerateLinkRotLinks(), GenerateLinkRotQLinks(), GenerateWorldSingularityEquations(), GetSCpSystem(), and RemoveVariable(). |
Follow us!