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

The CuikSuite Project

cuikanimate.c File Reference

Main body of the cuikanimate application. More...

#include "world.h"
#include "box_list.h"
#include "error.h"

Go to the source code of this file.

Functions

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

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.


Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuikanimate application.

Use:

  • cuikanimate world_name.world solutions_name.sol axes_length frame_delay animation_name.cgl

Where:

  • 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.

Parameters:
argc Number of elements in the command line that starts the application (i.e., the cuikanimate command itself and its arguments).
arg Strings with the arguments.
Returns:
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 44 of file cuikanimate.c.

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

Here is the call graph for this function: