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

The CuikSuite Project

cuiksimplify.c File Reference

Main body of the cuiksimplify application. More...

#include "cuiksystem.h"
#include "parameters.h"
#include "defines.h"
#include "error.h"
#include "filename.h"
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>

Go to the source code of this file.

Functions

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

Detailed Description

A utility to simplify problems. It takes a set of equations and try to reduce the number of variables (removing variables with constant range,....).
The application produces an output _simp.cuik file with name with the simplified equations.
This utility is for minly for debug purposes since the simplification functionality is fully included in cuikplan and cuik.

See also:
cuiksystem.h cuiksystem.c

Definition in file cuiksimplify.c.


Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuiksimplify application.

Use:

  • cuiksimplify problem_name.cuik

where

  • problem_name contains the kinematic equations.

The .cuik extension is optional.

Parameters:
argc Number of elements in the command line that starts the application (i.e., the cuiksimplify 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 51 of file cuiksimplify.c.

References ChangeParameter(), CreateFileName(), CT_DUMMIFY, CUIK_EXT, DeleteCuikSystem(), DeleteFileName(), DeleteParameters(), Error(), GetFileFullName(), InitCuikSystemFromFile(), InitParametersFromFile(), PARAM_EXT, and PrintCuikSystemWithSimplification().

Here is the call graph for this function: