cuikanimate.c File Reference

Detailed Description


Animates sets of boxes. For the animation we need a description of the world to animate (mechanism+environment) and a set of solution boxes defining a movement for the mechanisms (stored in a .sol file). This set of solution boxes can be, for instance, the paths between samples obtained from cuikplan or a set of boxes for a mechanisms with a one-dimensional solution set obtained via cuik and sorted using cuiksort

See Also
cuik.c cuikplan.c cuiksort.c

Definition in file cuikanimate.c.


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

Function Documentation

int main ( int  argc,
char **  arg 

Main body of the cuikanimate application.


  • cuikanimate solutions_name.sol axes_length frame_delay animation_name.cgl


  • world_name: File describing the problem.
  • solutions_name: Is the path of solutions to be animated.
  • axes_length: Is the length for the axes for each link. 0 not to display them.
  • frame_delay: Extra delay added in between frames. It is useful when "animating" a set of isolated solutions to make each solution to be shown enough time to be inspected.
  • animation_name: Is the output file (can be browsed with 'geomview').

File extensions 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 65 of file cuikanimate.c.

References AnimateWorld(), CreateFileName(), DeleteFileName(), DeleteListOfBoxes(), DeleteParameters(), DeleteWorld(), Error(), GetFileFullName(), InitParametersFromFile(), InitWorldFromFile(), ListSize(), PARAM_EXT, PLOT3D_EXT, ReadListOfBoxes(), SOL_EXT, and TRUE.