filename.h File Reference IntroductionFunctions to deal with file names. The main files used in the CuikSuite have the following extensions (the base name is the same for all of them and given by the problem name, i.e., for the FourBars problems we can have FourBars.world, FourBars.param, FourBars.joints, etc.):
Definition in file filename.h.
Macro Definition Documentation◆ CUIK_EXT
File extension for equation files. Definition at line 88 of file filename.h. ◆ PDB_EXT
Default extension for bio-info files (files including information about molecules). The system is interfaced with OpenBabel and, thus, we can manipulate many different types of bio-info files. The particular type to read/write is deduced from the file extension. If not given, though, 'pdb' is used. Definition at line 98 of file filename.h. ◆ ATOM_EXT
File extension for files giving atom 3D coordinates. This files are used, if available, to overide the atom position form pdb files, that are typically given with low accuracy. Definition at line 106 of file filename.h. ◆ RGROUPS_EXT
File extension for files giving rigid groups of atoms. Definition at line 112 of file filename.h. ◆ OFF_EXT
File extension for geomview OFF files. They include a description 3D geometry in the form of vertices and faces. Definition at line 119 of file filename.h. ◆ SLAM_EXT
File extension for slam files. They include a description of the trajectory of a robot in 2D and the landmarks it observes. Not used yet. Definition at line 128 of file filename.h. ◆ CAD_EXT
File extension for CAD files. They include geometric constraints. Not used yet. Definition at line 136 of file filename.h. ◆ URDF_EXT
File extension for URDFs: universal robot description files. Definition at line 142 of file filename.h. ◆ SDF_EXT
File extension for SDFs: Gazebo input files. Definition at line 148 of file filename.h. ◆ PARAM_EXT
File extension for parameter files. Definition at line 154 of file filename.h. ◆ SOL_EXT
File extension for solution files. Definition at line 160 of file filename.h. ◆ SOL_WITH_DUMMIES_EXT
File extension for solution files including dummy variables. Definition at line 166 of file filename.h. ◆ AXES_EXT
File extension for mechanism axes. Definition at line 172 of file filename.h. ◆ COST_EXT
File extension for sets of costs. Used to colorize atlas. Definition at line 178 of file filename.h. ◆ ENERGY_EXT
File extension for sets of energy. Definition at line 184 of file filename.h. ◆ WORLD_EXT
File extension for problem files. Definition at line 190 of file filename.h. ◆ PLOT3D_EXT
File extension for 3D plot files. Definition at line 196 of file filename.h. ◆ PLOT2D_EXT
File extension for 2D plot files. Definition at line 202 of file filename.h. ◆ LINKS_EXT
File extension for files including samples represented giving poses for the links. Definition at line 209 of file filename.h. ◆ JOINTS_EXT
File extension for files including samples represented giving values for the degrees of freedom. Definition at line 216 of file filename.h. ◆ STATE_EXT
File extension for files storing the interval solver state. Definition at line 222 of file filename.h. ◆ ATLAS_EXT
File extension for files storing atlas on manifolds. Definition at line 228 of file filename.h. ◆ ATLAS_GRAPH_EXT
File extension for files storing neighbouring relation between the charts in an antals. Definition at line 235 of file filename.h. ◆ RRT_EXT
File extension for files storing rrts on manifolds. Definition at line 241 of file filename.h. ◆ ATLAS_RRT_EXT
File extension for files storing AtlasRRTs. These files store the information linking the RRT and the Atlas Definition at line 248 of file filename.h. ◆ RES_EXT
File extension for files storing the identifiers of the residues to be considered flexible in a given protein. If this file does not exits the degrees of freedom are deduced from the bond type (double bonds are fixed and single bonds allow for rotations). Definition at line 257 of file filename.h. ◆ RIGID_EXT
File extension for files storing the rigid parts of a given molecule The files include a list of atoms together with the identifier of the rigid including them, if any. Atoms in no rigid are assigned to 0. Definition at line 265 of file filename.h. ◆ HINGE_EXT
File extension for files storing the hinges connecting the rigid parts of a given molecules. The hinges are a set of rotation between given pairs of atoms. Definition at line 273 of file filename.h. ◆ TENSEGRITY_EXT
File extension for files describing tensegrity structures. Definition at line 279 of file filename.h. ◆ FORCES_EXT
File extension for files including foces. They are typically generated with the cuikworldforces application, processing a solution set (i.e., a solution path of a planning process). Definition at line 288 of file filename.h. Function Documentation◆ CreateFileName()
Generates a Tfilename structure.
Definition at line 22 of file filename.c. References Tfilename::baseName, Error(), Tfilename::ext, FALSE, Tfilename::fullName, Tfilename::name, NEW, and Tfilename::path. Referenced by body2SDF(), GetAtomPositions(), IncrementalSampleCuikSystemInBox(), InitCSWDFromFile(), InitParametersFromFile(), LinkFileNameWithExtension(), LoadAtlasRRT(), main(), on_cuikexplore_save(), on_cuikmove_save(), PlotAtlasRRT(), PlotConnection(), PlotQrand(), PrintPolyhedron(), PrintWorld(), PrintWorldCS(), ReadOneSample(), ReadResidueList(), ReadRigidsAndHinges(), ReadTwoSamples(), SampleCuikSystemInBox(), SaveAtlasGraph(), SaveAtlasRRT(), SaveChartCenters(), SaveRRTCosts(), SaveRRTNodes(), SaveSamples(), SaveSamplesN(), SaveSingularCharts(), and SaveTrajectory(). ◆ GetFileFullName()
Gets the file full name (path+name+extension).
Definition at line 151 of file filename.c. References Tfilename::fullName. Referenced by body2SDF(), GetAtomPositions(), IncrementalSampleCuikSystemInBox(), InitCSWDFromFile(), InitParametersFromFile(), InitPolyhedronFromFile(), LinkFileNameWithExtension(), LoadAtlas(), LoadAtlasRRT(), LoadRRT(), LoadSamples(), LoadTrajectory(), main(), on_cuikexplore_save(), on_cuikmove_save(), PlotAtlasRRT(), PlotConnection(), PlotQrand(), PrintPolyhedron(), PrintWorld(), PrintWorldCS(), ReadOneSample(), ReadResidueList(), ReadRigidsAndHinges(), ReadTwoSamples(), SampleCuikSystemInBox(), SaveAtlas(), SaveAtlasGraph(), SaveAtlasRRT(), SaveChartCenters(), SaveRRT(), SaveRRTCosts(), SaveRRTNodes(), SaveSamplesInt(), and SaveSingularCharts(). ◆ GetFilePath()
Gets the file path.
Definition at line 156 of file filename.c. References Tfilename::path. Referenced by LinkFileNameWithExtension(), main(), on_cuikmove_save(), and PrintWorld(). ◆ GetFileBaseName()
Gets the file base name (paht+name).
Definition at line 166 of file filename.c. References Tfilename::baseName. Referenced by main(). ◆ GetFileName()
Gets the file name.
Definition at line 161 of file filename.c. References Tfilename::name. Referenced by LinkFileNameWithExtension(), main(), and PrintWorld(). ◆ GetFileExtension()
Gets the file extension.
Definition at line 171 of file filename.c. References Tfilename::ext. Referenced by InitPolyhedronFromFile(), and PrintWorld(). ◆ LinkFileNameWithExtension()
Creates a link to a given filename with a given extension.
Definition at line 177 of file filename.c. References CreateFileName(), DeleteFileName(), GetFileFullName(), GetFileName(), and GetFilePath(). Referenced by main(). ◆ DeleteFileName()
Deleltes the Tfilename structure.
Definition at line 205 of file filename.c. References Tfilename::baseName, Tfilename::ext, Tfilename::fullName, Tfilename::name, and Tfilename::path. Referenced by body2SDF(), GetAtomPositions(), IncrementalSampleCuikSystemInBox(), InitCSWDFromFile(), InitParametersFromFile(), LinkFileNameWithExtension(), LoadAtlasRRT(), main(), on_cuikexplore_save(), on_cuikmove_save(), PlotAtlasRRT(), PlotConnection(), PlotQrand(), PrintPolyhedron(), PrintWorld(), PrintWorldCS(), ReadOneSample(), ReadResidueList(), ReadRigidsAndHinges(), ReadTwoSamples(), SampleCuikSystemInBox(), SaveAtlasGraph(), SaveAtlasRRT(), SaveChartCenters(), SaveRRTCosts(), SaveRRTNodes(), SaveSamples(), SaveSamplesN(), SaveSingularCharts(), and SaveTrajectory(). |
Follow us!