cuiksamples2sols.c File Reference

Detailed Description

dot_inline_dotgraph_55.png

A tool to transform samples to solutions. Solutions are given with ranges for each system variable while samples are given as points. This application simply reads the list of samples and defines a small box around each sample. The result is stored in a file with extension "_samples.sols".

The purpose of this application is to define boxes from samples. Then, this boxes can be used by cuiknewton to define a new sample for each box. The Newton process reduces the possible error in the sample and avoids problems during planning.

Definition in file cuiksamples2sols.c.

Functions

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

Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuiksamples2sols application.

A tool to transform samples to solutions. Solutions are given with ranges for each system variable while samples are given as points. This application simply reads the list of samles and stores a small box around each one of them.

Use:

  • cuiksamples2sols problem_name sol_file

where

  • problem_name is the name from where to generate the .world
  • sol_file [optional] If not given the output is stored in problem_name_sample.sols
Parameters
argcNumber of elements in the command line that starts the application (i.e., the cuiksamples2sols command itself and its arguments).
argStrings with the arguments.
Returns
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 69 of file cuiksamples2sols.c.

References CreateFileName(), CS_WD_DELETE, CS_WD_GET_SYSTEM_VARS, CT_EPSILON, CT_REPRESENTATION, DeleteBox(), DeleteFileName(), DeleteParameters(), Error(), FALSE, GetFileFullName(), GetParameter(), InitBox(), InitCSWDFromFile(), InitParametersFromFile(), JOINTS_EXT, LINKS_EXT, NewInterval(), PARAM_EXT, PrintBox(), REP_JOINTS, SetBoxInterval(), SOL_EXT, and TRUE.