cuikmove.c File Reference

Detailed Description


This application allows to interactively move a mechanism.

This application produces a stream that must be redirected to actually see the animation. This is automatially done by the cuikmove script (see the scripts folder).

Definition in file cuikmove.c.


int main (int argc, char **arg)
 Main body of the cuikmove application. More...

Function Documentation

int main ( int  argc,
char **  arg 

Main body of the cuikmove application.


  • cuikmove initFiles.dof axes_length accuracy


  • world_name: File describing the problem.
  • initFile: File from where to get the initial values for the dof. This is optional. If not given, the center of each range is used.
  • axes_length: Is the length for the axes for each link.
    This parameter is optional and the default value is 0.
  • accuracy: Size in each step in each DOF (in decimal digits). The default value is 3.

File extension is optional. The two las parameters are optional.

argcNumber of elements in the command line that starts the application (i.e., the cuikanimate command itself and its arguments).
argStrings with the arguments.
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 79 of file cuikmove.c.

References TCuikMoveControl::accuracy, TCuikMoveControl::changed, ChangeParameter(), ClosePlot3d(), CreateFileName(), CT_REPRESENTATION, DeleteFileName(), DeleteInterval(), DeleteParameters(), DeleteWorld(), TCuikMoveControl::dof, TCuikMoveControl::end, FALSE, TCuikMoveControl::fw, GetFileBaseName(), GetFileFullName(), GetParameter(), GetWorldNDOF(), GetWorldRangeDOF(), InitParametersFromFile(), InitPlot3d(), InitWorldFromFile(), IntervalCenter(), JOINTS_EXT, LowerLimit(), TCuikMoveControl::max, TCuikMoveControl::min, MoveWorldDOF(), TCuikMoveControl::ndof, NEW, TCuikMoveControl::p, PARAM_EXT, PlotWorld(), REP_JOINTS, TRUE, UpperLimit(), TCuikMoveControl::w, and WORLD_EXT.