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

The CuikSuite Project

cuikplay.c File Reference

Main body of the cuikplay application. More...

#include "cuikplay.h"
#include "world.h"
#include "box_list.h"
#include "error.h"
#include "cuikplay_interface.h"
#include "cuikplay_support.h"
#include <gtk/gtk.h>
#include <unistd.h>
#include <time.h>

Go to the source code of this file.

Functions

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

Detailed Description

This application allows to play a animation. This is like cuikanimate but shows a dialog that allow to control the animation (play, pause, move to a particular frame).

This application produces a stream that must be redirected to Geomview to actually see the animation. This is automatially done by the cuikplayer scripts (see the scripts directory).

Definition in file cuikplay.c.


Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuikanimate application.

Use:

  • cuikplay world_name.world solutions_name.sol axes_length frame_delay

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.
    This parameter is optional and the default value is 0.
  • frame_delay: Delay 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.
    This parameter is optional and the default value is 0.1.

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 57 of file cuikplay.c.

References ClosePlot3d(), CreateFileName(), TCuikPlayControl::currentFrame, DeleteFileName(), DeleteListOfBoxes(), TCuikPlayControl::end, Error(), FALSE, First(), GetCurrent(), GetFileFullName(), InitIterator(), InitParametersFromFile(), InitPlot3d(), InitWorldFromFile(), ListSize(), TCuikPlayControl::maxFrame, TCuikPlayControl::mode, MoveTo(), MoveWorld(), TCuikPlayControl::nextFrame, PARAM_EXT, PlotWorld(), ReadListOfBoxes(), SOL_EXT, TCuikPlayControl::time, TRUE, and WORLD_EXT.

Here is the call graph for this function: