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

The CuikSuite Project

cuikatan2.c File Reference

Main body of the cuikatan2 application. More...

#include "box.h"
#include "defines.h"
#include "filename.h"
#include <string.h>

Go to the source code of this file.

Functions

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

Detailed Description

A utility to transform boxes with sin/cos to boxes with the correponding angles.

Definition in file cuikatan2.c.


Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuikatan2 application.

Use:

  • cuikatan2 input_name.sol dim_sin_1 dim_cos_1 ... dim_sin_n dim_cos_n output_name.sol

where

  • input_name contains the original boxes (those with sin/cos).
  • dim_sin_i the variable for the sinus for the i-th angle.
  • dim_cos_i the variable for the cosinus for the i-th angle.
  • output_name file to be generated contains the boxes with angular variables.

The .sol extensions are optional.

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

References CreateFileName(), DeleteBox(), DeleteFileName(), DeleteInterval(), Error(), FALSE, GetBoxInterval(), GetBoxNIntervals(), GetFileFullName(), InitBox(), IntervalAtan2(), NEW, PrintBox(), ReadBox(), SetBoxInterval(), and SOL_EXT.

Here is the call graph for this function: